MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Mapping Questions >> Velocity mapping
(Message started by: Claire on Dec 31st, 2010, 9:24pm)

Title: Velocity mapping
Post by Claire on Dec 31st, 2010, 9:24pm
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

Title: Re: Velocity mapping
Post by Peter L Jones on Jan 1st, 2011, 4:05am
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.

Title: Re: Velocity mapping
Post by Claire on Jan 5th, 2011, 8:20pm
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



MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.