pvsbandpSpectral Processing:Streamingpvsbandppvsbandp
A band pass filter working in the spectral domain.
Description
Filter the pvoc frames, passing bins whose frequency is within a
band, and with linear interpolation for transitional bands.
Syntaxfsig pvsbandp fsigin, xlowcut, xlowfull, \
xhighfull, xhighcut[, ktype]Performancefsig -- output pv stream
fsigin -- input pv stream.
xlowcut, xlowfull, xhighfull, xhighcut --
define a trapezium shape for the band that is passed. The a-rate
versions only apply to the sliding case.
ktype -- specifies the shape of the
transitional band. If at the default value of zero the shape is
as below, with linear transition in amplitude. Other values
yield and exponential shape:
(1 - exp( r*type )) / (1 - exp(type))
This includes a linear dB shape when ktype is
log(10) or about 2.30.
The opcode performs a band-pass filter with a spectral envelope
shaped like
klowfull __________________________ khighfull
/ \
/ \
/ \
/ \
/ \
________/ \______________
klowcut khighcut
Examples
Here is an example of the pvsbandp opcode. It uses the file pvsbandp.csd.
Example of the pvsbandp opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoTools for Real-time Spectral Processing (pvs opcodes)CreditsAuthor: &namejohn;December 2007