Spotify Scripts for QLab

Hi guys,

Great to see you here. As you’ve seen in the video, I use some Apple Scripts for controlling Spotify inside of QLab (being controlled through Companion).

If you haven’t seen to video check it here..

To use these scripts you are going to need;

  1. QLab – ideally with a Pro License (Daily Rental is usually ~$5). It is possible to use Scripts without a License, but they will need remaking each time you close QLAB – which is a pain.
  2. Spotify downloaded onto your Mac, I haven’t had any success using these with the browser version of Spotify in Chrome, Safari or FireFox. Its a Free App, just click HERE.
  3. A Spotify Premium Account – cause no-one wants those pesky adverts mid Fundraising Dinner.

Here’s the list of Scripts that I use. Let me know of any others that are good..

 

 

Open Spotify

This opens Spotify, while keeping QLab on top…

tell application “Spotify”
    activate
end tell
–restore focus to Qlab
tell application “QLab”
    activate
end tell
THEN Click “Compile Script” at the bottom of the screen.

 

 

Play Spotify

Resumes Playing the Paused track, could be dangerous if you were listening to Barbie girl in the car on the way to the venue!

tell application “Spotify”

set sound volume to 100

play

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Play Selected Playlist

Plays a selected playlist. I’ve left you my Ultimate Party Classics Playlist in there as a ‘safe’ choice – just change the “spotify:playlist:37i9dQZF1DX0IlCGIUGBsA” to your desired playlist. To add your own playlist in, click on the “…” and go to “share”, and “Copy Spotify URI”. Paste this into the quoted part of the script below.

tell application “Spotify”

set sound volume to 100

set houseTrack to “spotify:playlist:37i9dQZF1DX0IlCGIUGBsA”

play track houseTrack

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Fade + Pause Music

This will Fade the Volume of Spotify’s internal Volume, and then Pause the Song that’s playing. When the song is Paused the Internal Volume will reset to 100%.

property tick : 5 — change volume level by this many each loop

property thismany : 0.25 — seconds to wait before making next change to volume

tell application “Spotify”

repeat

set snd to sound volume

if snd is less than or equal to tick then

set sound volume to 0

exit repeat

end if

set sound volume to (snd – tick)

delay thismany

end repeat

pause

set sound volume to 100

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Resume on the Next Track / Next Song

Also resets the volume to 100%.

tell application “Spotify”

set sound volume to 100

play (next track)

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Quit Spotify

Quits Spotify, and kills any audio playing from it instantly.

tell application “Spotify”

quit

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Note that this does not cover licensing of music used in public performance. Though for 98% of my gigs, its sorted out by the client / production house I work for.

Exciting news! DC Sound Op Contributor status..

Hi all,

As many of you know and love DCSoundOp.com already, you may be interested to know that I am now officially a Contributor to the site.

You can check the direct link to my page here..

http://www.dcsoundop.com/contributors/danbamber/

What does this mean for DanBamberAudio? Not a great deal will change in terms of content that gets put out, but it does give a little recognition for all the hours we’ve slogged away editing, and gives us a new audience to interact with. Either way we are super excited to start the new (tax) year with some good news.

If you have not heard of DC Sound Op.. where have you been hiding?

Check the homepage and youtube channel here..

Or just read his blurb..

“DcSoundOp is an independent content creator that produces Pro Audio and Live Sound original content that is accessible for all levels. Our videos, articles and digital media include in-depth gear reviews, teardowns, first looks, interviews, how to’s, sound system walkthroughs, and the Live Sound Basics series.”

Happy Quarantine!