| 1 |
// Listing 7.11 Bowing a rigid bar using the BandedWG UGen |
| 2 |
|
| 3 |
// Test some Banded WaveGuide parameters |
| 4 |
BandedWG bwg => dac; |
| 5 |
|
| 6 |
// set to model Tibetan prayer bowl |
| 7 |
3 => bwg.preset; |
| 8 |
|
| 9 |
// whack the "bowl" to get it started |
| 10 |
1 => bwg.noteOn; |
| 11 |
|
| 12 |
// bring the bow to the surface |
| 13 |
1 => bwg.startBowing; |
| 14 |
|
| 15 |
// then bow it with increasing pressure |
| 16 |
for (0 => int i; i <= 7; i++) |
| 17 |
{ |
| 18 |
<<< "bowPressure=", i*0.1 => bwg.bowPressure >>>; |
| 19 |
second => now; |
| 20 |
} |
| 21 |
|
| 22 |
// then bow it with decreasing pressure |
| 23 |
for (6 => int i; i > 0; i--) |
| 24 |
{ |
| 25 |
<<< "bowPressure=", i*0.1 => bwg.bowPressure >>>; |
| 26 |
second => now; |
| 27 |
} |