examples/book/digital-artists/chapter9/DrumMachine/initialize.ck
raw| 1 | // Listing 9.17 Initialize.ck adds BPM.ck class and then turns it all over to score.ck |
| 2 | // initialize.ck |
| 3 | |
| 4 | // our conductor/beat-timer class |
| 5 | Machine.add(me.dir()+"/BPM.ck"); // (1) Adds the BPM class definition... |
| 6 | |
| 7 | // our score |
| 8 | Machine.add(me.dir()+"/score.ck"); // (2) ...then adds the score, which does the rest. |
| 9 | |
| 10 | |
| 11 |