
On 15 Mar 2022, at 14:54, micpool <m...@micpool.com> wrote:
This could be improved by making the detection more sophisticated but as a proof of concept is quite interesting. (Don't use for anything important until you have determined it will work for your purpose)
<Screen Shot 2022-03-15 at 14.51.18.png>Screen recoding and demo workspace bundle attachedMic
--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/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/e0805b2e-5925-4584-8e3b-71feff4b8164n%40googlegroups.com.
<Stop on silence.zip><Screen Shot 2022-03-15 at 14.51.18.png><StopOnSilence.mov>
This is so useful! And pretty much exactly perfect for my current show. I’ve just been using loads of slices and revamps but this will be so much more simple!
--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/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/9e5f8f53-eba5-4ea1-84b6-ba5833dc1765n%40googlegroups.com.
On 16 Mar 2022, at 14:38, olivie...@gmail.com <olivie...@gmail.com> wrote:
Hi !
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/f40fec09-6e8e-4143-a32e-225b014b3ebdn%40googlegroups.com.
On Wednesday, March 16, 2022 at 2:38:20 PM UTC olivie...@gmail.com wrote:Hi !I my case it's not really accurate, as the reverb tails are detected as zero but sound is still there...I trier to set the threshold at 0, and the "repeat until theLevel < theThreshold" with an "=" to have really the minimum but it's not working anymore...
That may be because you have a lot of gain after QLab, and therefore are running the QLab audio levels low which is restricting resolution.This version of the script may work better for you.The threshold is fixed at 1The gain adjusts the maximum value of the scale measuring the sound and is read from the cue name of cue "SC" and is logarithmicPut an integer value for the gain as the q name of cue "SC" between 1 for very loud sounds to 9 for very quiet sounds.Change the script source of cue "SC" to this:tell application id "com.figure53.QLab.4" to tell front workspace
try
set theGain to (10 ^ (q list name of cue "SC")) as integer
if theGain < 1 then set theGain to 1
if theGain > 9 then set theGain to 9
set theTargetCue to last item of (cues whose running is true and q type is "audio" as list)
set theMessage to "/cue/LEV/name" & space & quote & "#/cue/" & (the q number of theTargetCue) & "/liveAverageLevel/1 0 " & theGain & "#" & quote
set the custom message of cue "AN" to theMessage
set theLevel to 10000
start cue "SOS"
repeat until theLevel < 1
set theLevel to q list name of cue "LEV"
delay 0.05
end repeat
stop theTargetCue
stop cue "SOS"
end try
end tell
On Wednesday, March 16, 2022 at 2:38:20 PM UTC olivie...@gmail.com wrote:
Hi !I my case it's not really accurate, as the reverb tails are detected as zero but sound is still there...I trier to set the threshold at 0, and the "repeat until theLevel < theThreshold" with an "=" to have really the minimum but it's not working anymore...
Sorry, but this is not the source of the problem, my wav file has decent level peaks, gain is generally near zero on the cue (sometimes -3).The new script is not much accurate.

tell application id "com.figure53.QLab.4" to tell front workspace
try
set theThreshold to (post wait of cue "THRESH")
if theThreshold < 0 then set theThreshold to 0
if theThreshold > 8 then set theThreshold to 8
set theThreshold to 10 ^ theThreshold as integer
set the q name of cue "LEV" to theThreshold as text
set theTargetCue to the last item of (cues whose running is true and q type is "audio" as list)
set theMessage to "/cue/LEV/translationX #/cue_id/" & (uniqueID of theTargetCue) & "/liveAverageLevel/1 0 100000000#"
set the custom message of cue "AN" to theMessage
set theLevel to 100000000 as integer
start cue "SOS"
repeat until theLevel < theThreshold
set theLevel to translation x of cue "LEV"
end repeat
stop theTargetCue
stop cue "SOS"
end try
end tell
Attached is a screen recording of your cue in action, and a workspace bundle with your audio removed. (I'll send you a workspace with your cue programmed off list)
Best Mic