Debian Codegraph @

src/Examples/FLOSS Manual Examples/05 Sound Modification/05C01_tone_butlp_moogladder.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac ; activates real time sound output
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 32
8 nchnls = 1
9 0dbfs = 1
10
11 instr 1
12 prints "tone%n" ; indicate filter type in console
13 aSig vco2 0.5, 150 ; input signal is a sawtooth waveform
14 kcf expon 10000,p3,20 ; descending cutoff frequency
15 aSig tone aSig, kcf ; filter audio signal
16 out aSig ; filtered audio sent to output
17 endin
18
19 instr 2
20 prints "butlp%n" ; indicate filter type in console
21 aSig vco2 0.5, 150 ; input signal is a sawtooth waveform
22 kcf expon 10000,p3,20 ; descending cutoff frequency
23 aSig butlp aSig, kcf ; filter audio signal
24 out aSig ; filtered audio sent to output
25 endin
26
27 instr 3
28 prints "moogladder%n" ; indicate filter type in console
29 aSig vco2 0.5, 150 ; input signal is a sawtooth waveform
30 kcf expon 10000,p3,20 ; descending cutoff frequency
31 aSig moogladder aSig, kcf, 0.9 ; filter audio signal
32 out aSig ; filtered audio sent to output
33 endin
34
35 </CsInstruments>
36 <CsScore>
37 ; 3 notes to demonstrate each filter in turn
38 i 1 0 3; tone
39 i 2 4 3; butlp
40 i 3 8 3; moogladder
41 </CsScore>
42 </CsoundSynthesizer>
43 ;example by Iain McCurdy