| 1 |
// Listing 7.4 Playing strings of different stiffness using the StifKarp UGen |
| 2 |
|
| 3 |
StifKarp skarp => dac; // (1) Stiff string model |
| 4 |
while (1) |
| 5 |
{ |
| 6 |
// (2) .stretch method controls stiffness |
| 7 |
Math.random2f(0.3, 1.0) => skarp.stretch; |
| 8 |
1 => skarp.noteOn; |
| 9 |
0.3 :: second => now; |
| 10 |
} |