Debian Codegraph @

examples/mac.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if real audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o mac.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 instr 1 ;4 band equalizer
17
18 klow = p4 ;low gain1
19 klmid = p5 ;low gain2
20 kmidh = p6 ;high gain1
21 khigh = p7 ;high gain2
22 ifn = p8 ;table
23
24 ilc1 table 0, ifn ;low freqency range
25 ilc2 table 1, ifn ;low-mid
26 ihc1 table 2, ifn ;mid-high
27 ihc2 table 3, ifn ;high
28
29 asig diskin2 "fox.wav", 1
30 alow1 butterlp asig, ilc1 ;lowpass 1
31 almid butterlp asig, ilc2 ;lowpass 2
32 amidh butterhp asig, ihc1 ;highpass 1
33 ahigh butterhp asig, ihc2 ;highpass 2
34 aout mac klow, alow1, klmid, almid, kmidh, amidh, khigh, ahigh
35 outs aout, aout
36
37 endin
38 </CsInstruments>
39 <CsScore>
40 f1 0 4 -2 150 300 600 5000
41 f2 0 4 -2 75 500 1000 10000
42 f3 0 4 -2 200 700 1500 3000
43
44 ; low lowmid midhigh high table
45 i 1 0 2.8 2 1 1 1 1
46 i 1 3 2.8 2 3 1 1 2
47 i 1 6 2.8 2 1 2 3 3
48 e
49 </CsScore>
50 </CsoundSynthesizer>
51