spectrum with plot~

LP's icon

Hello,

Does somebody know how to create a nice spectrum with the fft~ and plot~ objects?
The spectral demo, in the plot~.maxhelp file, draws nice spectrums but with sectrum envelope and is always blinking!

Thanks

LP

Jean-Francois Charles's icon

Seems to work fine here. The one blinking here is the one using the "unwindowed FFT", but surely you want to use a windowed FFT.
You will have to dive into plot~'s display options if you want to plot the spectrum on a linear frequency scale instead of log.

oli larkin's icon

also checkout spectrumdraw~ by alex harker. indispensable 3rd party object IMO

LP's icon

thanks!
1) Don't find spectrumdraw~ object by alex harker
2)
Le 8 févr. 2015 à 17:52, Jean-Francois Charles wrote:
Seems to work fine here. The one blinking here is the one using the "unwindowed FFT", but surely you want to use a windowed FFT.

Do you have an example of using such a windowed FFT? I just have the example given in the plot~.maxhelp file.

Jean-Francois Charles's icon

I am not sure what you're talking about. In the plot~ help file, you have everything: unwind owed-fft and windowed-fft. See attached screen shot.
Are you working with an earlier version of the help file?
Good luck.

Screen-Shot-2015-02-09-at-8.12.57-PM.png
png
LP's icon

OK, thank you, there was two things that caused problems for me, I've seen that the vector size must be 1/4 of the window size, and it wasn't the cas, now it 's fine.
Second, there was two curves on the same graph, but E.J. told me how to have only one plot in the inspector (doesn't work directly, must delete and undo).
The problem is solved for me.