src/Examples/FLOSS Manual Examples/05 Sound Modification/05A04_linseg_p3_fractions.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 linseg 0, p3*0.5, .2, p3*0.5, 0 ; rising then falling envelope |
| 13 | aSig poscil aEnv, 500 |
| 14 | out aSig, aSig |
| 15 | endin |
| 16 | |
| 17 | </CsInstruments> |
| 18 | |
| 19 | <CsScore> |
| 20 | ; 3 notes of different durations are played |
| 21 | i 1 0 1 |
| 22 | i 1 2 0.1 |
| 23 | i 1 3 5 |
| 24 | </CsScore> |
| 25 | </CsoundSynthesizer> |
| 26 | ;example by Iain McCurdy |