duty cycle

Generate a burst of audio pulses

This example shows how you can generate a pulse burst of a certain number of repeated rectangle waves. It allows you to choose how many pulses you want to produce, the rate at which you want them to occur, and the width of the pulse relative to the pulse rate, also known as the duty cycle. The patch uses a phasor~ (with its rate specified by the user) and a <~ object (with its threshold specified by the duty cycle) to generate pulse that goes briefly to 1 then back to 0.