login

online now

We have 115 guests and no members online

search

 
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Midi note to setNote

Midi note to setNote 6 years 1 month ago #91

Hello
I would like to send a midi note by using

setNote (C_2);

by replacing C_2 with the note value (the number)
How can I dow that ?

thanks

Jean-Luc
The administrator has disabled public write access.

Re: Midi note to setNote 6 years 1 month ago #92

You can always cast the integer into the the variable type the function expects:

integer intVal;
setNote ( (GSNote) intVal );

I don't think there is a direct correlation, however between MIDI note values and the integers used in setVal(). For example, the GSNote CS_0 = 0; I do not believe that a MIDI NOTE ON command with a note value of zero is actually CS_0. That said, its probably just a simple offset between the two.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.175 seconds