Previous topicNext topic

Random Number Hold Expression

Questions, comments, feedback, etc.
Post Reply
perzon
Posts: 20
Joined: Tue Sep 15, 2015 7:38 pm

Random Number Hold Expression

Post 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.
Attachments
Example
Example
magicmusic_expression_hold_help.PNG (145.95 KiB) Viewed 3072 times
Sadler
Posts: 1368
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Random Number Hold Expression

Post by Sadler »

Try putting a random trigger after this expression: floor(time % bpm_beat)
perzon
Posts: 20
Joined: Tue Sep 15, 2015 7:38 pm

Re: Random Number Hold Expression

Post 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..
Sadler
Posts: 1368
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Random Number Hold Expression

Post by Sadler »

Screenshot 2026-03-25 150315.png
Screenshot 2026-03-25 150315.png (113.05 KiB) Viewed 3026 times
perzon
Posts: 20
Joined: Tue Sep 15, 2015 7:38 pm

Re: Random Number Hold Expression

Post by perzon »

that works a treat! Thank you so much Sadler!
Post Reply