Debian Codegraph @

examples/gbuzz.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 realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o gbuzz.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
17
18 kcps = 220
19 knh = p4 ;total no. of harmonics
20 klh = p5 ;lowest harmonic
21 kmul line 0, p3, 1 ;increase amplitude of
22 ;higer partials
23 asig gbuzz .6, kcps, knh, klh, kmul, 1
24 outs asig, asig
25
26 endin
27 </CsInstruments>
28 <CsScore>
29 ; a cosine wave
30 f 1 0 16384 11 1
31
32 i 1 0 3 3 1 ;3 harmonics, lowest harmonic=1
33 i 1 + 3 30 1 ;30 harmonics, lowest harmonic=1
34 i 1 + 3 3 2 ;3 harmonics, lowest harmonic=3
35 i 1 + 3 30 2 ;30 harmonics, lowest harmonic=3
36 e
37 </CsScore>
38 </CsoundSynthesizer>