Skip to main content

simplefm

simplefm(
@frequency 440
@duration 50
@harmonicity 1
@modindex 1
) -> llll

Generates a waveform via simple FM synthesis 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).
  • @harmonicity [int/float]: Harmonicity ratio, either as a single number, envelope, or buffer. (default: 1).
  • @modindex [int/float]: Modulation index, either as a single number, envelope, or buffer. (default: 1).

Output

Synthesized buffer [llll]


Usage

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