JackoAudioOutConnect

JackoAudioOutConnect — Creates an audio connection from Csound to a Jack port.

Description

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 a Jack audio output port inside this instance of Csound to an external Jack audio input port.

Syntax

JackoAudioOutConnect ScsoundPortName, SexternalPortName

Initialization

ScsoundPortName -- The short name ("portname") of the internal Jack audio output port.

SexternalPortName -- The full name ("clientname:portname") of an external Jack audio input port.

Performance

The actual audio must be written with the JackoAudioOut opcode.

[Note] Note
works with an already running Jack daemon. Do not use -+rtaudio=jack in CsOptions

Examples

Here is an example of the JackoAudioOutConnect opcode. It uses the file JackoAudioOut.csd.

Example 489. Example of the JackoAudioOutConnect 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 JackoAudioOut.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"
JackoAudioOutConnect  "audioout", "system:playback_4"   ; create 1 Audio output & connect to soundcard 

instr 1     
asig    vco2 .2, 100
JackoAudioOut "audioout", asig      ; signal is send to the 4th audio channel of the soundcard
asig2   vco2 .2, 40
outs asig2, asig2                   ; while asig2 is send to channel 1&2 of the soundcard
endin

</CsInstruments>
<CsScore>

i 1 0 10
e
</CsScore>
</CsoundSynthesizer>


See Also

The Jacko Opcodes, JackoInfo, JackoInfo, JackoFreewheel, JackoAudioOutConnect, JackoMidiInConnect, JackoMidiOutConnect, JackoOn, JackoAudioIn, JackoAudioOut, JackoMidiOut, JackoNoteOut, JackoTransport.

Credits

By: Michael Gogins 2010