rand~
Description
Use the rand~ object to generate a signal consisting of random values between -1 and 1 generated at a frequency specified by its input. It interpolates linearly between these values.
Examples

Use rand~ to create roughly band-limited noise, or as a control signal to create random variation
Arguments
initial-frequency [number]
Optional
Unitshz
Sets the initial frequency. The default value is 0. If a signal is connected to the inlet, the argument is ignored.
Attributes
Common Box Attributes
Messages
int
Arguments
input
[int]
The frequency at which a new random number between -1 and 1 is generated. rand~ interpolates linearly between random values chosen at the specified rate. If there is a signal connected to the inlet, the is ignored.
float
Arguments
input
[float]
The frequency at which a new random number between -1 and 1 is generated. rand~ interpolates linearly between random values chosen at the specified rate. If there is a signal connected to the inlet, the is ignored.
signal
The frequency at which a new random number between -1 and 1 is generated. rand~ interpolates linearly between random values chosen at the specified rate.
Output
signal
A signal consisting of line segments between random values in the range -1 to 1. The random values occur at the frequency specified by the input.
See Also
Name | Description |
---|---|
line~ | |
noise~ | |
pink~ | |
MSP Delay Tutorial 4: Flanging | MSP Delay Tutorial 4: Flanging |
MSP Delay Tutorial 5: Chorus | MSP Delay Tutorial 5: Chorus |