A newer version of Max is available. Click here to access the latest version of the Max documentation

samplerate~ Reference

Report current sample rate.

samplerate~

Examples

Outlets

out1 [signal]

The current sample rate of the audio device in use, as a signal.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

See Also

Name Description
currentsampletime Report current time in samples.
samplecount~ report sample count
samplerate Report samplerate when changed.
sampstobeats~ Convert samples to beat time (quarter notes).
sampstohz~ Convert samples to frequency (Hz)
sampstoms~ Convert samples to milliseconds.
sampstoticks~ Convert samples to ticks.
translate translate
vectorsize~ report current vectorsize