de.sciss.synth.ugen

TGrains

final case class TGrains(numChannels: Int, trig: GE, buf: GE, speed: GE = synth.this.GE.const(1.0), centerPos: GE = synth.this.GE.const(0.0), dur: GE = synth.this.GE.const(0.1), pan: GE = synth.this.GE.const(0.0), amp: GE = synth.this.GE.const(0.1), interp: GE = synth.this.GE.const(4)) extends MultiOut with AudioRated with IsIndividual with Product with Serializable

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.

numChannels

Number of output channels.

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.

buf

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

speed

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

centerPos

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

dur

Duration of the grain in seconds.

pan

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

amp

Amplitude of the grain.

interp

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

See also

GrainBuf

Linear Supertypes
Serializable, Serializable, IsIndividual, AudioRated, MultiOut, SomeOut, GE.Lazy, GE, UGenSource[UGenInLike], Expander[UGenInLike], Lazy, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TGrains
  2. Serializable
  3. Serializable
  4. IsIndividual
  5. AudioRated
  6. MultiOut
  7. SomeOut
  8. Lazy
  9. GE
  10. UGenSource
  11. Expander
  12. Lazy
  13. Product
  14. Equals
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TGrains(numChannels: Int, trig: GE, buf: GE, speed: GE = synth.this.GE.const(1.0), centerPos: GE = synth.this.GE.const(0.0), dur: GE = synth.this.GE.const(0.1), pan: GE = synth.this.GE.const(0.0), amp: GE = synth.this.GE.const(0.1), interp: GE = synth.this.GE.const(4))

    numChannels

    Number of output channels.

    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.

    buf

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

    speed

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

    centerPos

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

    dur

    Duration of the grain in seconds.

    pan

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

    amp

    Amplitude of the grain.

    interp

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

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val amp: GE

    Amplitude of the grain.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val buf: GE

    The buffer index.

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

  9. val centerPos: GE

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

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val dur: GE

    Duration of the grain in seconds.

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. lazy val hashCode: Int

    Definition Classes
    UGenSource → AnyRef → Any
  16. val interp: GE

    1, 2, or 4.

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

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def makeUGens: UGenInLike

    Attributes
    protected
    Definition Classes
    TGrains → Expander
  19. final def name: String

    Definition Classes
    UGenSource
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. val numChannels: Int

    Number of output channels.

  24. val pan: GE

    A value from -1 to 1.

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

  25. final def rate: Rate

    Definition Classes
    AudioRated
  26. val speed: GE

    1.

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

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. val trig: GE

    At each trigger, the following arguments are sampled and used as the arguments of a new grain.

    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.

  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from IsIndividual

Inherited from AudioRated

Inherited from MultiOut

Inherited from SomeOut

Inherited from GE.Lazy

Inherited from GE

Inherited from UGenSource[UGenInLike]

Inherited from Expander[UGenInLike]

Inherited from Lazy

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped