I used the dispfft example from manual to test spectrum-> graph widget:
; 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 dispfft.wav -W ;;; for file output any platform
</CsOptions>;be sure to NOT have -d in the CsOptions...
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
kcps = 110
ifn = 1
knh line p4, p3, p5
asig buzz 0.1, kcps, knh, ifn
outs asig, asig
dispfft asig, .1, 2048, 0, 1
f 1 0 16384 10 1
i 1 0 3 20 20
i 1 + 3 3 3
i 1 + 3 150 1
and it works fine for me (Csound6 and CsoundQt built from git)
Make sure that you dont have csound flag -d (turn off displays) set somewhere (either in csd or the csound extra options inc CsoundQt->Configure->Run tab)
Also, there was a bug in csound6 that made dispfft crash that is fixed now in git develop branch (and soon out as csound 6.0.3 I think), I don't know which version you are using.
On Saturday 08 March 2014 10:46:54 christos carras wrote:
sorry, this is probably a very basic question but:
i can't seem to get dispfft and the graph widget to collaborate. no doubt i'm doing something very stupid. i don't understand how the outvalue options, the dispfft opcode and the properties of the graph widget relate.
the graph example in QT runs as audio but does not display the fft spectrum whatever options i choose.
if someone could send a really basic example as a csound unified file i would greatly appreciate it.