Skip to content

textmode.synth.js / SynthSource / osc

Method: osc() ​

ts
osc(
   frequency?, 
   sync?, 
   offset?): this;

Generate oscillating patterns using sine waves.

Parameters ​

ParameterTypeDescription
frequency?SynthParameterValueFrequency of the oscillation (default: 60.0)
sync?SynthParameterValueSynchronization offset (default: 0.1)
offset?SynthParameterValuePhase offset (default: 0.0)

Returns ​

this

Example ​