VU meter across 6 bars

38 views
Skip to first unread message

tfm...@gmail.com

unread,
Dec 25, 2024, 10:21:08 PM12/25/24
to Lightjams
Hi guys,

I have a fixture with 6 bars (120 LEDs each) and would like to run a VU meter across it :)

I picked up this formula from a sample project - if(music.1.band(x+1) > py, 50, 0) to control the power.

The result somewhat resembles a VU meter but I wonder whether I can improve on this. As I understand this, the formula assigns a different frequency band across the x-axis and returns 50 if the value is higher than py or 0 if not. Where is py defined and how many frequency bands are there?

Mathieu

unread,
Dec 27, 2024, 2:58:50 PM12/27/24
to Lightjams
This formula needs to be used with the shader mode enabled. py is the vertical position in percent of the cell where the formula is evaluated. So basically, if the intensity (which is also in percent) of the audio band is higher than the vertical position of the cell, then the cell takes the values of 50%. There are 100 bands. In the formula, the horizontal position of the cell determines which audio band to use. 
Reply all
Reply to author
Forward
0 new messages