Page 1 of 1

Spotify input for light triggers

Posted: Thu Jun 23, 2022 5:36 pm
by josh
Hello,

I'm new to this, but I got my amateur setup working thanks to the documentation and youtube videos.

I'd like to run a spotify playlist at our wedding, and if possible have the lights adjusting to the sound. I already got it working that the light gets triggered by volume or a freq band.
But what would be even nicer, when I could use spotify meta data from the spotify API to e.g. change the light settings depending on what kind of song etc,

I found this thread viewtopic.php?t=14106 , but I don't quite understand it (not even whether this is a statement or question :P )

I found this (but it's for Freestyler)
https://github.com/walkerasindave/spotmidify
(mentioned here https://www.reddit.com/r/lightingdesign ... matically/)


I'm happy to do some programming myself, but it would be awesome, if I could get some pointers to get started on how one would accomplish that with QLC+

Thank you for your help and this great piece of software :)

Re: Spotify input for light triggers

Posted: Fri Jun 24, 2022 9:16 am
by GGGss
I suspect that the thread is asking for a solution, where in function of the spotify API, a collection (or another function) could be triggered.
Me personally would not tamper with the QLC+ code, but create an add-on and using Artnet packets f.i. to signal QLC+ of what has to happen...

Re: Spotify input for light triggers

Posted: Fri Jun 24, 2022 3:54 pm
by josh
Thanks, I was not planning to mess with the QLC+ but I was wondering if it's possible to make a plugin/add-on or whatnot that works as an interface between the Spotify API and QLC+.

I guess that is what you are suggesting if I understand correctly.

What I thought (without any deeper knowledge of QLC+) is that the plugin would get the meta data of the current song playing (e.g. via a push, request, websocket or something else), if that is a slow song, e.g. use slow changing mellow lights, if it's a fast paced song, use strop colorful lights ...

Since it's for a wedding with a precurated playlist (so we kinda know what songs might be played, although not necessarily the order), I could also proxy the request through a database. And categorize the songs in there

Re: Spotify input for light triggers

Posted: Sat Jun 25, 2022 8:10 am
by mcallegari
If I understand correctly, you want to detect the BPM of a song and set QLC+ timings accordingly.
There are a few thread discussing it and IIRC there are external tools that can detect BPM and send a MIDI clock or a signal in general that QLC+ can understand via the existing plugins.

Re: Spotify input for light triggers

Posted: Sat Jun 25, 2022 4:44 pm
by josh
I don't only want to detect the BPM, but also make a call to the spotify API and the meta data about the song. For example, there is a `genre` field, which I would like to use to set the "mood" of the lighting