[yoshimi] Re: On/Off contrller values?
- From: Lorenzo Sutton <lorenzofsutton@xxxxxxxxx>
- To: yoshimi@xxxxxxxxxxxxx
- Date: Fri, 15 Dec 2017 10:36:23 +0100
On 14/12/17 18:15, Will Godfrey wrote:
On Thu, 14 Dec 2017 10:53:24 +0100
Lorenzo Sutton <lorenzofsutton@xxxxxxxxx> wrote:
You mean like the one that has just been pushed to the current master? :)
Cool!
If Min and Max are both the same then this value will be a threshold and the
value passed on will either be Min *or* Max. Bear in mind these are % figues not
MIDI values. Divide the incoming MIDI value by the (really memorable) value
1.57 to get the percentage. the actual reolution is to the nearest .5
So if I understand correctly:
- In yoshimi MIDI learn set both min% and max% to the same (percentage
value)
- multiply that value by 1.27 and ceil [1] to the above integer: that
gives you the MIDI value which is the 'on' threshold to activate a
binary parameter (switch).
So for example if you set min% and max% both to 90.0 any midi value <
115 will turn the switch off and any value >= 115 will turn it on. Or if
you set min%=max% to 8.0 your 'on' threshold value will be >= 11 in MIDI.
Right? :)
Lorenzo.
[1]
https://en.wikipedia.org/wiki/Floor_and_ceiling_functions
Yoshimi source code is available from either:
https://sourceforge.net/projects/yoshimi
Or:
https://github.com/Yoshimi/yoshimi
Our list archive is at:
https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx
Other related posts: