Chaos Programs on the Audio Codec Shield!

Chaos Programs on the Audio Codec Shield!

Postby diydsp » Mon Jan 02, 2012 8:23 pm

Hey everyone!

guest and I were hacking on the Audio Codec Shield tonight and we made a program that makes the Lorentz attractor!!! It has X and Y outputs. You can listen to them or watch them on a scope!!!

Here's the .pde file that does it!
lorentz.zip
(1.24 KiB) Downloaded 922 times


Have fun! Turn on some trance music while its running ;)

Or better yet, download the program yourself and change the constants! The main numbers to change are a, b and c. In the first iteration, we used the classic values 10, 28, 8/3, but there are other ones out there to try. Try looking up "lorenz attractor values" to get some other ones to try.

Here's a short video of in which the time constant, which is controlled by one of the knobs on the Audio Codec Shield, is turned up slowly, speeding up the iteration rate of the strange attractor:
http://www.youtube.com/watch?v=wDoZRnf--B0

IMG_1232.jpg
IMG_1232.jpg (207.54 KiB) Viewed 10467 times
http://diydsp.com is where I teach people Do-It-Yourself Digital Signal Processing for music instruments and other applications.
diydsp
 
Posts: 21
Joined: Mon Dec 19, 2011 10:44 pm

Re: Chaos Programs on the Audio Codec Shield!

Postby mcanulty » Thu Jan 12, 2012 11:22 pm

Nice!
mcanulty
Site Admin
 
Posts: 63
Joined: Thu May 20, 2010 10:46 pm

Re: Chaos Programs on the Audio Codec Shield!

Postby loss1234 » Sun Apr 01, 2012 8:52 pm

was this made for maple or arduino?

it isnt running properly under arduino 1.0
loss1234
 
Posts: 10
Joined: Sun Apr 01, 2012 1:39 am

Re: Chaos Programs on the Audio Codec Shield!

Postby loss1234 » Sun Apr 01, 2012 9:00 pm

Ok

i went through and checked every variable name, changed the interuppt names, etc.....it compiles but nothing comes out of the outputs on arduino.

PLEASE re-post this for arduino

i think many of us dont have a maple
loss1234
 
Posts: 10
Joined: Sun Apr 01, 2012 1:39 am

Re: Chaos Programs on the Audio Codec Shield!

Postby guest » Sun Apr 01, 2012 11:14 pm

this cant run on arduino
it only has fixed point math
guest
Site Admin
 
Posts: 449
Joined: Thu May 20, 2010 11:58 pm

Re: Chaos Programs on the Audio Codec Shield!

Postby loss1234 » Mon Apr 02, 2012 8:22 am

ouch

that was one of the reasons i bought the shield

I have been able to get other chaos programs to run on arduino

(the video game shield comes with some great chaos programs and i am pretty sure the only processor it uses is the arduino)
loss1234
 
Posts: 10
Joined: Sun Apr 01, 2012 1:39 am

Re: Chaos Programs on the Audio Codec Shield!

Postby guest » Mon Apr 02, 2012 1:11 pm

some chaos programs can probably run on the arduino
but i only helped write that one
and dont really understand its inner workings

i know its using floating point
so that wont work
you can try redoing it and scaling all the factors up to 16b values
and see if it runs

for example
a = 12500
b = 32500
c = 3000
dt = 1 + mod0_value >> 8

although it looks like it might have a few too many multiplies
guest
Site Admin
 
Posts: 449
Joined: Thu May 20, 2010 11:58 pm


Return to Audio Codec Shield

Who is online

Users browsing this forum: No registered users and 1 guest


cron