osc random message

44 views
Skip to first unread message

E Forget

unread,
Jun 29, 2024, 1:57:48 PM (6 days ago) Jun 29
to QLab
Hi, 

Is it possible to send a random number in a OSC message?

For exemple: 

/cue/8.5/sliderLevel (random number) -6
Thank you.

micpool

unread,
Jun 29, 2024, 8:06:33 PM (5 days ago) Jun 29
to QLab

--requires no passcode access to be set in network settings

tell application id "com.figure53.QLab.5" to tell front workspace

set theRandom to random number from 1 to 8

set theMessage to "/cue/8.5/sliderLevel/" & theRandom & " -6"

do shell script "echo " & quoted form of theMessage & "| nc -u -w 0 127.0.0.1 53535"

end tell


or if you want to send as real OSC...


--requires a network cue numbered "SET"

tell application id "com.figure53.QLab.5" to tell front workspace

set theRandom to random number from 1 to 8

set custom string of cue "SET" to "/cue/8.5/sliderLevel/" & theRandom & " -6"

start cue "SET"

end tell

Random OSC.mov

Ethan Eldred

unread,
Jun 30, 2024, 5:53:28 PM (5 days ago) Jun 30
to ql...@googlegroups.com
Best way depends on range and grain of numbers you want to choose from! For a small number of options all integers (as would be the case with setting a random slider level), you could make a random mode group cue with all the options you want to choose from inside it. What I would do for a larger range or including decimal values would probably involve script cues.

---
Ethan Eldred
Sound and Media Artist
MFA Student in Sound Design, Class of '24
UCSD Department of Theatre and Dance
bardsound.com
c. 814.215.3423


--
Contact support anytime: sup...@figure53.com
Follow QLab on Threads: https://threads.net/@QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/0b858b43-c506-4902-8522-cecb3630f5f5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages