hommage-0.0.5: Haskell Offline Music Manipulation And Generation EDSLSource codeContentsIndex
Sound.Hommage.Play
Contents
Play
Interpretation of Notation for Play
Parallel played and hierarchical defined tracks
Environment
Duration
Synopsis
newtype Play a = PLAY {
unPlay :: Duration -> Environment -> a
}
getDur :: Play Dur
resetDur :: Play a -> Play a
randomPlay :: Random a => (a, a) -> Play a
mix :: [Play Signal] -> Play Signal
mix' :: Num a => [Play [a]] -> Play [a]
notationMono :: Notation (Play Signal) -> Play [Mono]
notationStereo :: Notation (Play Signal) -> Play [Stereo]
notation :: Mixable a => Notation (Play a) -> Play a
class Mixable a where
mixdown :: Seq a -> a
data Song a = SONG {
unSong :: Duration -> Environment -> (a, Environment)
}
runSong :: Double -> Song (Play a) -> a
newtype Track a = TRACK {
unTrack :: Environment -> a
}
playTrack :: Track a -> Play a
track :: Trackable a => Play a -> Song (Track a)
class Typeable a => Trackable a where
toNext :: a -> a
newtype Environment = Environment (Int, [(Int, [Dynamic])])
emptyEnvironment :: Environment
nextEnvironment :: Environment -> Environment
insertEnvironment :: [Dynamic] -> Environment -> (Environment -> Dynamic, Environment)
lookupEnvironment :: Int -> Environment -> Dynamic
data Duration = DURATION {
relativeDuration :: Dur
absoluteDuration :: Dur
}
resetDuration :: Duration -> Duration
initDuration :: Dur -> Duration
Play
newtype Play a Source
Constructors
PLAY
unPlay :: Duration -> Environment -> a
show/hide Instances
getDur :: Play DurSource
resetDur :: Play a -> Play aSource
randomPlay :: Random a => (a, a) -> Play aSource
mix :: [Play Signal] -> Play SignalSource
mix' :: Num a => [Play [a]] -> Play [a]Source
Interpretation of Notation for Play
notationMono :: Notation (Play Signal) -> Play [Mono]Source
notationStereo :: Notation (Play Signal) -> Play [Stereo]Source
notation :: Mixable a => Notation (Play a) -> Play aSource
class Mixable a whereSource
Methods
mixdown :: Seq a -> aSource
show/hide Instances
Num a => Mixable ([] a)
Parallel played and hierarchical defined tracks
data Song a Source
Constructors
SONG
unSong :: Duration -> Environment -> (a, Environment)
show/hide Instances
runSong :: Double -> Song (Play a) -> aSource
newtype Track a Source
Constructors
TRACK
unTrack :: Environment -> a
show/hide Instances
playTrack :: Track a -> Play aSource
track :: Trackable a => Play a -> Song (Track a)Source
class Typeable a => Trackable a whereSource
Methods
toNext :: a -> aSource
show/hide Instances
Environment
newtype Environment Source
Constructors
Environment (Int, [(Int, [Dynamic])])
emptyEnvironment :: EnvironmentSource
nextEnvironment :: Environment -> EnvironmentSource
insertEnvironment :: [Dynamic] -> Environment -> (Environment -> Dynamic, Environment)Source
lookupEnvironment :: Int -> Environment -> DynamicSource
Duration
data Duration Source
Constructors
DURATION
relativeDuration :: Dur
absoluteDuration :: Dur
show/hide Instances
resetDuration :: Duration -> DurationSource
initDuration :: Dur -> DurationSource
Produced by Haddock version 2.4.2