On Donnerstag, 27. Juni 2019 12:34:52 CEST Christian Schoenebeck wrote:
> to check for a certain key currently being pressed down and then switch to
> the desired dimension zone of the smart midi dimension:
>
> gig_set_dim_zone($newNote, $GIG_DIM_SMART_MIDI, 2)
>
> where the last argument stands for the precise dimension region zone you
> want to switch to.
Actually when I thought more about it, the following should actually be
sufficient for your case:
on note
...
gig_set_dim_zone($EVENT_ID, $GIG_DIM_KEYBOARD, 2)
end note
Because gig_set_dim_zone() should actually always override the sampler's
built-in dimension region selection. So the script's selection should always
have precedence.
$EVENT_ID is a built-in variable for the current event type, in the note event
handler that's the note-on event.
CU
Christian
_______________________________________________
Linuxsampler-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel