JackoAudioIn

JackoAudioIn — Receives an audio signal from 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

Receives an audio signal from a Jack audio input port inside this instance of Csound, which in turn has received the signal from its connected external Jack audio output port.

Syntax

asignal JackoAudioIn ScsoundPortName

Initialization

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

Performance

asignal -- Audio received from the external Jack output port to which ScsoundPortName is connected.

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

Examples

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

Example 486. Example of the JackoAudioIn 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>


See Also

JackoInfo, JackoInfo, JackoFreewheel, JackoAudioOutConnect, JackoAudioOutConnect, JackoMidiInConnect, JackoMidiOutConnect, JackoOn, JackoAudioOut, JackoMidiOut, JackoNoteOut, JackoTransport.

Credits

By: Michael Gogins 2010