this is an example of note detection for instruments without MIDI support. it detects the notes you play and converts them to MIDI number of the note.
run Server:
go mod tidy
command.go run cmd/main.go
command.run Client:
cd client
yarn
or npm install
yarn run dev
the MIDI number of a note corresponds to the identifier number of the note in MIDI table. for example the number 60 represents the note C4 which is the middle C on a piano.
more info here: MIDI table
state field shows if the note is playing or not (think NOTE_ON/NOTE_OFF in MIDI devices). sending off state is not implemented yet.