changing frequency range in plot~ object

2K's icon

Hey there! Does anybody know how to set a frequency range in the plot~ object. Cause anytime i connect an audio signal i see that the range goes from 0Hz to 22050Hz and i wanna change this to 5000Hz maximum. Thanks to all! Kevin.-

2K's icon

bump!

Jean-Francois Charles's icon

Why don't you post a patch example?

2K's icon

Hi Francois, thanks for taking a look.

Max Patch
Copy patch and select New From Clipboard in Max.

Jean-Francois Charles's icon

I see, you are building on the help file. To go this direction, you might have to play with vectral~, etc, to make sure you don't feed plot~ with the whole spectrum, but only with a subset of the analysis.
Here is an example with another solution, writing the spectral data in a buffer~. The way I get rid of unwanted frequency bins here is direct: I just make the buffer~ too small, for instance with just 256 "samples", you are writing half of the spectrum (if FFT size is 1024).
Not exactly what you asked for, but I hope that helps.

Max Patch
Copy patch and select New From Clipboard in Max.