How to detect transition from 1 to 0 and 0 to 1


#1

how to detect transition from 1 to 0 and 0 to 1?


#2

be more clear.
(transition of what? midiCC, audio output, logicgate, ...? )


#3

logicgate.....i want to write note offs in a table
release velocity is not working with my keyboard , puts out zero always


#4

change?

release velocity is not standardised for keyboard thats cant measure it... i.e. some default it to 0, others 64, some 127
do you know if your keyboard is sending note-off rather than note-on notenum, 0 ?

Id need to check the midi/keyb object but id say release velocity should probably default to 64 BUT if your keyboard is sending note-off then we cannot change that, as note-off 0 is valid.

EDIT: just checked keyb we are defaulting to zero, for note-on notenum/0 we should change this to 64 ... this would help make patches a bit easier to write when using 'legacy midi devices'


#5

thank much very technobear!!!!


#6

are you sure you don't mean to say note-on velocity 0 ?


#7

that is kind of what I said... its a note on message with the note number and velocity of zero i.e. note-on(notenum,0)

anyway, when I get the chance I will change the release velocity to default to 64 in this scenario....
but its still possible some controllers will send note-off (note#, 0) i.e. they explicitly say the release velocity is zero, and this i don't think we should default to 64... debate :smile:
(I will of course double check midi standard to check to see if a release velocity of zero is valid... if its not then I can also default it)