summaryrefslogtreecommitdiff
path: root/examples/moogvcf.csd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/moogvcf.csd')
-rw-r--r--examples/moogvcf.csd44
1 files changed, 15 insertions, 29 deletions
diff --git a/examples/moogvcf.csd b/examples/moogvcf.csd
index e1de278..bfbd23f 100644
--- a/examples/moogvcf.csd
+++ b/examples/moogvcf.csd
@@ -1,49 +1,35 @@
<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-; Audio out Audio in No messages
--odac -iadc -d ;;;RT audio I/O
+-odac ;;;realtime audio out
+;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o moogvcf.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
-; Initialize the global variables.
sr = 44100
-kr = 4410
-ksmps = 10
-nchnls = 1
+ksmps = 32
+nchnls = 2
+0dbfs = 1
-; Instrument #1.
instr 1
- ; Use a nice sawtooth waveform.
- asig vco 32000, 220, 1
+; iscale does not need to be set here because already 0dbfs = 1
+aout vco .3, 220, 1 ; Use a nice sawtooth waveform.
+kfco line 200, p3, 2000 ; filter-cutoff frequency from .2 to 2 KHz
+krez init p4
+asig moogvcf aout, kfco, krez
+ outs asig, asig
- ; Vary the filter-cutoff frequency from .2 to 2 KHz.
- kfco line 200, p3, 2000
-
- ; Set the resonance amount to one.
- krez init 1
-
- ; Scale the amplitude to 32768.
- iscale = 32768
-
- a1 moogvcf asig, kfco, krez, iscale
-
- out a1
endin
-
-
</CsInstruments>
<CsScore>
-
-; Table #1, a sine wave for the vco opcode.
+;a sine wave
f 1 0 16384 10 1
-; Play Instrument #1 for three seconds.
-i 1 0 3
+i 1 0 3 .1
+i 1 + 3 .7
+i 1 + 3 .95
e
-
-
</CsScore>
</CsoundSynthesizer>