Set Sample Rate
Description
Sets the current sample rate for the synthesis.
(set-sample-rate ... )
Lisp Syntax and Default Values
The (set-sample-rate ... ) function can be created using the following Lisp syntax:
(set-sample-rate sample_rate)
Parameters
The (set-sample-rate ... ) function takes one argument:
- sample_rate: A number specifying the sample rate (in Hertz).
The default sample rate is 44100 Hz.
Discussion
Modalys will cheerfully compute a system at any sample rate you request. However, the soundfiles that result from running Modalys may not necessarily be playable on your audio hardware. We suggest sticking to the commonly used sample rates: 44100, 48000, 96000, etc.
Also - and this is of importance - the resulting sound may differ not only because the objects have different modal data for different sample rates, but also because the interactions themselves may behave slightly differently.
You can obtain the current sample rate by using:
(get-info 'sample-rate)
Options
There are no special options for this function.