Debian Codegraph @

examples/JackoAudioOut.csd

raw
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 JackoAudioOut.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 48000 ; The control rate must be BOTH a power of 2 (for Jack)
12 ksmps = 128
13 nchnls = 2
14 0dbfs = 1
15
16 ; by Menno Knevel - 2023
17
18 JackoInit "default", "csound"
19 JackoAudioOutConnect "audioout", "system:playback_4" ; create 1 Audio output & connect to soundcard
20
21 instr 1
22 asig vco2 .2, 100
23 JackoAudioOut "audioout", asig ; signal is send to the 4th audio channel of the soundcard
24 asig2 vco2 .2, 40
25 outs asig2, asig2 ; while asig2 is send to channel 1&2 of the soundcard
26 endin
27
28 </CsInstruments>
29 <CsScore>
30
31 i 1 0 10
32 e
33 </CsScore>
34 </CsoundSynthesizer>