src/Examples/FLOSS Manual Examples/03 Csound Language/03B06_Global_audio_added.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsInstruments> |
| 3 | sr = 44100 |
| 4 | ksmps = 4410; very high because of printing |
| 5 | nchnls = 2 |
| 6 | 0dbfs = 1 |
| 7 | |
| 8 | instr 1 |
| 9 | kSum init 0; sum is zero at init pass |
| 10 | kAdd = 1; control signal to add |
| 11 | kSum = kSum + kAdd; new sum in each k-cycle |
| 12 | printk 0, kSum; print the sum |
| 13 | endin |
| 14 | |
| 15 | </CsInstruments> |
| 16 | <CsScore> |
| 17 | i 1 0 1 |
| 18 | </CsScore> |
| 19 | </CsoundSynthesizer> |
| 20 | ;example by joachim heintz |