Debian Codegraph @

examples/JackoAudioIn.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 JackoAudioIn.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 JackoAudioInConnect "system:capture_1", "audioin" ; create 1 Audio input & connect from soundcard
20
21 instr 1 ; use Csound as an effect processor
22 asig JackoAudioIn "audioin"
23 aout nreverb asig, 2, .3
24 outs aout, aout
25 endin
26
27 </CsInstruments>
28 <CsScore>
29
30 i 1 0 100
31 e
32 </CsScore>
33 </CsoundSynthesizer>