summaryrefslogtreecommitdiff
path: root/examples-xml/outkpb.csd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'examples-xml/outkpb.csd.xml')
-rw-r--r--examples-xml/outkpb.csd.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/examples-xml/outkpb.csd.xml b/examples-xml/outkpb.csd.xml
new file mode 100644
index 0000000..6c5fcd2
--- /dev/null
+++ b/examples-xml/outkpb.csd.xml
@@ -0,0 +1,34 @@
+<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 -Q1 -M0 <emphasis role="comment">;;;realtime audio out and midi in and 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 outkpb.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> 10
+<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 2
+
+<emphasis role="oblock">instr</emphasis> 1
+
+ikey <emphasis role="opc">notnum</emphasis>
+ivel <emphasis role="opc">veloc</emphasis>
+
+kpch <emphasis role="opc">linseg</emphasis> 100, 1, 0 <emphasis role="comment">;vary in 1 second</emphasis>
+kpb <emphasis role="op">=</emphasis> <emphasis role="opc">int</emphasis>(kpch) <emphasis role="comment">;whole numbers only</emphasis>
+<emphasis role="opc">outkpb</emphasis> 1, kpb, 0, 127 <emphasis role="comment">;(= pitchbend)</emphasis>
+<emphasis role="opc">midion</emphasis> 1, ikey, ivel <emphasis role="comment">;of external synth</emphasis>
+
+<emphasis role="oblock">endin</emphasis>
+<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
+<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
+<emphasis role="stamnt">f</emphasis>0 30
+
+<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