Page 1 of 1

Random Number Hold Expression

Posted: Tue Mar 24, 2026 12:51 am
by perzon
I am struggling to find a way to use Expression to hold a random number for a duration of time.

I am want to change my BPM Global so the timing on my HUE module's 'Hold' will adjust accordingly then change to a new random number.
I was not to figure out how to do a exptrk "for / while" ++ loop functions, as just a basic count until the BEAT_BAR value is reached then start over should work just fine.

I have always used triggers on audio and frequency ranges then set up scenes with different 'genres' with the values hard coded, so being able to change it to a single GLOBAL would be a game changer.

Re: Random Number Hold Expression

Posted: Tue Mar 24, 2026 7:45 am
by Sadler
Try putting a random trigger after this expression: floor(time % bpm_beat)

Re: Random Number Hold Expression

Posted: Wed Mar 25, 2026 12:31 am
by perzon
i cant see how a floor or a ramp is going to fix this situation. If they need a trigger and i cant use time as my trigger then i am back where i started.
Here is what i am working on right now, using the stage mapping from the gig that MM has had on their FB page for the past 5 years.
So you can see how I use random hue changes on frequency triggers.. but i want to change that and have time based triggers so i really need to be able to have a way to use an expression to count a set number of seconds before it becomes its own trigger..

Re: Random Number Hold Expression

Posted: Wed Mar 25, 2026 3:00 pm
by Sadler
Screenshot 2026-03-25 150315.png
Screenshot 2026-03-25 150315.png (113.05 KiB) Viewed 3030 times

Re: Random Number Hold Expression

Posted: Wed Mar 25, 2026 5:56 pm
by perzon
that works a treat! Thank you so much Sadler!