Skip to content

Commit

Permalink
added simple flam accent exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
rl337 committed Mar 8, 2015
1 parent cf27522 commit 96f9a87
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/FlamAccentDrumWarmupPlay.ck
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Machine.add(me.dir() + "/classes/Playable.ck");
Machine.add(me.dir() + "/classes/OscADSRPlayable.ck");
Machine.add(me.dir() + "/classes/Playables.ck");
Machine.add(me.dir() + "/classes/Scale.ck");
Machine.add(me.dir() + "/classes/Scales.ck");
Machine.add(me.dir() + "/classes/Chord.ck");
Machine.add(me.dir() + "/classes/Chords.ck");
Machine.add(me.dir() + "/classes/Chordable.ck");
Machine.add(me.dir() + "/classes/BPM.ck");
Machine.add(me.dir() + "/classes/Drum.ck");
Machine.add(me.dir() + "/classes/SndBufDrum.ck");
Machine.add(me.dir() + "/classes/DrumPattern.ck");
Machine.add(me.dir() + "/classes/DrumKit.ck");
Machine.add(me.dir() + "/classes/WavFileWriter.ck");

Machine.add(me.dir() + "/FlamAccentDrumWarmupScore.ck");
48 changes: 48 additions & 0 deletions src/FlamAccentDrumWarmupScore.ck
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@


"/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();

DrumPattern right;
right.init();

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


left.addRepeated(
[
9,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
9,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,

0,6,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
9,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0
],
left.bpm.sixtyfourthNote,
4
);

right.addRepeated(
[
0,6,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
9,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,

9,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
9,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0
],
left.bpm.sixtyfourthNote,
4
);

kit.play(left, right);

0 comments on commit 96f9a87

Please sign in to comment.