summaryrefslogtreecommitdiff
path: root/examples-xml/lowres.csd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'examples-xml/lowres.csd.xml')
-rw-r--r--examples-xml/lowres.csd.xml38
1 files changed, 15 insertions, 23 deletions
diff --git a/examples-xml/lowres.csd.xml b/examples-xml/lowres.csd.xml
index 87a7489..64f7473 100644
--- a/examples-xml/lowres.csd.xml
+++ b/examples-xml/lowres.csd.xml
@@ -2,46 +2,38 @@
<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>
-<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 lowres.wav -W ;;; for file output any platform</emphasis>
<emphasis role="csdtag">&lt;/CsOptions&gt;</emphasis>
<emphasis role="csdtag">&lt;CsInstruments&gt;</emphasis>
-<emphasis role="comment">; Initialize the global variables.</emphasis>
<emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
-<emphasis role="ohdr">kr</emphasis> <emphasis role="op">=</emphasis> 4410
-<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 10
-<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 1
+<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.</emphasis>
<emphasis role="oblock">instr</emphasis> 1
- <emphasis role="comment">; Use a nice sawtooth waveform.</emphasis>
- asig <emphasis role="opc">vco</emphasis> 5000, 440, 1
- <emphasis role="comment">; Vary the cutoff frequency from 30 to 300 Hz.</emphasis>
- kcutoff <emphasis role="opc">line</emphasis> 30, p3, 300
- kresonance <emphasis role="op">=</emphasis> 10
+kres <emphasis role="op">=</emphasis> p4
+asig <emphasis role="opc">vco</emphasis> .2, 220, 1 <emphasis role="comment">;sawtooth</emphasis>
- <emphasis role="comment">; Apply the filter.</emphasis>
- a1 <emphasis role="opc">lowres</emphasis> asig, kcutoff, kresonance
+kcut <emphasis role="opc">line</emphasis> 1000, p3, 10 <emphasis role="comment">;note: kcut is not in Hz</emphasis>
+as <emphasis role="opc">lowres</emphasis> asig, kcut, kres <emphasis role="comment">;note: kres is not in dB</emphasis>
+aout <emphasis role="opc">balance</emphasis> as, asig <emphasis role="comment">;avoid very loud sounds</emphasis>
+ <emphasis role="opc">outs</emphasis> aout, aout
- <emphasis role="opc">out</emphasis> a1
<emphasis role="oblock">endin</emphasis>
-
-
<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
-
-<emphasis role="comment">; Table #1, a sine wave for the vco opcode.</emphasis>
+<emphasis role="comment">; a sine</emphasis>
<emphasis role="stamnt">f</emphasis> 1 0 16384 10 1
-<emphasis role="comment">; Play Instrument #1 for two seconds.</emphasis>
-<emphasis role="stamnt">i</emphasis> 1 0 2
+<emphasis role="stamnt">i</emphasis> 1 0 4 3
+<emphasis role="stamnt">i</emphasis> 1 + 4 30
+<emphasis role="stamnt">i</emphasis> 1 + 4 60
<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