src/Examples/FLOSS Manual Examples/03 Csound Language/03E03_Audio_array.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -odac -d |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | |
| 7 | sr = 44100 |
| 8 | ksmps = 32 |
| 9 | nchnls = 2 |
| 10 | 0dbfs = 1 |
| 11 | |
| 12 | instr AudioArray |
| 13 | aArr[] init 2 |
| 14 | aArr[0] poscil .2, 400 |
| 15 | aArr[1] poscil .2, 500 |
| 16 | aEnv transeg 1, p3, -3, 0 |
| 17 | out aArr*aEnv |
| 18 | endin |
| 19 | |
| 20 | </CsInstruments> |
| 21 | <CsScore> |
| 22 | i "AudioArray" 0 3 |
| 23 | </CsScore> |
| 24 | </CsoundSynthesizer> |
| 25 | ;example by joachim heintz |