Hi,
I need to play with a keyboard through PD, but i don't know how to get note off messages. I could calculate the time between each note or give each note an arbitrary duration, but i'd like PD to get the information when I actually release the key.
Thank you,
Lucien
-
Note off message using a midi keyboard
-
Assuming that you're using [notein] to get the midi information from your keyboard, it will output a 0 velocity value when the key is released.
|] [] |.| ][|-| -- http://soundcloud.com/domxh
-
I use notein and stripnote, and when i release a key the values don't change at all. Any clue?
-
stripnote removes the velocity 0. Just don't use stripnote and then you can see when you release the key.
-
There's something i don't understand about midi messages. It works fine, if i output what i play to an external synth it gets the note off messages, but if i connect [sel 0] to the velocity output of [notein] it continuously bangs, wether i play or not. What i need to do is to get the duration of the note, from note on to note off, with [timer].
How can i do that ?