Please stop me, in case it becomes boring or trivial!

(Stefan Petrick) #1

Please stop me, in case it becomes boring or trivial!


(Robert Atkins) #2

No that’s brilliant!

(Dave Morgan) #3

Very cool indeed! I’m still working on fully understanding the first version of the Funky Clouds code so that I can try coming up with something on my own. I really appreciate your willingness to share! :slight_smile:

(Stefan Petrick) #4

My pleasure and that’s my intention @Dave_Morgan , to inspire you guys. Looking foreward to seeing your ideas manifested! If you have a questions about the code/concept, you’re welcome to ask. :slight_smile:

(Dave Morgan) #5

Thanks Stefan. Most of the code makes perfect sense. The only part I’m struggling with is the Spiral code. I didn’t have time to try running it on my array (24 x 24) last night, and in just looking at it, I don’t understand exactly what it’s doing. I think understanding that is key to being able to come up with my own ideas. :slight_smile:

(Stefan Petrick) #6

It basically describes a quadrat arround the center and moves the content along that line. From the outside to the inside. Maybe these 2 drafts are helpful?

(Dave Morgan) #7

That does help Stefan. I think drafts like what you did are really important in trying to create new patterns like this. I’ll keep thinking about this over the next few days and play with it a bunch over the weekend.

I have one other question. In SpiralStream, you do this:

   leds[XY(x+d,i)] += leds[XY(x+d,i+1)];   // right colum up

In this particular case, what does the += do, and why wouldn’t you just use = instead?

(Stefan Petrick) #8

Because I want to add (and not replace) the color of the next pixel for the blur effect. Check that out:

(Dave Morgan) #9

Ah - for blurring. Okay - I get it now. Thanks! :slight_smile:

(Jonas Vorwerk) #10

Awesome! Would love to see some code :wink:

(Stefan Petrick) #11

So go for it:

(Erin St. Blaine) #12

@Stefan_Petrick If I am understanding the Funky Clouds stuff right, it requires another input (MSGEQ7 or oscillator or something) to run, is that right? Is it possible to run this code just with an Arduino (I’m using a micro) and just let it groove on its own?

(Randal B) #13

This version doesnt need the MSGEQ7… it should run on its own… i think V3 is when he starts to use it.

(Erin St. Blaine) #14

oh sure enough. Look at that. Thanks!

(Stefan Petrick) #15

@Erin_St_Blaine It´s very specific code for a 16x16 array. Not easy to adapt…
If you send a picture of your setup (where are the LEDs and connected in which way) i could help you with the mapping. And yes, it grooves driven by oscillators (basically byte counters). No MSGEQ7 needed. Arduino is fine.
@Randal_B The MSGEQ7 reading in the alpha version (what you call V3) is just an add-on. It basically doesn´t matter, where the data comes from. Could be also an oscillator (a swinging sinus based on an integer counting linear up) or random numbers with interpolation inbetween or noise or you name it.