de.sciss.synth.ugen

GrainBuf

final case class GrainBuf(numChannels: Int = 1, trig: GE, dur: GE = synth.this.GE.const(1.0), buf: GE, speed: GE = synth.this.GE.const(1.0), pos: GE = synth.this.GE.const(0.0), interp: GE = synth.this.GE.const(2), pan: GE = synth.this.GE.const(0.0), envBuf: GE = synth.this.GE.const(-1), maxGrains: GE = synth.this.GE.const(512.0)) extends MultiOut with AudioRated with IsIndividual with Product with Serializable

A granular synthesis UGen taking sound stored in a buffer. Another buffer can be used to provide an amplitude envelope. The input sound buffer must be monophonic, but output may be multi-channel, using a panorama control.

All arguments except numChannels and maxGrain are polled at grain creation (trigger) time.

numChannels

the number of channels to output. If 1 , a monophonic signal is returned and the pan argument is ignored.

trig

a control- or audio-rate trigger to start a new grain. For audio-rate, timing is sample frame accurate.

dur

grain duration in seconds

buf

buffer holding a mono audio signal portions of which are read as grains

speed

playback speed of the grain, where 1.0 is original rate, 0.5 is half speed etc.

pos

grain start position, where 0 is beginning and 1 is the end of the input buffer

interp

interpolation type when using pitch-shifting via speed . 1 for no interpolation (nearest sample), 2 for linear interpolation, and 4 for cubic interpolation.

pan

panning position when numChannels is greater than one. Equivalent to the pan position of Pan2 (for stereo output) or PanAz (for more than two channels)

envBuf

identifier of a buffer containing a signal to use for the grain envelope. The default value of -1 means that a built-in Hann envelope is used.

maxGrains

maximum number of overlapping grains that can be used at a given time. This value is set at the UGens init time and cannot be modified later. Lower value mean that less memory is used.

See also

PanAz

PlayBuf

TGrains

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. GrainBuf
  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 GrainBuf(numChannels: Int = 1, trig: GE, dur: GE = synth.this.GE.const(1.0), buf: GE, speed: GE = synth.this.GE.const(1.0), pos: GE = synth.this.GE.const(0.0), interp: GE = synth.this.GE.const(2), pan: GE = synth.this.GE.const(0.0), envBuf: GE = synth.this.GE.const(-1), maxGrains: GE = synth.this.GE.const(512.0))

    numChannels

    the number of channels to output. If 1 , a monophonic signal is returned and the pan argument is ignored.

    trig

    a control- or audio-rate trigger to start a new grain. For audio-rate, timing is sample frame accurate.

    dur

    grain duration in seconds

    buf

    buffer holding a mono audio signal portions of which are read as grains

    speed

    playback speed of the grain, where 1.0 is original rate, 0.5 is half speed etc.

    pos

    grain start position, where 0 is beginning and 1 is the end of the input buffer

    interp

    interpolation type when using pitch-shifting via speed . 1 for no interpolation (nearest sample), 2 for linear interpolation, and 4 for cubic interpolation.

    pan

    panning position when numChannels is greater than one. Equivalent to the pan position of Pan2 (for stereo output) or PanAz (for more than two channels)

    envBuf

    identifier of a buffer containing a signal to use for the grain envelope. The default value of -1 means that a built-in Hann envelope is used.

    maxGrains

    maximum number of overlapping grains that can be used at a given time. This value is set at the UGens init time and cannot be modified later. Lower value mean that less memory is used.

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val buf: GE

    buffer holding a mono audio signal portions of which are read as grains

  8. def clone(): AnyRef

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

    grain duration in seconds

  10. val envBuf: GE

    identifier of a buffer containing a signal to use for the grain envelope.

    identifier of a buffer containing a signal to use for the grain envelope. The default value of -1 means that a built-in Hann envelope is used.

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

    Definition Classes
    AnyRef
  12. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  14. val interp: GE

    interpolation type when using pitch-shifting via speed .

    interpolation type when using pitch-shifting via speed . 1 for no interpolation (nearest sample), 2 for linear interpolation, and 4 for cubic interpolation.

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def makeUGen(_args: IndexedSeq[UGenIn]): UGenInLike

    Attributes
    protected
    Definition Classes
    GrainBuf → UGenSource
  17. def makeUGens: UGenInLike

    Attributes
    protected
    Definition Classes
    GrainBuf → Expander
  18. val maxGrains: GE

    maximum number of overlapping grains that can be used at a given time.

    maximum number of overlapping grains that can be used at a given time. This value is set at the UGens init time and cannot be modified later. Lower value mean that less memory is used.

  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

    the number of channels to output.

    the number of channels to output. If 1 , a monophonic signal is returned and the pan argument is ignored.

  24. val pan: GE

    panning position when numChannels is greater than one.

    panning position when numChannels is greater than one. Equivalent to the pan position of Pan2 (for stereo output) or PanAz (for more than two channels)

  25. val pos: GE

    grain start position, where 0 is beginning and 1 is the end of the input buffer

  26. final def rate: Rate

    Definition Classes
    AudioRated
  27. final def rewrap(args: IndexedSeq[UGenInLike], exp: Int): UGenInLike

    Attributes
    protected
    Definition Classes
    SomeOut → UGenSource
  28. val speed: GE

    playback speed of the grain, where 1.0 is original rate, 0.5 is half speed etc.

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

    Definition Classes
    AnyRef
  30. val trig: GE

    a control- or audio-rate trigger to start a new grain.

    a control- or audio-rate trigger to start a new grain. For audio-rate, timing is sample frame accurate.

  31. final def unwrap(args: IndexedSeq[UGenInLike]): UGenInLike

    Attributes
    protected
    Definition Classes
    UGenSource
  32. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. 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