SuperCollider CLASSES


timed embedding of values
Inherits from: Pstep : Pattern : AbstractFunction : Object


Pseg defines a function of time as a breakpoint envelope using the same parameters as Env. These patterns can be used to describe tempo or dynamic variations independent of the rhythmic patterns that express them.

Class Methods

*new (levels, durs: 1, curves: 'lin', repeats: 1)



A Pattern that returns the levels. The first level is the initial value of the envelope, all subsequent values are interpolated.


A Pattern that returns segments durations in beats.


a Symbol, Float, or an Array of those. Determines the shape of the segments.


a number.

The possible values are:
\stepflat segments.
\linear\linlinear segments, the default.
\exponential\expnatural exponential growth and decay. In this case, the levels must all be nonzero and the have the same sign.
\sine\sinsinusoidal S shaped segments.
\welch\welsinusoidal segments shaped like the sides of a Welch window.
\squared\sqrsquared segment.
\cubed\cubcubed segment.
a Floata curvature value for all segments. 0 means linear, positive and negative numbers curve the segment up and down.
an Array of symbols or floatscurvature values for each segment.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods


-curves = value

-embedInStream (inval)


// change a parameter
    \note,  Pseg( Pseq([1, 5],inf), Pseq([4, 1],inf), \linear),
    \dur, 0.1

    \freq,  Pseg( Pseq([400, 1500], inf), Pseq([4, 4],inf), Pseq([\linear, \exp],inf)),
    \dur, 0.1