Packages

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
}
See also

HPF

LPF

BRF

Resonz

MidEQ

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BPF
  2. Serializable
  3. ProductReader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. 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.

  2. 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.

  3. def read(in: RefMapIn, key: String, arity: Int): BPF
    Definition Classes
    BPFProductReader