Hi there!
I was wondering if there’s a way to have a button automatically turn off after a few seconds or minutes. Or maybe set it up so it recognizes a specific section and turns off when that section is reached?
Thank you!
Hi there!
I was wondering if there’s a way to have a button automatically turn off after a few seconds or minutes. Or maybe set it up so it recognizes a specific section and turns off when that section is reached?
Thank you!
Sure, you can do this using the sleep function. Here’s an example that mutes the click track and automatically unmutes it again after 10s:
sendOsc("/mixer/click/mute", true);
await sleep(10000); // wait for 10s
sendOsc("/mixer/click/mute", false);
Or you can wait for a section change:
sendOsc("/mixer/click/mute", true);
await waitForOscChange("/setlist/activeSectionName"); // wait for the section to change
sendOsc("/mixer/click/mute", false);
Would that work for you? ![]()
Awesome
it worked perfectly! Thanks so much, Leo!