hsc3-0.12: Haskell SuperCollider

Safe HaskellSafe-Inferred

Sound.SC3.UGen.Identifier

Description

Typeclass and functions to manage UGen identifiers.

Synopsis

Documentation

class ID a whereSource

Typeclass to constrain UGen identifiers.

Methods

resolveID :: a -> IntSource

Instances

hash :: Hashable32 a => a -> IntSource

Hash value to Int.

idHash :: ID a => a -> IntSource

Hash ID to Int.

joinID :: (ID a, ID b) => a -> b -> IntSource

Hash IDs p and q and sum to form an Int.

 'a' `joinID` (1::Int) == 149929881