Forum

Spreadfilling

Hi,

i’m new to the vvvvorums… a very very nice community here. I’ve been reading the posts in here since i first started patching but now I need to ask something myself.

I want to do a peakmeter efffect with 12 flexible led-strips (very special construction) which are fully dmx controllable and which are going to be controlled via artNet. I patched everything right along but there is one problem, I can’t solve.

The number of slices I give to the DMX node (the one for artNet) varies with the peak of the sound input. The DMX node wants 512 slices so the rest of the slices (for example i give only 100 slices) are filled up from the beginning of the input again. I know, this is the way spreads are handled, but please give me a hand… how can I say: the first 100 slices (or 50, or 150, depending on the peak of the sound) are filled with values and the remaining 412 are filled with the value “0”?

I attached my project so you can see what i want to do if you’re interested. led.v4p is the root file.

thx in advance!

led.rar (12.3 kB)

hi skippy,

sounds like you should have a look at the peakspread, barspread and cons (spreads) nodes. i’ll have a look on that patch when i get to my workstation.

ok, i had a look. maybe you meant something more like this?

led_edit01.rar (12.9 kB)

hey m4d,

thank you very much! mever realised the barspread before!

you saved my day, thank you!

how can I say: the first 100 slices (or 50, or 150, depending on > the peak of the sound) are filled with values and the remaining > 412 are filled with the value “0”?

Funny, I was about to record a video tut on this subject :)

You want to count the amount off slices, subtract that from 512, than you know how many 0.0000’s you need. Next we can use Resample (or Select) to create a spread with zero’s, and use a CONS to combine this to the original spread.

Bar and PeakSpread are the nodes you want to use yes.

Good luck, any Q’s please ask :)

FillHerUp.v4p (5.2 kB)

thx west for the patch

the Barspread was all I needed. In its help file it says:

“returns 1 for all slices with an index smaller or equal than the given input, 0 for all others (like in a bar graph display)”

that’s all I need as I can multiplicate this spread with a spread of three Values (R,G,B)… Rx1 = R, Gx1 = G, Bx1 = B, anything x 0 = 0

as long as the DMX node gets a spread of 512 everything is fine

thank you very much for your help!