diff --git a/front/Dockerfile.buildandroid b/front/Dockerfile.buildandroid new file mode 100644 index 0000000..49ad57a --- /dev/null +++ b/front/Dockerfile.buildandroid @@ -0,0 +1,16 @@ +FROM ubuntu:22.04 as buildandroid + +# Install dependencies (yarn, nodejs, git, etc.) +RUN apt-get update && apt-get install -y \ + curl \ + git \ + gnupg \ + unzip \ + zip \ + && rm -rf /var/lib/apt/lists/* + +RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - + +RUN npm install -g expo-cli +RUN eas login --non-interactive --username $EAS_USERNAME --password $EAS_PASSWORD +RUN eas:configure -p android \ No newline at end of file diff --git a/front/components/CardGridCustom.tsx b/front/components/CardGridCustom.tsx index bdb2aa4..5690c1b 100644 --- a/front/components/CardGridCustom.tsx +++ b/front/components/CardGridCustom.tsx @@ -17,6 +17,7 @@ const CardGridCustom = >(props: CardGridCustom {heading && {heading}} { {props.heading} = ({ > 4, - channel: message.data.at(0)! & 0xf, - note: message.data.at(1)!, - velocity: message.data.at(2)! / 127, - }; -} +// function parseMidiMessage(message: MIDIMessageEvent) { +// return { +// command: message.data.at(0)! >> 4, +// channel: message.data.at(0)! & 0xf, +// note: message.data.at(1)!, +// velocity: message.data.at(2)! / 127, +// }; +// } //create a context with an array of number export const PianoCC = createContext({ @@ -300,7 +300,7 @@ const PlayView = ({ songId, route }: RouteProps) => { return; } if (song.data && !webSocket.current && partitionRendered) { - requestMIDIAccess().then(onMIDISuccess).catch(onMIDIFailure); + // requestMIDIAccess().then(onMIDISuccess).catch(onMIDIFailure); } }, [song.data, partitionRendered]);