Sample Project - Music2Light

880 views
Skip to first unread message

Mathieu

unread,
Aug 31, 2016, 2:24:32 PM8/31/16
to Lightjams
This sample project shows how to automatically trigger effects based on the music features. 

- The color is changing every 8 beats or 10 seconds max. 
- At each beat, there's a little color change and an intensity bump. 
- When the hi frequencies are suddenly very present and the BPM is also high, a strobe effect is triggered for 5 seconds. 
- When the music is loud, the BPM is high and the low frequencies are very present, a color switch effect is triggered.

This should give you ideas on how to create your own music2light effects!

Have fun!
Mathieu

music2light.ljp

Carl Dickson

unread,
Jul 5, 2017, 9:28:14 PM7/5/17
to Lightjams
Hi,

Ive been trying to work out what your doing here.... :( hard for a beginner.  
Could you give a breakdown on this? Im looking to implement something like the.

Thanks

Carl Dickson

unread,
Jul 5, 2017, 11:21:16 PM7/5/17
to Lightjams
Actually I think i've worked it out.... its pretty cool!!!!

Thanks 

Igor Roberti Foc

unread,
Jul 10, 2017, 3:49:21 PM7/10/17
to Lightjams
Hello,
interessant
Just a question, why this function react after 3-4 beats delayed:
mem(0,taptempo.pulse(onbeat(music.1.beat)))

Mathieu

unread,
Jul 10, 2017, 4:09:26 PM7/10/17
to ligh...@googlegroups.com
Hi,

The function mem(0,taptempo.pulse(onbeat(music.1.beat))) detects the tempo of the music and generates a pulse in sync with the detected beats. It puts the result in a memory bin to be used by other sources.

The taptempo needs to detect a few beats before it can properly generate a pulse. That's the 3-4 beats delay you see.

The other source (at the bottom) using the pulse has this formula: if(recall(0), randint(0, 3) * 5, last). This is used to change the hue a little each time there's a beat.

You can also get rid of the taptempo detection and use the instant beats directly by using: mem(0,onbeat(music.1.beat)) instead of mem(0,taptempo.pulse(onbeat(music.1.beat))). The taptempo.pulse function tries to detect the tempo in order to generate regular pulses. But for some music styles with irregular beats, this may not be what you want.

Carl Dickson

unread,
Jul 15, 2017, 2:25:30 AM7/15/17
to Lightjams
HI
is there a formula to detect the volume  of the music?

Thanks
 

Mathieu

unread,
Jul 15, 2017, 7:12:44 AM7/15/17
to Lightjams
Hi,

Use music.1 to get the instantaneous music volume. music.1.avg gives you the average music volume over a few seconds.

Thomas Meier

unread,
Jun 2, 2019, 9:43:54 PM6/2/19
to Lightjams
Would like to try these effects but the attachment seems to have been removed. Where else can I find this?

isaac

unread,
Jun 2, 2019, 10:53:49 PM6/2/19
to Lightjams
Check the top post of this thread for the attachment, or you can find the file in question here:

Thomas Meier

unread,
Jun 2, 2019, 11:43:26 PM6/2/19
to Lightjams
Thanks. The link worked now...


On Thursday, September 1, 2016 at 4:24:32 AM UTC+10, Mathieu wrote:

Jürgen

unread,
Jun 3, 2019, 2:17:03 AM6/3/19
to Lightjams
.....to work with detected beats I like to bring the result to a slider as sawtooth 

So you can take this slider as a source and with a little offset you can kill all latency in the system and bring your lights exaxtly to the beat

Jürgen

unread,
Jun 3, 2019, 2:27:18 AM6/3/19
to Lightjams
.....so it is able to travel back in time with a sawtooth

with lightspeed you can only travel to the future but with lightjams you can even go back in time!
Reply all
Reply to author
Forward
0 new messages