summaryrefslogtreecommitdiff
path: root/examples-xml/moogvcf.csd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'examples-xml/moogvcf.csd.xml')
-rw-r--r--examples-xml/moogvcf.csd.xml44
1 files changed, 15 insertions, 29 deletions
diff --git a/examples-xml/moogvcf.csd.xml b/examples-xml/moogvcf.csd.xml
index ae09dee..53d1573 100644
--- a/examples-xml/moogvcf.csd.xml
+++ b/examples-xml/moogvcf.csd.xml
@@ -2,50 +2,36 @@
<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 moogvcf.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> 32000, 220, 1
+<emphasis role="comment">; iscale does not need to be set here because already 0dbfs = 1 </emphasis>
+aout <emphasis role="opc">vco</emphasis> .3, 220, 1 <emphasis role="comment">; Use a nice sawtooth waveform.</emphasis>
+kfco <emphasis role="opc">line</emphasis> 200, p3, 2000 <emphasis role="comment">; filter-cutoff frequency from .2 to 2 KHz</emphasis>
+krez <emphasis role="opc">init</emphasis> p4
+asig <emphasis role="opc">moogvcf</emphasis> aout, kfco, krez
+ <emphasis role="opc">outs</emphasis> asig, asig
- <emphasis role="comment">; Vary the filter-cutoff frequency from .2 to 2 KHz.</emphasis>
- kfco <emphasis role="opc">line</emphasis> 200, p3, 2000
-
- <emphasis role="comment">; Set the resonance amount to one.</emphasis>
- krez <emphasis role="opc">init</emphasis> 1
-
- <emphasis role="comment">; Scale the amplitude to 32768.</emphasis>
- iscale <emphasis role="op">=</emphasis> 32768
-
- a1 <emphasis role="opc">moogvcf</emphasis> asig, kfco, krez, iscale
-
- <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 wave</emphasis>
<emphasis role="stamnt">f</emphasis> 1 0 16384 10 1
-<emphasis role="comment">; Play Instrument #1 for three seconds.</emphasis>
-<emphasis role="stamnt">i</emphasis> 1 0 3
+<emphasis role="stamnt">i</emphasis> 1 0 3 .1
+<emphasis role="stamnt">i</emphasis> 1 + 3 .7
+<emphasis role="stamnt">i</emphasis> 1 + 3 .95
<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