| 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 notequal.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
|
| 18 |
ipch = cpspch(p4) |
| 19 |
iprint = p5 |
| 20 |
if (iprint != 1) goto skipPrint |
| 21 |
print ipch |
| 22 |
asig vco .7, ipch, 2, 0.5, 1 |
| 23 |
outs asig, asig |
| 24 |
|
| 25 |
skipPrint: |
| 26 |
|
| 27 |
endin |
| 28 |
|
| 29 |
</CsInstruments> |
| 30 |
<CsScore> |
| 31 |
f 1 0 65536 10 1 ;sine wave |
| 32 |
|
| 33 |
i1 0 .5 8.00 0 |
| 34 |
i1 + .5 8.01 1 ; this note will print it's ipch value and only this one will be played |
| 35 |
i1 + .5 8.02 2 |
| 36 |
|
| 37 |
e |
| 38 |
</CsScore> |
| 39 |
</CsoundSynthesizer> |