; Select audio/midi flags here according to platform
-odac ;;;realtime audio out
;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o vco2ift.wav -W ;;; for file output any platform
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
; user defined waveform -2: fixed table size (64), number of partials
; multiplier is 1.4
itmp ftgen 2, 0, 64, 5, 1, 2, 120, 60, 1, 1, 0.001, 1
ift vco2init -2, 2, 1.4, 4096, 4096, 2
instr 1
icps = p4
ifn vco2ift icps, -2, 0.5 ;with user defined waveform
print ifn
asig oscili 1, 220, ifn ; (-2), and sr/2 bandwidth
outs asig, asig
endin
i 1 0 2 20
i 1 3 2 2000
i 1 6 2 20000
e