Skip to content

Commit

Permalink
Merge pull request #681 from tjingboem/master
Browse files Browse the repository at this point in the history
again 2 more Jacko examples
  • Loading branch information
tjingboem authored Oct 7, 2023
2 parents f7d8fff + e6c873f commit a9e2e69
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
34 changes: 34 additions & 0 deletions examples/JackoAudioIn.csd
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<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
JackoOn
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>
7 changes: 6 additions & 1 deletion opcodes/JackoAudioIn.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@
<refsect1>
<title>Examples</title>
<para>
Here is an example of the JackoAudioIn opcode. It uses the file <ulink url="examples/jacko.csd"><citetitle>jacko.csd</citetitle></ulink>.
Here is an example of the JackoAudioIn opcode. It uses the file <ulink url="examples/JackoAudioIn.csd"><citetitle>JackoAudioIn.csd</citetitle></ulink>.
<example>
<title>Example of the JackoAudioIn opcode.</title>
<para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
<xi:include href="examples-xml/JackoAudioIn.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
</para>
</refsect1>

Expand Down
7 changes: 6 additions & 1 deletion opcodes/JackoAudioInConnect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
<refsect1>
<title>Examples</title>
<para>
Here is an example of the JackoAudioInConnect opcode. It uses the file <ulink url="examples/jacko.csd"><citetitle>jacko.csd</citetitle></ulink>.
Here is an example of the JackoAudioInConnect opcode. It uses the file <ulink url="examples/JackoAudioIn.csd"><citetitle>JackoAudioIn.csd</citetitle></ulink>.
<example>
<title>Example of the JackoAudioInConnect opcode.</title>
<para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
<xi:include href="examples-xml/JackoAudioIn.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
</para>
</refsect1>

Expand Down

0 comments on commit a9e2e69

Please sign in to comment.