View Single Post
Old 11-21-2013, 01:23 PM   #16
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 11,853
Default

Quote:
Originally Posted by Anton9 View Post
Hey Justin,

Thank you so much for adding this;
+ OSC: added /vkb_midi/

However I'm having a little trouble getting it to work.

I understand that the parameters are RAW MIDI.., so 3C is middle C.
Is velocity supported?

Could you please give an example that would trigger a middle C.

Thank you
The values must be decimal integer, not hex, so find the note value you want in the midi editor, for example C3 is 48, and sending /vkb_midi/note/48 with an integer or float value of 1-127 would do the trick. Example:
Code:
oscsend(dev, {"i/vkb_midi/note/48"}, 127);
or
Code:
oscfmt0 = 48;
oscsend(dev, {"i/vkb_midi/note/%.0f"}, 127);

Last edited by Justin; 11-21-2013 at 08:40 PM. Reason: Fixed typo wrong C3 value
Justin is offline   Reply With Quote