music.get_sample_rate

music.get_sample_rate()[source]

The sample rate routines use when they are not given one.

Returns:
int

Samples per second: 44,100, unless set_sample_rate() has changed it in this thread or task.

Return type:

int

See also

set_sample_rate

change it, for a script or for one block.

Examples

>>> get_sample_rate()
44100