helgoboss / helgobox

Helgobox: ReaLearn & Playtime
https://www.helgoboss.org/projects/helgobox
GNU General Public License v3.0
204 stars 20 forks source link

Two more EEL template suggestions #733

Open vonglan opened 1 year ago

vonglan commented 1 year ago

for mapping Bipolar to Unipolar + Switch (e.g. envelope amount):

Unipolar y=2*abs(x-0.5)
Invert Switch y = (x == 0.5) ? 0 : 1-x

for mapping one multi to several buttons (e.g. continuous waveform to separate saw/triangle/pulse):

step size min=max for all 33.33% (for two buttons), 14.28% for three, 6.66% for four buttons – general: (1 / (2^n-1) and round down)  
first button (first button uses default)  
second button y=(2x/1.00001)-floor(2x/1.00001) Scaling to avoid unexpected behavior at 100%
third button y=(4x/1.00001)-floor(4x/1.00001)  
Need to configure “Make absolute” in case Encoders are possible sources!    
vonglan commented 1 year ago

It would also be nice to add your own templates (I tend to use the same ones quite often)

helgoboss commented 1 year ago

for mapping Bipolar to Unipolar + Switch (e.g. envelope amount):

Thanks! Can you add more info for the description field (about what they do)? E.g. I'm not familiar with bipolar/unipolar and when I should use this.

for mapping one multi to several buttons (e.g. continuous waveform to separate saw/triangle/pulse):

Same here. Best have a look at the existing descriptions.

vonglan commented 1 year ago

Sorry, somehow I did not notice your questions.

Bipolar to Unipolar + Switch, Part A: Target unipolar parameter. Bipolar to Unipolar + Switch, Part B: Target switch parameter.

This pair of mapping templates strips the original, bipolar signal (full range is interpreted as -x to +x) to a unipolar one (part A), and maps the "sign" to a button.

Usable with: As source: Range elements, especially if it is a physical knob that has a "dent" in the middle, for example on a synthesizer a knob "Envelope Modulation Amount" that goes from -x to +x. As targets: a pair of FX parameters that represent a unipolar amount, and a switch for inverting the amount.

One multi to several buttons (variable number of parts, typically 2 to 4).

This set of mapping templates maps a continues value (e.g. a continuous knob for "waveform" on a synthesizer) to a set of on/off switches (e.g. Sawtooth on/off, Pulse on/off, Triangle on/off).

Usable with: As source: Range element As targets: a set of buttons