src/Examples/FLOSS Manual Examples/05 Sound Modification/05F01_RM_modification.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -o dac --env:SSDIR+=../../SourceMaterials |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | |
| 7 | sr = 44100 |
| 8 | ksmps = 32 |
| 9 | nchnls = 2 |
| 10 | 0dbfs = 1 |
| 11 | |
| 12 | instr RM_static |
| 13 | aMod poscil 1, p4 |
| 14 | aCar diskin "fox.wav" |
| 15 | aRM = aMod * aCar |
| 16 | out aRM, aRM |
| 17 | endin |
| 18 | |
| 19 | instr RM_moving |
| 20 | aMod poscil 1, randomi:k(400,1000,p4,3) |
| 21 | aCar diskin "fox.wav" |
| 22 | aRM = aMod * aCar |
| 23 | out aRM, aRM |
| 24 | endin |
| 25 | |
| 26 | </CsInstruments> |
| 27 | <CsScore> |
| 28 | i "RM_static" 0 3 400 |
| 29 | i . + . 800 |
| 30 | i . + . 1600 |
| 31 | i "RM_moving" 10 3 1 |
| 32 | i . + . 10 |
| 33 | i . + . 100 |
| 34 | </CsScore> |
| 35 | </CsoundSynthesizer> |
| 36 | ;written by Alex Hofmann and joachim heintz |