packages feed

hsc3-0.11: Help/UGen/Information/sampleRate.help.lhs

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

> import Sound.SC3

Compare a sine tone derived from sample rate with a 440Hz tone.
> let f = mce [sampleRate * 0.01, 440]
> in audition (out 0 (sinOsc AR f 0 * 0.1))

The server status command can extract nominal and actual sample rates
from a running server.
> withSC3 (\fd -> Control.Monad.liftM2
>                 (,)
>                 (serverSampleRateNominal fd)
>                 (serverSampleRateActual fd))