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.inspect('rect buffer')