delay~
Signal delay
Description
Delay a signal by a specified number of samples.
Arguments
maxsize [symbol]
Set maximum delay size in samples. This determines the amount of memory allocated to the delay line so it is advisable to use the smallest value needed. Note that this can be set using the samplerate or vectorsize operators to account for various audio settings. For example,
will create a 2 second delay line regardless of the samplerate of the audio card.delay [auto]
The amount of time in samples to delay the incoming signal before output. This value can be up to the maximum size defined by
or . If defined as an object-box attribute, time units can also be used.ramp [number]
The time in milliseconds to crossfade between signals when the delay time value is changed (default = 50).
Inlets
input [signal]
The signal to be delayed.
delay [auto]
The amount of time in samples to delay the incoming signal before output. This value can be up to the maximum size defined by
or . If defined as an object-box attribute, time units can also be used.Outlets
output [signal]
The delayed signal.
Fixed Attributes
These attributes must be set in the object box and determine the behavior of the object at runtime.
interp [enum] (default: linear)
Sets the interpolation mode used for crossfading when the
Possible values: attribute is >0.0 = 'linear'
1 = 'cubic'
2 = 'spline'
3 = 'cosine'
4 = 'step'
5 = 'none'
6 = 'fastcubic'
7 = 'spline6'
maxdelayms [number] (default: 0)
Set maximum delay size in milliseconds. Note that this is independent of sample rate, which can result in a larger memory buffer than expected.
maxsize [symbol] (default: samplerate)
Set maximum delay size in samples. This determines the amount of memory allocated to the delay line so it is advisable to use the smallest value needed. Note that this can be set using the samplerate or vectorsize operators to account for various audio settings. For example,
will create a 2 second delay line regardless of the samplerate of the audio card.ramp [number] (default: 50)
The time in milliseconds to crossfade between signals when the delay time value is changed (default = 50).
Dynamic Attributes
These attributes can be modified in the code during execution using the set object
clear [bang]
Clears the delay buffer
delay [auto]
The amount of time in samples to delay the incoming signal before output. This value can be up to the maximum size defined by
or . If defined as an object-box attribute, time units can also be used.input [signal]
The signal to be delayed.
See Also
Name | Description |
---|---|
delay~ | |
beatstosamps~ | Convert beat time (quarter notes) to samples. |
delay | Delay a bang by a given time (ms) |
feedback~ | Single sample buffer delay for a line of feedback |
hztosamps~ | Convert frequency (Hz) to samples. |
metro | metronome |
mstosamps~ | convert milliseconds to samples |
samplerate~ | Report current sample rate. |
tickstosamps~ | Convert ticks to samples. |
transport | transport |