rsc3/doc-schelp/HelpSource/Classes/ControlRate.scrbl

46 lines
635 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{ControlRate}
Server control rate.@section{related}
Classes/RadiansPerSample, Classes/SampleDur, Classes/SampleRate, Classes/SubsampleOffset
@section{categories}
UGens>Info
@section{description}
Get the current control rate of the server.
@section{classmethods}
@section{method}
ir
@section{returns}
The current control rate of the server.
equivalent to 1 / link::Classes/ControlDur::
@section{Examples}
@racketblock[
{ ControlRate.ir.poll }.play;
::
play a sine tone at control rate
]
@racketblock[
{ SinOsc.ar(ControlRate.ir) * 0.1 }.play;
::
]