plot~ cropping: definedomain definexorigin
Hello everyone,
I'm using Alex Harker's spectrumdraw~ to plot a frequency response, and then using plot~ to overlay some processed data.
With plot~ I'm wondering if anyone has figured out a way to crop the data being displayed on the plot? spectrumdraw~ does this wonderfully, plot~ does not...
I'd like to be able to create a frequency response plot that only shows a specific frequency range, e.g. 20Hz to 20kHz instead of 0Hz through to Nyquist.
For example the spectral tab in the plot~ help patcher sets up a plot of the FFT's magnitude response from 0Hz to Nyquist. Changing definedomain from 0. 22050. to 20. 20000. does nothing to the plot. Trying to adjust definexorigin does nothing to the plot either.
Does anyone have an example they could share that shows a practical use case of how definedomain and definexorigin works on a plot~ ? Or any other magical ways to crop plot~ to a range of data within a larger dataset?
Many thanks in advance for any assistance!
Justin