src/Examples/FLOSS Manual Examples/05 Sound Modification/05A01_line.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 |
| 12 | aEnv line 0.5, 2, 0 ; amplitude envelope |
| 13 | aSig poscil aEnv, 500 ; audio oscillator |
| 14 | out aSig, aSig ; audio sent to output |
| 15 | endin |
| 16 | |
| 17 | </CsInstruments> |
| 18 | <CsScore> |
| 19 | i 1 0 2 ; instrument 1 plays a note for 2 seconds |
| 20 | </CsScore> |
| 21 | </CsoundSynthesizer> |
| 22 | ;example by Iain McCurdy |