Is there a way to assign a parameter to the active zone as opposed to globally (type:zone) or singly (Zone XX)?
To provide some background my project has dozens of samples all layered on the same key and triggered individually by velocity which is then assigned to a knob. All velocity inputs are converted to a single number as demonstrated here, triggering sound 22:
function RandomizerDefine() low_vel = Velocity high_vel = Velocity this.parent:getMidiModule("MIDI Randomizer"):setParameter("OutputLowVel", low_vel) this.parent:getMidiModule("MIDI Randomizer"):setParameter("OutputHighVel", high_vel) end defineParameter("Velocity", 0, 127, 1, 50, RandomizerDefine)
The user then selects the required sound via the Timbre knob. So far, so good.
I would however like the waveform to display the currently playing sound. At the moment it’s either connected per zone (using Zone 01) or globally (type.Zone), however none are appropriate. The first option obviously only shows one fixed zone and the second option stacks them all so it’s misleading and a mess.
Is there a way to change the type:Zone command to something like type:ZoneActive so that the display changes when the Timbre knob selects a different sample?
Failing that, how could I create a script to only pick up the active zone? I will then link the waveform parameters to that.