the number of channels to output. If 1
, a monophonic
signal is returned and the pan
argument is ignored.
a control- or audio-rate trigger to start a new grain. For audio-rate, timing is sample frame accurate.
grain duration in seconds
buffer holding a mono audio signal portions of which are read as grains
playback speed of the grain, where 1.0
is original
rate, 0.5
is half speed etc.
grain start position, where 0
is beginning and 1
is
the end of the input buffer
interpolation type when using pitch-shifting via
speed
. 1
for no interpolation (nearest sample), 2
for linear interpolation, and 4
for cubic
interpolation.
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)
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.
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.
buffer holding a mono audio signal portions of which are read as grains
grain duration in seconds
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.
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.
Abstract method which must be implemented by creating the actual UGen
s
during expansion.
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.
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.
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)
grain start position, where 0
is beginning and 1
is
the end of the input buffer
playback speed of the grain, where 1.0
is original
rate, 0.5
is half speed etc.
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.
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
andmaxGrain
are polled at grain creation (trigger) time.the number of channels to output. If
1
, a monophonic signal is returned and thepan
argument is ignored.a control- or audio-rate trigger to start a new grain. For audio-rate, timing is sample frame accurate.
grain duration in seconds
buffer holding a mono audio signal portions of which are read as grains
playback speed of the grain, where
1.0
is original rate,0.5
is half speed etc.grain start position, where
0
is beginning and1
is the end of the input bufferinterpolation type when using pitch-shifting via
speed
.1
for no interpolation (nearest sample),2
for linear interpolation, and4
for cubic interpolation.panning position when
numChannels
is greater than one. Equivalent to the pan position ofPan2
(for stereo output) orPanAz
(for more than two channels)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.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.
PanAz
PlayBuf
TGrains