[chuck-users] putting samples in array

Atte André Jensen atte.jensen at gmail.com
Tue Jun 27 16:55:54 EDT 2006


Adam Tindale wrote:

> // play the 5th sixteenth note
> // 0-15 instead of 1-16
> 4*16th => mysample.pos;
> 16th::samps => now;

I ended up with something similar. The thing is I doesn't just want to 
play the breakbeat, but also change it's feeling. I can now do something 
like:

breakBeat beat;
beat.load("samples/de_la_soul.wav");
[0,-1,14744,24389,29338,-1,44053,-1,58552,-1,73045,-1,87780,-1,102496,-1] 
@=> beat.start_points;
beat.play();

These "sample points" are the placement (in samples) where the beats 
start. Because I have events spit out every 32th note, the above will 
sync perfectly to what-ever else I have running and will sync to me 
tapping on D2 on the keyboard.

Nice. Chuck surely rocks! It's such a pleasure to work in.

-- 
peace, love & harmony
Atte

http://www.atte.dk      | quartet:      http://www.anagrammer.dk
http://www.atte.dk/gps  | compositions: http://www.atte.dk/compositions


More information about the chuck-users mailing list