rect
rect(
@frequency 440
@duration 50
@duty 0.5
) -> llll
Generates a bipolar, anti-aliased rectangular (pulse) 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
).@duty
[int/float/llll]: Duty cycle in the range of 0-1, either as a number, envelope, or buffer. (default:0.5
).
Output
Synthesized buffer [llll]
Usage
$buffer = rect();
$buffer.view('rect buffer')