CuspL

object CuspL extends ProductReader[CuspL]

A linear-interpolating sound generator based on the difference equation:

x[n+1] = a - b * sqrt(abs(x[n]))

===Examples===

// vary frequency
play { CuspL.ar(MouseX.kr(20, SampleRate.ir), 1.0, 1.99) * 0.3 }
// mouse-controlled parameters
play { CuspL.ar(SampleRate.ir/4, MouseX.kr(0.9, 1.1, 1), MouseY.kr(1.8, 2,1)) * 0.3 }
// as a frequency control
play { SinOsc.ar(CuspL.ar(40, MouseX.kr(0.9, 1.1, 1), MouseY.kr(1.8, 2, 1)) * 800 + 900) * 0.4 }
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[CuspL]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ar: CuspL
def ar(freq: GE, a: GE, b: GE, xi: GE): CuspL
Value Params
a

Equation variable

b

Equation variable

freq

Iteration frequency in Hertz

xi

Initial value of x

def read(in: RefMapIn, key: String, arity: Int): CuspL