SuperCollider CLASSES (extension)

MonoGrain
ExtensionExtension

Granulates real-time input
Inherits from: JoshGrain : UGen : AbstractFunction : Object
 

Description

Class Methods

*ar (in, winsize: 0.1, grainrate: 10, winrandpct: 0, mul: 1, add: 0)

Arguments:

in

A mono input.

winsize

The window size in seconds.

grainrate

The rate at which new grains are created (in Hz).

winrandpct

A randomness factor for window size (as a percentage of the winsize).

mul
add

Inherited class methods

Instance Methods

Inherited instance methods

Examples

(
s.sendMsg(\b_allocRead, 0, Platform.resourceDir +/+ "sounds/a11wlk01-44_1.aiff", 0, -1);

SynthDef(\monograin, {arg buffer = 0;
    var out, winsize, grainrate;
    winsize = MouseX.kr(0.1, 0.01);
    grainrate = MouseY.kr(10, 4);
    out = MonoGrain.ar(PlayBuf.ar(1, buffer, loop: 1), winsize, grainrate, 0);
    Out.ar(0, out);
}).add;

)


s.sendMsg(\s_new, \monograin, 1000, 0, 0, \buffer, 0);

s.sendMsg(\n_free, 1000)