SuperCollider CLASSES (extension)

BlitB3Tri
ExtensionExtension

Bipolar BLIT derived triangle
Inherits from: UGen : AbstractFunction : Object

Description

Bipolar (alternates 1.0 and -1.0) band limited impulse generator based on B-Spline interpolation of order 3, integrated twice to create a triangle waveform. In this case, richer sound, but probably turns out not to be as useful (less efficient, distortion issues) as LFTri or an integration of square wave. But also see DPW3Tri.

Class Methods

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

Arguments:

freq
leak
leak2

Inherited class methods

Instance Methods

Inherited instance methods

Examples

{ BlitB3Tri.ar(XLine.kr(1000, 20, 10)) }.play;

//unfortunately, aliasing returns at higher frequencies (over 5000Hz or so) with a vengence
{ BlitB3Tri.ar(MouseX.kr(20,8000,'exponential').poll,0.99,MouseY.kr(0.001,0.99)) }.play;

//more efficient, some aliasing from 3000, but not so scary over 5000. Duller sound (less high harmonics included for lower fundamentals)
{ LFTri.ar(MouseX.kr(20,8000,'exponential').poll) }.play;


//comparison
//LFTri version cheaper, and less aliasing! 
x = { LFTri.ar(4000) }.play;
x = { BlitB3Tri.ar(4000) }.play;