| 1 |
// Listing 7.12 Testing all the presets for the Shakers UG |
| 2 |
|
| 3 |
// Fun with particles, the Shakers instrument |
| 4 |
Shakers shak => dac; |
| 5 |
|
| 6 |
// Run through all the presets in order |
| 7 |
for (0 => int i; i < 23; i++) { |
| 8 |
i => shak.preset; |
| 9 |
1 => shak.noteOn; |
| 10 |
1.0 :: second => now; |
| 11 |
} |