| 1 |
// Listing 8.9 Jazz band: |
| 2 |
// save as "score.ck" |
| 3 |
|
| 4 |
// start piano // (1) Starts off with piano chords... |
| 5 |
Machine.add(me.dir() + "/piano.ck") => int pianoID; |
| 6 |
4.8::second => now; |
| 7 |
|
| 8 |
// start drums // (2) ...then adds hi-hat percussion... |
| 9 |
me.dir() + "/drums.ck" => string drumsPath; |
| 10 |
Machine.add(drumsPath ) => int drumsID; |
| 11 |
4.8::second => now; |
| 12 |
|
| 13 |
// start bass // (3) ...then adds in the walking bass line... |
| 14 |
Machine.add(me.dir() + "/bass.ck") => int bassID; |
| 15 |
4.8::second => now; |
| 16 |
|
| 17 |
// start flute solo // (4) ...then adds the flute solo. |
| 18 |
Machine.add(me.dir() + "/flute.ck") => int fluteID; |
| 19 |
4.8::second => now; |
| 20 |
|
| 21 |
// remove drums |
| 22 |
Machine.remove(drumsID); // (5) Cuts the percussion for a bit... |
| 23 |
4.8::second => now; |
| 24 |
|
| 25 |
// add drums back in |
| 26 |
Machine.add(drumsPath) => drumsID; // (6) ...then adds it back in |