2D Network Fade to Spatial Audio Path (Quadpan)

109 views
Skip to first unread message

micpool

unread,
Feb 20, 2018, 1:57:14 PM2/20/18
to QLab
So here we are beyond the bleeding edge of what's achievable with OSC queries processed by AppleScript. It works as a demo but is 'rough as a badgers backside' for show purposes!

It allows you to draw a spatial path in a 2 D fade cue plot window e.g a circular pan.........





........This, through a script (with some nifty awk shell script action and general tidying up by Rich Walsh).......


set AppleScript's text item delimiters to space

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

repeat while cue "PAN" is running

set x to translation x of cue "DUMVID"

set y to translation y of cue "DUMVID"

set {x, y} to {my constrainValue(x / 100, 0.01, 0.99), my constrainValue(y / 100, 0.01, 0.99)}

set batchText to (1 - x) * y & linefeed & (x * y) & linefeed & (1 - x) * (1 - y) & linefeed & x * (1 - y) as text

set {fader1, fader2, fader3, fader4} to my batchAwk(batchText)

cue "AUDIO" setLevel row 0 column 1 db fader1

cue "AUDIO" setLevel row 0 column 2 db fader2

cue "AUDIO" setLevel row 0 column 3 db fader3

cue "AUDIO" setLevel row 0 column 4 db fader4

end repeat

end tell

set AppleScript's text item delimiters to ""


on constrainValue(theNumber, minLimit, maxLimit)

if theNumber < minLimit then

return minLimit

else if theNumber > maxLimit then

return maxLimit

else

return theNumber

end if

end constrainValue


on batchAwk(theText)

return paragraphs of (do shell script "echo " & quoted form of theText & " | awk '{print 1+20*log($1)/(log(10))}'")

end batchAwk





..........sends level controls to 4 faders in an audio cue:






The Speaker Layout is as per  standard 4.0

1      2


3      4


The workspace requires 4.2 beta to work as it uses the /translation OSC message.

It's a shame it doesn't work better, as it would give simple voltage controlled spatial paths, in a quad panpot stylee,  for those that can't access the spectacular delay based spatial path movement that can be achieved using d&B's DS100 'Soundscape' processing, controlled from QLab.

Workspace and demo video attached.

Mic




2D Spatial Path to faderslores.mov
Spatial 2D Panner for 4.2beta.zip
Reply all
Reply to author
Forward
0 new messages