| 1 |
<CsoundSynthesizer> ; START OF CSOUND FILE |
| 2 |
|
| 3 |
<CsOptions> ; START OF CSOUND CONFIGURATION |
| 4 |
-odac ; realtime audio output |
| 5 |
</CsOptions> ; END OF CSOUND CONFIGURATION |
| 6 |
|
| 7 |
<CsInstruments> ; START OF INSTRUMENT DEFINITIONS |
| 8 |
|
| 9 |
sr = 44100 ; set audio sample rate to 44100 Hz |
| 10 |
ksmps = 64 ; set audio vector size to 64 samples |
| 11 |
nchnls = 2 ; set number of channels to 2 (stereo) |
| 12 |
0dbfs = 1 ; set zero dB full scale as 1 |
| 13 |
|
| 14 |
instr 1 ; play a 440 Hz Sine Wave |
| 15 |
aSin poscil 0dbfs/4, 440 |
| 16 |
out aSin |
| 17 |
endin |
| 18 |
|
| 19 |
</CsInstruments> ; END OF INSTRUMENT DEFINITIONS |
| 20 |
|
| 21 |
<CsScore> ; START OF SCORE EVENTS |
| 22 |
i 1 0 1 ; start instrument 1 at time 0 for 1 second |
| 23 |
</CsScore> |
| 24 |
|
| 25 |
</CsoundSynthesizer> ; END OF THE CSOUND FILE |