modeSignal Modifiers:Standard Filtersmodemode
A filter that simulates a mass-spring-damper system
Description
Filters the incoming signal with the specified resonance frequency and
quality factor. It can also be seen as a signal generator for high quality
factor, with an impulse for the excitation. You can combine several modes
to built complex instruments such as bells or guitar tables.
Syntaxaout mode ain, xfreq, xQ [, 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
As this filter would become unstable if
sr/xfreq < pi,
the value of the xfreq is limited to sr/pi-sr/100 internally
(e.g xfreq > 13596 Hz @ 44.1
kHz). The sr/100 term is because the filter while
mathematically stable has a very large amplification as it
approaches the unstable region.
xQ -- quality factor of the filter
The resonance time is roughly proportional to xQ/xfreq.
See Modal Frequency Ratios for frequency ratios of real instruments which can be used to determine the values of xfreq.
Examples
Here is an example of the mode opcode. It uses the file mode.csd.
Example of the mode opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSpecialized Filters: Other filtersCreditsOriginal UDO and documentation/example by François BlancOpcode translation to C-code by Steven YiNew in version 5.04Audio rate parameters introduced in version 6.02November 2013.