SinOsc

object SinOsc extends ProductReader[SinOsc]

A sinusoidal (sine tone) oscillator UGen. This is the same as Osc except that it uses a built-in interpolating sine table of 8192 entries.

'''Note''' that currently (SC 3.7.x), the first frame generated is not zero (i.e. the value of the sine oscillation at time zero) but the value at time 1 / SampleRate.ir .

===Examples===

// plain oscillator
play { SinOsc.ar(441) * 0.2 }
// modulate frequency
play { SinOsc.ar(SinOsc.ar(XLine.kr(1, 1000, 9)).mulAdd(200, 800)) * 0.25 }
// modulate phase
play { SinOsc.ar(800, SinOsc.ar(XLine.kr(1, 1000, 9)) * 2*math.Pi) * 0.25 }
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[SinOsc]
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: SinOsc
def ar(freq: GE, phase: GE): SinOsc
Value Params
freq

frequency in Hertz

phase

phase offset or modulator in radians

def kr: SinOsc
def kr(freq: GE, phase: GE): SinOsc
Value Params
freq

frequency in Hertz

phase

phase offset or modulator in radians

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