MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Mapping Questions >> ‘-1 means use Input field value’
(Message started by: not2good2c on Aug 19th, 2002, 6:26pm)

Title: ‘-1 means use Input field value’
Post by not2good2c on Aug 19th, 2002, 6:26pm
Try this map:

* NoteOn * *     1 111 | * * * *   10 127
* NoteOn * * 112 127 | * * * * 127  *

e.g. velocity 108 is mapped to 124 all right, but everything beginning from 112 remains the same… terrible.

This map works:

* NoteOn * *     1 111 | * * * *   10 127
* NoteOn * * 112 127 | * * * * 127 127

I’m beginning to understand that (maybe) the two values actually define the one value that you mean… in that case you should change the misleading line ‘-1 means use Input field value’ to ‘-1s mean use Input field value’.

[Later] Maybe that’s just as misleading actually… I’m almost certain that you can think out something better.

Title: Re: ‘-1 means use Input field value’
Post by Jamie OConnell on Aug 21st, 2002, 6:57pm
I suppose I should not take anything for granted  :)  The Min and Max fields for a value function as a Pair: if one of them is set to -1 (*) then both of them need to be set to -1 (*).  Conversely, if one of them is associated  whith a real positive value, then the other one needs to be set to either the same value or another positive value (thus defining a range).  It just seemed obvious to me that it would work this way.

The situation you describe where the Min is set to 127 and the Max is set to -1, is not really an error, but the result is undefined.  At some point maybe this can make it into the help file.



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