Sweep:
Filter:
Classes | UGens > Triggers

Sweep : UGen : AbstractFunction : Object

Triggered linear ramp
Source: Trig.sc

Description

Starts a linear raise by rate/sec from zero when trig input crosses from non-positive to positive.

When rate == 1, Sweep may be used to get a continually-updating measurement of the time (in seconds) since the last trigger.

Class Methods

Sweep.ar(trig: 0.0, rate: 1.0)

Sweep.kr(trig: 0.0, rate: 1.0)

Arguments:

trig

triggers when trig input crosses from non-positive to positive.

rate

rate/sec raise rate

Inherited class methods

Instance Methods

Inherited instance methods

Examples

Sweep can be used as a resettable Phasor or Line - one that can start, pause, resume and stop. To get a resettable XLine behavior change the linlin to linexp in the SynthDef below.