How to play a note with value instead of name?

How can I send a note on message with a number value (0-127) instead of name (e.g. C3) ?

output.playNote("C3");

Thanks in advance!

Best Answer

  • Accepted Answer

    Oh I found an answer:


    The notes can be specified in * one of two ways. The first way is by using the MIDI note number (an integer between 0 and 127). * The second way is by using the note name followed by the octave (C3, G#4, F-1, Db7).

Answers

Sign In or Register to comment.