src/Examples/FLOSS Manual Examples/05 Sound Modification/05A07_expon_pings.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -odac |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | sr = 44100 |
| 7 | ksmps = 32 |
| 8 | nchnls = 2 |
| 9 | 0dbfs = 1 |
| 10 | |
| 11 | instr 1; expon envelope |
| 12 | iEndVal = p4 ; variable 'iEndVal' retrieved from score |
| 13 | aEnv expon 1, p3, iEndVal |
| 14 | aSig poscil aEnv, 500 |
| 15 | out aSig, aSig |
| 16 | endin |
| 17 | |
| 18 | </CsInstruments> |
| 19 | <CsScore> |
| 20 | ;p1 p2 p3 p4 |
| 21 | i 1 0 1 0.001 |
| 22 | i 1 1 1 0.000001 |
| 23 | i 1 2 1 0.000000000000001 |
| 24 | e |
| 25 | </CsScore> |
| 26 | </CsoundSynthesizer> |
| 27 | ;example by Iain McCurdy |