RNBO Objects & Operators delay~
Open Help

delay~

Signal delay

Description

Delay a signal by a specified number of samples.

Arguments

maxsize [symbol]

Optional

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, delay~ @maxsize samplerate*2 will create a 2 second delay line regardless of the samplerate of the audio card.

delay [auto]

Optional

The amount of time in samples to delay the incoming signal before output. This value can be up to the maximum size defined by maxsize or maxdelayms . If defined as an object-box attribute, time units can also be used.

ramp [number]

Optional

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 maxsize or maxdelayms . 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 ramp attribute is >0.

Possible values:

0 = 'linear'
1 = 'cubic'
2 = 'spline'
3 = 'cosine'
4 = 'step'
5 = 'none'

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, delay~ @maxsize samplerate*2 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

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 maxsize or maxdelayms . 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