mvmfilterSignal Modifiers:Specialized Filtersmvmfiltermvmfilter
A filter with pronounced resonance and controllable decay time.
Description
Filters the incoming signal with the specified resonance
frequency and decay time. This can be used to overlay a specific
resonance on to an incoming sound or to model short bursts of
sinusoids at a desired frequency. With a sufficiently long decay
time it can be used as a sinusoidal oscillator.
Syntaxaout mvmfilter ain, xfreq, xTau [, iskip]Initializationiskip
(optional, default=0) -- if non zero skip the initialisation of the
filter.
Performanceaout -- filtered signal
ain -- signal to filter
xfreq -- resonant frequency of the filter
Warning
The filter output can rapidly grow to very large output if
the input signal correlates with the output. The worst case
is that it grows by the magnitude of the input with every
sample. To limit the growth so the filter does not explode,
it is best to scale down any continuous input significantly.
The required scale is related to the value of the decay-time
tau so if you select a maximum decay-time you can calculate
the required scaling: factor = 1 / $M_E /
(sr*tau)
xTau -- Decay time of the filter in seconds
The decay time is the time in seconds for filter to decay to 1/eExamples
Here is an example of the mvmfilter opcode. It uses the file mvmfilter.csd.
Example of the mvmfilter opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSpecialized Filters: Other filtersReferences This filter is based on the work of Max Mathews and Julius
O. Smith III. This filter was originally used by Max Mathews in an
application which applied a bank of these filters to an incoming
sound with live controls over the decay time and frequency
parameters. This setup was the basis for collaborative live
performance and was referred to as Phasor Filters.
Max Mathews and Julius O. Smith III,
"Very High Q Parametrically WellBehaved Two Pole Filters"CreditsOriginal design by Max V. Mathews and Julius O. Smith IIIOpcode implementation by Joel RossNew in version 6.16May 2021.