summaryrefslogtreecommitdiff
path: root/examples-xml/lposcilsa2.csd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'examples-xml/lposcilsa2.csd.xml')
-rw-r--r--examples-xml/lposcilsa2.csd.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/examples-xml/lposcilsa2.csd.xml b/examples-xml/lposcilsa2.csd.xml
new file mode 100644
index 0000000..2aa17f2
--- /dev/null
+++ b/examples-xml/lposcilsa2.csd.xml
@@ -0,0 +1,41 @@
+<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 lposcilsa2.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
+
+<emphasis role="oblock">instr</emphasis> 1
+
+kcps <emphasis role="op">=</emphasis> 2 <emphasis role="comment">;only integers are allowed</emphasis>
+kloop <emphasis role="op">=</emphasis> 0 <emphasis role="comment">;loop start time in samples</emphasis>
+kend <emphasis role="op">=</emphasis> 45000 <emphasis role="comment">;loop end time in samples</emphasis>
+
+aenv <emphasis role="opc">expsega</emphasis> 0.01, 0.1, 1, 0.1, 0.5, 0.5, 0.01 <emphasis role="comment">;envelope with fast and short segment</emphasis>
+aL, aR <emphasis role="opc">lposcilsa2</emphasis> aenv, kcps, kloop, kend, 1 <emphasis role="comment">;use it for amplitude</emphasis>
+ <emphasis role="opc">outs</emphasis> aL, aR
+
+<emphasis role="oblock">endin</emphasis>
+<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
+<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
+<emphasis role="comment">; Its table size is deferred,</emphasis>
+<emphasis role="comment">; and format taken from the soundfile header.</emphasis>
+<emphasis role="stamnt">f</emphasis> 1 0 0 1 "kickroll.wav" 0 0 0
+
+<emphasis role="comment">; Play Instrument #1 for 6 seconds.</emphasis>
+<emphasis role="comment">; This will loop the drum pattern several times.</emphasis>
+<emphasis role="stamnt">i</emphasis> 1 0 2
+
+<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