SuperCollider CLASSES (extension)


Bipolar BLIT derived square waveform
Inherits from: UGen : AbstractFunction : Object


Bipolar (alternates 1.0 and -1.0) band limited impulse generator based on B-Spline interpolation of order 3, integrated to create a square waveform.

Class Methods

*ar (freq: 440, leak: 0.99, mul: 1, add: 0)



You start to hear aliasing over 4000 Hz or so, otherwise perceptually indistinguishable from an analogue waveform. Max frequency is half the sampling rate, but you'll hear aliasing well before that. Note that frequency can only be changed at the close of each period, so for very low frequencies, there will be a delay changing pitch. Audio rates for fundamental frequencies in the range of standard acoustic instrument pitches, ie piano keyboard or so, work best.


leaky coefficient for integration. 0 would give back the impulses, higher numbers (up to near 1.0) fill out the inter-impulse space, integrating the waveform.

Inherited class methods

Instance Methods

Inherited instance methods


{, 20, 10)) }.play;

{,1000,'exponential'),,0.999)) }.play;

//blit version is cheaper, but aliases once pushed over 4000 or so at 44100 SR
{, 0.5) }.play;
{ }.play;

//spot the difference in CPU usage
{ Mix.fill(100, {* ((,3))).range(0,36)+36).midicps), 1.0.rand2) }) }.play;

{ Mix.fill(100, {* ((,3))).range(0,36)+36).midicps, 0.5), 1.0.rand2) }) }.play;