Skip to content

Commit

Permalink
adding simple rolls
Browse files Browse the repository at this point in the history
  • Loading branch information
rl337 committed Mar 9, 2015
1 parent 17f95b1 commit 0853efb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/scores/5StrokeRoll.ck
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


"/Library/ChucK/examples/book/digital-artists/audio" => string audio_dir;

DrumKit kit;
kit.init(audio_dir, 0.9, 0.9, 0.75);
kit.bus => dac;

DrumPattern left;
left.init(120);

DrumPattern right;
right.init(120);

WavFileWriter writer;
writer.init("a.wav", 1.0);
dac => writer.bus;

left.addRepeated( [ 0,0,6,6, 0,0,0,0, 6,6,0,0, 9,0,0,0 ], left.bpm.sixteenthNote, 4);
right.addRepeated( [ 6,6,0,0, 9,0,0,0, 0,0,6,6, 0,0,0,0 ], right.bpm.sixteenthNote, 4);

kit.play(left, right);
22 changes: 22 additions & 0 deletions src/scores/7StrokeRoll.ck
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


"/Library/ChucK/examples/book/digital-artists/audio" => string audio_dir;

DrumKit kit;
kit.init(audio_dir, 0.9, 0.9, 0.75);
kit.bus => dac;

DrumPattern left;
left.init(120);

DrumPattern right;
right.init(120);

WavFileWriter writer;
writer.init("a.wav", 1.0);
dac => writer.bus;

left.addRepeated( [ 0,0,6,6, 0,0,9,0, 0,0, 6,6,0,0, 6,6,0,0, 0,0 ], left.bpm.sixteenthNote, 4);
right.addRepeated( [ 6,6,0,0, 6,6,0,0, 0,0, 0,0,6,6, 0,0,9,0, 0,0 ], right.bpm.sixteenthNote, 4);

kit.play(left, right);

0 comments on commit 0853efb

Please sign in to comment.