object BPF extends ProductReader[BPF] with Serializable
A second order band pass filter UGen.
Examples
// modulated frequency play { val in = Saw.ar(200) * 0.5 val freq = SinOsc.ar(XLine.ar(0.3, 100, 20)).mulAdd(3600, 4000) BPF.ar(in, freq) }
// mouse controlled frequency and Q play { val in = WhiteNoise.ar(0.5) val freq = MouseX.kr(200, 10000, 1) val q = MouseY.kr(1, 100, 1) // bottom to top val flt = BPF.ar(in, freq, q.reciprocal) flt * q.sqrt // compensate for energy loss }
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BPF
- Serializable
- ProductReader
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def ar(in: GE, freq: GE = 440.0f, rq: GE = 1.0f): BPF
- in
input signal to be filtered
- freq
center frequency in Hertz
- rq
reciprocal of Q. The Q (or quality) is conventionally defined as center-frequency / bandwidth, meaning that rq = bandwidth / center-frequency. A higher Q or lower rq produces a steeper filter.
- def kr(in: GE, freq: GE = 440.0f, rq: GE = 1.0f): BPF
- in
input signal to be filtered
- freq
center frequency in Hertz
- rq
reciprocal of Q. The Q (or quality) is conventionally defined as center-frequency / bandwidth, meaning that rq = bandwidth / center-frequency. A higher Q or lower rq produces a steeper filter.
- def read(in: RefMapIn, key: String, arity: Int): BPF
- Definition Classes
- BPF → ProductReader