Author |
Topic: Velocity mapping (Read 1373 times) |
|
Claire
New Member

 MIDI-OX Rules!

Posts: 2
|
 |
Velocity mapping
« on: Dec 31st, 2010, 9:24pm » |
Quote Modify
|
I am trying to limit the output velocity to a specific range (say 60-100) with an unlimited range of velocity input (0-127). As soon as I enter any value apart from "-1" in the Second Data field (Velocity) in the mapping, Midi-Ox sends a NOTEON message when the actual note is RELEASED. i.e. if I play a note I get two "NoteOn" messages sent (one when the key is depressed and one when it is released). I have tried everything I can think of to try and prevent this including specifically replicating the incoming NoteOff Message but to no avail. Can anyone make any suggestions about this problem please ? Or perhaps more simply, "What is the recommended method for limiting the range of output velocities ?" Thanks, Claire
|
|
IP Logged |
|
|
|
Peter L Jones
Expert
    

Hit it
Gender: 
Posts: 978
|
 |
Re: Velocity mapping
« Reply #1 on: Jan 1st, 2011, 4:05am » |
Quote Modify
|
The vast majority of modern MIDI equipment uses Note On Velocity Zero to indicate the end of a note. For your input criteria, don't use 0 as the lower limit, use 1.
|
|
IP Logged |
"...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world." -- Tony Williams
|
|
|
Claire
New Member

 MIDI-OX Rules!

Posts: 2
|
 |
Re: Velocity mapping
« Reply #2 on: Jan 5th, 2011, 8:20pm » |
Quote Modify
|
Deat Peter, Thank you very much indeed. Your advice was perfect - Thanks ! I have now built a work around for my velocity map by treating Velocity '0' as a special case. i.e. I have had to use two lines of code. One which detects Velocity 0 and re-maps it to Velocity 0 (so it remains unchanged) and the next line which re-maps all velocities (which are not 0) to the desired range. Thanks again. Much appreciated ! Cheers, Claire Adelaide Australia
|
|
IP Logged |
|
|
|
|