hsc3-0.16: Haskell SuperCollider
Sound.SC3.UGen.Identifier
Description
Typeclass and functions to manage UGen identifiers.
Synopsis
class Hashable a => ID a where Source #
Typeclass to constrain UGen identifiers.
Methods
resolveID :: a -> Int Source #
Instances
resolveID :: Char -> Int Source #
resolveID :: Double -> Int Source #
resolveID :: Float -> Int Source #
resolveID :: Int -> Int Source #
resolveID :: Integer -> Int Source #
joinID :: (ID a, ID b) => a -> b -> Int Source #
Hash IDs p and q and sum to form an Int.
ID
Int
'a' `joinID` (1::Int) == 1627429042