Clave

A synthesized clave with a built-in sequencer, generated using a resonant bandpass filter fed by an impulse.

Inherits from Ugen.

Example:

// use random tunings for each clave hit  
a = Clave().play( Rndf(1500, 5000), 1/16 )

Properties

  • pitch : Float. The cutoff frequency of the resonant filter used to generate the clave sound. This is also set by the note method.
  • amp : Float. default range { 0, 1 }. default value: .25.

Methods

  • note( Float:pitch, Float:amp )
  • play( Array:frequencies, Array:durations ) : This method accepts arrays of frequencies and durations as arguments to create and start a sequencer targeting the oscillator.
  • stop() : This method stops the sequencer that is built into the oscillator if it has been started.
  • kill() : Disconnect the oscillator from whatever bus it is connected to. Note that if the oscillator is reference by another unit generator it will continue to feed output to it.