TGrains

object TGrains extends ProductReader[TGrains]

Triggers generate grains from a buffer. Each grain has a Hanning envelope

(sin2(x) for x from 0 to pi)

and is panned between two channels of multiple outputs. '''Warning''': Due to a bug (SC 3.6.6), this UGen does not work with LocalBuf but requires a regular buffer.

See also
Companion
class
trait Product
trait Mirror
trait ProductReader[TGrains]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ar(numChannels: Int, trig: GE, buf: GE, speed: GE, centerPos: GE, dur: GE, pan: GE, amp: GE, interp: GE): TGrains
Value Params
amp

Amplitude of the grain.

buf

The buffer index. It must be a one channel (mono) buffer.

centerPos

The position in the buffer in seconds at which the grain envelope will reach maximum amplitude.

dur

Duration of the grain in seconds.

interp

1, 2, or 4. Determines whether the grain uses (1) no interpolation, (2) linear interpolation, or (4) cubic interpolation.

numChannels

Number of output channels.

pan

A value from -1 to 1. Determines where to pan the output in the same manner as PanAz.

speed

1.0 is normal, 2.0 is one octave up, 0.5 is one octave down -1.0 is backwards normal rate etc.

trig

At each trigger, the following arguments are sampled and used as the arguments of a new grain. A trigger occurs when a signal changes from non-positive to positive value. If the trigger is audio rate then the grains will start with sample accuracy.

def read(in: RefMapIn, key: String, arity: Int): TGrains