packages feed

hsc3-0.16: Help/UGen/sampleRate.help.lhs

    > Sound.SC3.UGen.Help.viewSC3Help "SampleRate"
    > Sound.SC3.UGen.DB.ugenSummary "SampleRate"

> import Sound.SC3 {- hsc3 -}

the current nominal sample rate of the server

> g_01 =
>     let sr = 48000 {- 44100 -}
>         f = mce2 sampleRate sr * 0.01
>     in sinOsc AR f 0 * 0.1

The server status command can extract nominal and actual sample rates
from a running server.

    > import Control.Monad
    > withSC3 (liftM2 (,) serverSampleRateNominal serverSampleRateActual)