diff options
author | Felipe Sateler <fsateler@debian.org> | 2014-01-24 13:54:37 -0300 |
---|---|---|
committer | Felipe Sateler <fsateler@debian.org> | 2014-01-24 13:54:37 -0300 |
commit | bcf06a42deb371baf3deb9f4addb474b08273120 (patch) | |
tree | 4a8c3fb811dd164d4486628d8eff6043ebe8a6c3 /examples/vlowres.csd | |
parent | 3a91171181113761a14bcc36a086a8dda144b77b (diff) |
Imported Upstream version 6.02~dfsg
Diffstat (limited to 'examples/vlowres.csd')
-rw-r--r-- | examples/vlowres.csd | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/examples/vlowres.csd b/examples/vlowres.csd index 14bc909..58c7df4 100644 --- a/examples/vlowres.csd +++ b/examples/vlowres.csd @@ -1,47 +1,44 @@ <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 RT audio input is needed too ; For Non-realtime ouput leave only the line below: ; -o vlowres.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> -; Initialize the global variables. sr = 44100 -ksmps = 10 +ksmps = 32 nchnls = 2 +0dbfs = 1 -; Instrument #1. -instr 1 - ; Use a nice sawtooth waveform. - asig vco 10000, 220, 1 - - ; Vary the cutoff frequency from 30 to 300 Hz. - kfco line 30, p3, 300 - kres = 25 - iord = 2 - ksep = 20 - ; Apply the filters. - avlr vlowres asig, kfco, kres, iord, ksep +instr 1 - ; It gets loud, so clip the output amplitude to 30,000. - a1 clip avlr, 1, 30000 - outs a1, a1 +kamp init p4 +asig vco2 kamp, 110 ;saw wave +kfco line 30, p3, 300 ;vary the cutoff frequency from 30 to 300 Hz. +kres = 20 +ksep = p5 ;different resonance values +iord = p6 ;and different number of filters +aout vlowres asig, kfco, kres, iord, ksep +aclp clip aout, 1, 1 ;avoid distortion + outs aclp, aclp + endin - - </CsInstruments> <CsScore> +f 1 0 16384 10 1 ;sine -; Table #1, a sine wave. -f 1 0 16384 10 1 +s +i 1 0 10 .1 5 2 ;compensate volume and +i 1 + 10 .1 25 2 ;number of filters = 2 +s +i 1 0 10 .01 5 6 ;compensate volume and +i 1 + 10 .04 15 6 ;number of filters = 6 -; Play Instrument #1 for two seconds. -i 1 0 10 e - </CsScore> </CsoundSynthesizer> + |