diff options
Diffstat (limited to 'examples-xml/oscil.csd.xml')
-rw-r--r-- | examples-xml/oscil.csd.xml | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/examples-xml/oscil.csd.xml b/examples-xml/oscil.csd.xml index ff57705..672f2b5 100644 --- a/examples-xml/oscil.csd.xml +++ b/examples-xml/oscil.csd.xml @@ -2,42 +2,41 @@ <emphasis role="csdtag"><CsoundSynthesizer></emphasis> <emphasis role="csdtag"><CsOptions></emphasis> <emphasis role="comment">; Select audio/midi flags here according to platform</emphasis> -<emphasis role="comment">; Audio out Audio in No messages</emphasis> --odac -iadc -d <emphasis role="comment">;;;RT audio I/O</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 oscil.wav -W ;;; for file output any platform</emphasis> <emphasis role="csdtag"></CsOptions></emphasis> <emphasis role="csdtag"><CsInstruments></emphasis> -<emphasis role="comment">; Initialize the global variables.</emphasis> <emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100 -<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 10 +<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="comment">; Instrument #1 - a basic oscillator.</emphasis> <emphasis role="oblock">instr</emphasis> 1 - kamp <emphasis role="op">=</emphasis> 10000 - kcps <emphasis role="op">=</emphasis> 440 - ifn <emphasis role="op">=</emphasis> p4 -asig <emphasis role="opc">oscil</emphasis> kamp, kcps, ifn - <emphasis role="opc">outs</emphasis> asig,asig -<emphasis role="oblock">endin</emphasis> +kamp <emphasis role="op">=</emphasis> .6 +kcps <emphasis role="op">=</emphasis> 440 +ifn <emphasis role="op">=</emphasis> p4 +asig <emphasis role="opc">oscil</emphasis> kamp, kcps, ifn + <emphasis role="opc">outs</emphasis> asig,asig +<emphasis role="oblock">endin</emphasis> <emphasis role="csdtag"></CsInstruments></emphasis> <emphasis role="csdtag"><CsScore></emphasis> - -<emphasis role="comment">; Table #1, a sine wave.</emphasis> -<emphasis role="stamnt">f</emphasis> 1 0 16384 10 1 -<emphasis role="comment">; Table #2, a sawtooth wave</emphasis> -<emphasis role="stamnt">f</emphasis> 2 0 256 7 -1 256 1 +<emphasis role="stamnt">f</emphasis>1 0 16384 10 1 <emphasis role="comment">; Sine</emphasis> +<emphasis role="stamnt">f</emphasis>2 0 16384 10 1 0.5 0.3 0.25 0.2 0.167 0.14 0.125 .111 <emphasis role="comment">; Sawtooth</emphasis> +<emphasis role="stamnt">f</emphasis>3 0 16384 10 1 0 0.3 0 0.2 0 0.14 0 .111 <emphasis role="comment">; Square</emphasis> +<emphasis role="stamnt">f</emphasis>4 0 16384 10 1 1 1 1 0.7 0.5 0.3 0.1 <emphasis role="comment">; Pulse</emphasis> <emphasis role="stamnt">i</emphasis> 1 0 2 1 -<emphasis role="stamnt">i</emphasis> 1 + 2 2 -<emphasis role="stamnt">e</emphasis> - +<emphasis role="stamnt">i</emphasis> 1 3 2 2 +<emphasis role="stamnt">i</emphasis> 1 6 2 3 +<emphasis role="stamnt">i</emphasis> 1 9 2 4 +<emphasis role="stamnt">e</emphasis> <emphasis role="csdtag"></CsScore></emphasis> <emphasis role="csdtag"></CsoundSynthesizer></emphasis> </programlisting>
\ No newline at end of file |