Minim
core | ugens | analysis
 

Waves

square

Description

Constructs a perfect square wave with the specified duty cycle.

Signature

Wavetable square(float dutyCycle)

Parameters

dutyCycle — float: a square wave with a duty cycle of 0.5 will be a perfect square wave that is 1 half the time and -1 the other half. By changing the duty cycle, you change how much of the square is below zero. So, a duty cycle of 0.2 would result in 20 percent of the square below zero and the rest above. Duty cycle will be clamped to [0,1].

Returns

Wavetable

Related

Waves
Wavetable
Waveform

Example

None available

Usage

Web & Application