Skip to main content

saw

saw(
@frequency 440
@duration 50
@synctrig 0
) -> llll

Generates a bipolar, anti-aliased sawtooth oscillator as a buffer.


Arguments

  • @frequency [int/float/llll]: Frequency, either as a single number, envelope, or buffer. (default: 440).
  • @duration [int/float]: Buffer duration, in milliseconds (default: 50).
  • @synctrig [int/float/llll]: Sync trigger or value which an input signal crosses at which the oscillator will reset itself, either as a single number, envelope, or buffer. (default: 0).

Output

Synthesized buffer [llll]


Usage

$buffer = saw();
$buffer.view('saw buffer')