Basically I'm trying to map a few pads on my launchpad to act as simple trance gates that are attached to the beat grid. For instance, while the button is held, if get_beatgrid returns >50% the track mutes, and unmutes when get_beatgrid <50% , and resets to unmuted when released.
I was able to get the light on my controller to flash to the beat:
deck 1 get_beatgrid <50% ? color 100% 'red' : color 50% 'red'
I'm sure the proper while_pressed syntax is eluding me but I cant seem to get the button to continuously read the beatgrid while pressed, it just reads it once when i push it and either mutes/unmutes but never repeats.
(deck 1 get_beatgrid <50% ? mute 0 : mute 1) while_pressed & up ? mute 0
any advice on this?
thanks! :)
I was able to get the light on my controller to flash to the beat:
deck 1 get_beatgrid <50% ? color 100% 'red' : color 50% 'red'
I'm sure the proper while_pressed syntax is eluding me but I cant seem to get the button to continuously read the beatgrid while pressed, it just reads it once when i push it and either mutes/unmutes but never repeats.
(deck 1 get_beatgrid <50% ? mute 0 : mute 1) while_pressed & up ? mute 0
any advice on this?
thanks! :)
Inviato 6 days ago @ 4:03 am
try something like this
toggle tgvar while_pressed & repeat_start_instant repeatThing 30ms -1 & var tgvar 1 ? param_smaller `get_beatgrid` 0.5 ? mute on : mute off : repeat_stop repeatThing & mute off
Inviato 6 days ago @ 4:28 am