User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Velocity mapping »
Welcome, Guest. Please Login or Register.
May 10th, 2025, 2:15am


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Mapping Questions
(Moderator: Jamie OConnell)
   Velocity mapping
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Velocity mapping  (Read 1373 times)
Claire
New Member
*



MIDI-OX Rules!

   
Email

Posts: 2
Velocity mapping
« on: Dec 31st, 2010, 9:24pm »
Quote Quote Modify 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

   
WWW

Gender: male
Posts: 978
Re: Velocity mapping
« Reply #1 on: Jan 1st, 2011, 4:05am »
Quote Quote Modify 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!

   
Email

Posts: 2
Re: Velocity mapping
« Reply #2 on: Jan 5th, 2011, 8:20pm »
Quote Quote Modify 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
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


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