Skip to main content

cycle

cycle(
@frequency 440
@duration 50
@phase 0.25
) -> llll

Generates a sinusoidal 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).
  • @phase [int/float]: initial phase, in the 0–1 range. (default: 0.25).

Output

synthesized buffer [llll]


Usage

$buffer = cycle();
$buffer.inspect('cycle buffer')