Hi everyone,
I am stuck a bit with my code. I don’t get any failures from csound/cabbage but the FFT isn’t displayed in cabbage gui. Here is what I got so far:
<Cabbage>
form size(500, 500), caption("SignalDisplay"), guiMode("queue"), pluginId("SigD")
gentable bounds(12, 10, 370, 250), tablenumber(1), tablebackgroundcolour("white"),
tablecolour:0("blue"), identchannel("table1")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d --displays
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
iFFTsize = 8192 ; size of FFT
iOverlap = iFFTsize / 4 ; overlap of FFT
iWinSize = iFFTsize ; window size
iWinType = 1 ; window type (1 = Hamming)
aSignal diskin2 "1khz.wav" ; read the .wav file
fSig pvsanal aSignal, iFFTsize, iOverlap, iWinSize, iWinType ; perform FFT
; write the FFT to a function table
karr[] init 1026
kframe pvs2tab karr, fSig
tablew kframe,1,1
endin
</CsInstruments>
<CsScore>
f 1 0 16384 -2 0 ; create a function table to hold the FFT data
i 1 0 100 ; start instrument 1
</CsScore>
</CsoundSynthesizer>
thanks
//rootnote