summaryrefslogtreecommitdiff
path: root/examples-xml/resonxk.csd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'examples-xml/resonxk.csd.xml')
-rw-r--r--examples-xml/resonxk.csd.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/examples-xml/resonxk.csd.xml b/examples-xml/resonxk.csd.xml
new file mode 100644
index 0000000..27d8220
--- /dev/null
+++ b/examples-xml/resonxk.csd.xml
@@ -0,0 +1,46 @@
+<programlisting>
+<emphasis role="csdtag">&lt;CsoundSynthesizer&gt;</emphasis>
+<emphasis role="csdtag">&lt;CsOptions&gt;</emphasis>
+<emphasis role="comment">; Select audio/midi flags here according to platform</emphasis>
+-odac <emphasis role="comment">;;;realtime audio out</emphasis>
+<emphasis role="comment">;-iadc ;;;uncomment -iadc if realtime audio input is needed too</emphasis>
+<emphasis role="comment">; For Non-realtime ouput leave only the line below:</emphasis>
+<emphasis role="comment">; -o resonxk.wav -W ;;; for file output any platform</emphasis>
+<emphasis role="csdtag">&lt;/CsOptions&gt;</emphasis>
+<emphasis role="csdtag">&lt;CsInstruments&gt;</emphasis>
+
+<emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
+<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 32
+<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 2
+<emphasis role="ohdr">0dbfs</emphasis> <emphasis role="op">=</emphasis> 1
+
+gisin <emphasis role="ohdr">ftgen</emphasis> 0, 0, 2^10, 10, 1
+
+<emphasis role="oblock">instr</emphasis> 1
+
+ksig <emphasis role="opc">randomh</emphasis> 400, 1800, 150
+aout <emphasis role="opc">poscil</emphasis> .2, 1000<emphasis role="op">+</emphasis>ksig, gisin
+ <emphasis role="opc">outs</emphasis> aout, aout
+<emphasis role="oblock">endin</emphasis>
+
+<emphasis role="oblock">instr</emphasis> 2
+
+ksig <emphasis role="opc">randomh</emphasis> 400, 1800, 150
+kcf <emphasis role="opc">line</emphasis> 1, p3, 1000 <emphasis role="comment">;vary high-pass</emphasis>
+ilay <emphasis role="op">=</emphasis> p4
+ksig <emphasis role="opc">resonxk</emphasis> ksig, kcf, 100, ilay
+aout <emphasis role="opc">poscil</emphasis> .2, 1000<emphasis role="op">+</emphasis>ksig, gisin
+asig <emphasis role="opc">interp</emphasis> ksig <emphasis role="comment">;convert k-rate to a-rate</emphasis>
+aout <emphasis role="opc">balance</emphasis> asig, aout <emphasis role="comment">;avoid getting asig out of range</emphasis>
+ <emphasis role="opc">outs</emphasis> aout, aout
+<emphasis role="oblock">endin</emphasis>
+
+<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
+<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
+<emphasis role="stamnt">i</emphasis> 1 0 5
+<emphasis role="stamnt">i</emphasis> 2 6 5 1 <emphasis role="comment">;number of filter stack = 1</emphasis>
+<emphasis role="stamnt">i</emphasis> 2 12 5 5 <emphasis role="comment">;number of filter stack = 5</emphasis>
+<emphasis role="stamnt">e</emphasis>
+<emphasis role="csdtag">&lt;/CsScore&gt;</emphasis>
+<emphasis role="csdtag">&lt;/CsoundSynthesizer&gt;</emphasis>
+</programlisting> \ No newline at end of file