beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Devices.Midi.MidiValueToNote

MidiValueToNote
op id:a95ef5bc-560d-435d-84a0-2fc134af4adf
Converts a MIDI value to a note string

summary (oneliner)

Converts a MIDI value (e.g. 60 coming from a connected MIDI keyboard) to a note (e.g. "C4"). The octave will always be included at the end of the string, if it is below 0, it will look like A#-1.

Please note that semitones will always be presented using sharps (#), not flats (b).

doc

youtube id

op collections: hardware  

collections

relatedops:  

related ops

Inputs

Midi Value (Number)

The MIDI Value you want to convert to a note-string, e.g. 80


Outputs

Note (Number)

The note-string (compatible to tone.js)


Keyboard Synth Play Example:

Click in the canvas one to set focus, then use your computer keyboard to play the FmSynth



Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using MidiValueToNote

Public Patches using MidiValueToNote