Debian Codegraph @

examples/vco2ift.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 vco2ift.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 ; user defined waveform -2: fixed table size (64), number of partials
17 ; multiplier is 1.4
18 itmp ftgen 2, 0, 64, 5, 1, 2, 120, 60, 1, 1, 0.001, 1
19 ift vco2init -2, 3, 1.4, 4096, 4096, 2
20
21
22 instr 1
23
24 icps = p4
25 ifn vco2ift icps, -2, 0.5 ;with user defined waveform
26 print ifn
27 asig oscili 1, 220, ifn ; (-2), and sr/2 bandwidth
28 outs asig, asig
29
30 endin
31 </CsInstruments>
32 <CsScore>
33
34 i 1 0 2 20
35 i 1 3 2 2000
36 i 1 6 2 20000
37
38 e
39 </CsScore>
40 </CsoundSynthesizer>
41