JackoAudioInConnect — Creates an audio connection from a Jack port to Csound.
Plugin opcode in jacko. This opcode is part of the plugin repository and has to be installed separately. The plugin repository can be found here: https://github.com/csound/plugins
In the orchestra header, creates an audio connection from an external Jack audio output port to a Jack audio input port inside this instance of Csound.
SexternalPortName -- The full name ("clientname:portname") of an external Jack audio output port.
ScsoundPortName -- The short name ("portname") of the internal Jack audio input port.
Note | |
---|---|
works with an already running Jack daemon. Do not use -+rtaudio=jack in CsOptions |
Here is an example of the JackoAudioInConnect opcode. It uses the file JackoAudioIn.csd.
Example 487. Example of the JackoAudioInConnect opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
<CsoundSynthesizer> <CsOptions> ; Select audio/midi flags here according to platform -odac ;;;realtime audio out ;-iadc ;;;uncomment -iadc if realtime audio input is needed too ; For Non-realtime ouput leave only the line below: ; -o JackoAudioIn.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> sr = 48000 ; The control rate must be BOTH a power of 2 (for Jack) ksmps = 128 nchnls = 2 0dbfs = 1 ; by Menno Knevel - 2023 JackoInit "default", "csound" JackoAudioInConnect "system:capture_1", "audioin" ; create 1 Audio input & connect from soundcard instr 1 ; use Csound as an effect processor asig JackoAudioIn "audioin" aout nreverb asig, 2, .3 outs aout, aout endin </CsInstruments> <CsScore> i 1 0 100 e </CsScore> </CsoundSynthesizer>