mvmfilter Signal Modifiers:Specialized Filters mvmfilter mvmfilter 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. Syntax aout mvmfilter ain, xfreq, xTau [, iskip] Initialization iskip (optional, default=0) -- if non zero skip the initialisation of the filter. Performance aout -- 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/e Examples 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 also Specialized Filters: Other filters References 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" Credits Original design by Max V. Mathews and Julius O. Smith III Opcode implementation by Joel Ross New in version 6.16 May 2021.