| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
;-iadc ;;;uncomment -iadc if realtime audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o oscil.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
sr = 44100 |
| 11 |
ksmps = 10 |
| 12 |
nchnls = 2 |
| 13 |
0dbfs = 1 |
| 14 |
|
| 15 |
; Determines which instrument outputs debug statements with defines: |
| 16 |
; Change which one is commented out to alter behavior before execution |
| 17 |
#define debug1 ## |
| 18 |
; #define debug2 ## |
| 19 |
|
| 20 |
instr 1 |
| 21 |
iFreq = p4 |
| 22 |
; Outputs text if debug1 is defined |
| 23 |
; This one should print by default |
| 24 |
#ifdef debug1 |
| 25 |
prints "instr 1 debug called\n" |
| 26 |
#end |
| 27 |
a1 vco2 .25, iFreq |
| 28 |
outs a1, a1 |
| 29 |
endin |
| 30 |
|
| 31 |
instr 2 |
| 32 |
iFreq = p4 |
| 33 |
; Outputs text if debug2 is defined |
| 34 |
; This one should not print by default |
| 35 |
#ifdef debug2 |
| 36 |
prints "instr 2 debug called\n" |
| 37 |
#end |
| 38 |
a1 vco2 .25, iFreq |
| 39 |
outs a1, a1 |
| 40 |
endin |
| 41 |
|
| 42 |
</CsInstruments> |
| 43 |
<CsScore> |
| 44 |
i1 0 2 440 |
| 45 |
i2 0 2 660 |
| 46 |
</CsScore> |
| 47 |
</CsoundSynthesizer> |