final case class GrainBuf(numChannels: Int = 1, trig: GE, dur: GE = 1.0f, buf: GE, speed: GE = 1.0f, pos: GE = 0.0f, interp: GE = 2, pan: GE = 0.0f, envBuf: GE = -1, maxGrains: GE = 512) 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- panargument 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.0is original rate,- 0.5is half speed etc.
- pos
- grain start position, where - 0is beginning and- 1is the end of the input buffer
- interp
- interpolation type when using pitch-shifting via - speed.- 1for no interpolation (nearest sample),- 2for linear interpolation, and- 4for cubic interpolation.
- pan
- panning position when - numChannelsis 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 - -1means 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. 
- Alphabetic
- By Inheritance
- GrainBuf
- Serializable
- IsIndividual
- AudioRated
- MultiOut
- SomeOut
- Lazy
- GE
- UGenSource
- Expander
- Lazy
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-    new GrainBuf(numChannels: Int = 1, trig: GE, dur: GE = 1.0f, buf: GE, speed: GE = 1.0f, pos: GE = 0.0f, interp: GE = 2, pan: GE = 0.0f, envBuf: GE = -1, maxGrains: GE = 512)- numChannels
- the number of channels to output. If - 1, a monophonic signal is returned and the- panargument 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.0is original rate,- 0.5is half speed etc.
- pos
- grain start position, where - 0is beginning and- 1is the end of the input buffer
- interp
- interpolation type when using pitch-shifting via - speed.- 1for no interpolation (nearest sample),- 2for linear interpolation, and- 4for cubic interpolation.
- pan
- panning position when - numChannelsis 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 - -1means 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
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-  val buf: GE
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
 
-  val dur: GE
-  val envBuf: GE
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-    lazy val hashCode: Int- Definition Classes
- UGenSource → AnyRef → Any
 
-  val interp: GE
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-    def makeUGen(_args: Vec[UGenIn]): UGenInLike- Attributes
- protected
- Definition Classes
- GrainBuf → UGenSource
 
-    def makeUGens: UGenInLikeAbstract method which must be implemented by creating the actual UGens during expansion.
-  val maxGrains: GE
-   final  def name: String- Definition Classes
- UGenSource
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-  val numChannels: Int
-  val pan: GE
-  val pos: GE
-    def productElementNames: Iterator[String]- Definition Classes
- Product
 
-   final  def rate: Rate- Definition Classes
- AudioRated
 
-  val speed: GE
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-  val trig: GE
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
Deprecated Value Members
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated