hsc3-0.19.1: Haskell SuperCollider
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sound.SC3.Common.Rate

Description

Operating rate definitions and utilities.

Synopsis

Documentation

data Rate Source #

Operating rate of unit generator. I = initialisation, K = control, A = audio, D = demand.

Data.List.sort [DR,AR,KR,IR] == [IR,KR,AR,DR]

Constructors

IR 
KR 
AR 
DR 

Instances

Instances details
Bounded Rate Source # 
Instance details

Defined in Sound.SC3.Common.Rate

Enum Rate Source # 
Instance details

Defined in Sound.SC3.Common.Rate

Methods

succ :: Rate -> Rate #

pred :: Rate -> Rate #

toEnum :: Int -> Rate #

fromEnum :: Rate -> Int #

enumFrom :: Rate -> [Rate] #

enumFromThen :: Rate -> Rate -> [Rate] #

enumFromTo :: Rate -> Rate -> [Rate] #

enumFromThenTo :: Rate -> Rate -> Rate -> [Rate] #

Eq Rate Source # 
Instance details

Defined in Sound.SC3.Common.Rate

Methods

(==) :: Rate -> Rate -> Bool #

(/=) :: Rate -> Rate -> Bool #

Ord Rate Source # 
Instance details

Defined in Sound.SC3.Common.Rate

Methods

compare :: Rate -> Rate -> Ordering #

(<) :: Rate -> Rate -> Bool #

(<=) :: Rate -> Rate -> Bool #

(>) :: Rate -> Rate -> Bool #

(>=) :: Rate -> Rate -> Bool #

max :: Rate -> Rate -> Rate #

min :: Rate -> Rate -> Rate #

Read Rate Source # 
Instance details

Defined in Sound.SC3.Common.Rate

Show Rate Source # 
Instance details

Defined in Sound.SC3.Common.Rate

Methods

showsPrec :: Int -> Rate -> ShowS #

show :: Rate -> String #

showList :: [Rate] -> ShowS #

rateId :: Rate -> Int Source #

Integer rate identifier, as required for scsynth bytecode.

rate_color :: Rate -> String Source #

Color identifiers for each Rate.

all_rates :: [Rate] Source #

Set of all Rate values.

rate_parse :: String -> Maybe Rate Source #

Case insensitive parser for rate.

Data.Maybe.mapMaybe rate_parse (words "ar kR IR Dr") == [AR,KR,IR,DR]

Control rates

data K_Type Source #

Enumeration of the four operating rates for controls. I = initialisation, K = control, T = trigger, A = audio.

Constructors

K_IR 
K_KR 
K_TR 
K_AR 

Instances

Instances details
Eq K_Type Source # 
Instance details

Defined in Sound.SC3.Common.Rate

Methods

(==) :: K_Type -> K_Type -> Bool #

(/=) :: K_Type -> K_Type -> Bool #

Ord K_Type Source # 
Instance details

Defined in Sound.SC3.Common.Rate

Show K_Type Source # 
Instance details

Defined in Sound.SC3.Common.Rate

ktype :: Rate -> Bool -> K_Type Source #

Determine class of control given Rate and trigger status.