src/Examples/FLOSS Manual Examples/04 Sound Synthesis/04C01_Simple_AM.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -o dac |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | |
| 7 | sr = 44100 |
| 8 | ksmps = 32 |
| 9 | nchnls = 2 |
| 10 | 0dbfs = 1 |
| 11 | |
| 12 | instr 1 |
| 13 | aRaise expseg 2, 20, 100 |
| 14 | aModulator poscil 0.3, aRaise |
| 15 | iDCOffset = 0.3 |
| 16 | aCarrier poscil iDCOffset+aModulator, 440 |
| 17 | out aCarrier, aCarrier |
| 18 | endin |
| 19 | |
| 20 | </CsInstruments> |
| 21 | <CsScore> |
| 22 | i 1 0 25 |
| 23 | </CsScore> |
| 24 | </CsoundSynthesizer> |
| 25 | ; example by Alex Hofmann and joachim heintz |