Upgraded Audio Analysis

10 views
Skip to first unread message

Mathieu

unread,
May 6, 2026, 3:24:43 PM (8 days ago) May 6
to Lightjams
The audio analysis now computes many new values that you'll be able to use in your formula. 

Particularly, the BPM counter has been improved a lot and it's now a variable usable for each audio input. You can easily use it like this: music.1.bpm. There's also variables to move your sources in sync with the beats (following the BAR progression). For example, music.1.bar is a ramp between 0-100 and it tries to stay in sync with the 1st beat of the BAR.

There are also many built-in formulas for various audio features. The formula to activate the strobe is pretty interesting:

let(lowAvg, music.1.low.avg, hiAvg, music.1.hi.avg,
step1Time, timer(0, step==1 & onchange(step)),
step2Time, timer(0, step==2 & onchange(step)),
step,

switch(step,
0, if(hiAvg > lowAvg & hiAvg > 15 /* hi min threshold */ & lowAvg > 3, 1, 0),
1, if(hiAvg < lowAvg | hiAvg < 5, 0, if(step1Time > 0.35, 2, 1)),
2, if(step2Time > 5 & (lowAvg > hiAvg * 1.5 | step2Time > 10 /* strobe max duration */),0,2)
 )
,step == 2)

Have fun with the latest beta (v750+): https://www.lightjams.com/history.html


Reply all
Reply to author
Forward
0 new messages