Safe Haskell | None |
---|---|
Language | Haskell98 |
This is a variant of the Haskore.Interface.SuperCollider.Schedule.Install module. It assigns output channels to instruments such that instrument specific global effects can be applied to them.
- newtype Environment a = Environment {
- unwrapEnvironment :: StateT (Channel, NumberChannels) (Writer [Message]) a
- writeOSC :: [Message] -> Environment ()
- nextChannel :: NumberChannels -> Environment Channel
- data Sound params attr = Sound String (Channel, NumberChannels) (attr -> AttributeList)
- type Instrument attr = Sound InstrumentParameters attr
- type Drum attr = Sound DrumParameters attr
- installUGen :: String -> UGen -> Environment (Channel, NumberChannels)
- installSound :: SoundParameters params => (parameterTuple -> AttributeList, graph -> Sound params) -> String -> graph -> Environment (Sound params parameterTuple)
- ugenFromSound :: Sound params attr -> UGen
- data SoundAttributes params = SoundAttributes AttributeList String
- type DrumAttributes = SoundAttributes DrumParameters
- type InstrumentAttributes = SoundAttributes InstrumentParameters
- rhythmicMusicFromDynamicMelody :: Instrument attr -> T (Rational, attr) -> T DrumAttributes InstrumentAttributes
- rhythmicMusicFromMelody :: Instrument attr -> T attr -> T DrumAttributes InstrumentAttributes
- rhythmicMusicFromRhythm :: Drum () -> Dur -> String -> T DrumAttributes InstrumentAttributes
- rhythmicMusicFromDrum :: Drum () -> Dur -> T DrumAttributes InstrumentAttributes
- fromRhythmicMusic :: Environment (UGen, T DrumAttributes InstrumentAttributes) -> T
- example :: IO ()
Install instruments
newtype Environment a Source
Environment | |
|
writeOSC :: [Message] -> Environment () Source
Sound String (Channel, NumberChannels) (attr -> AttributeList) |
type Instrument attr = Sound InstrumentParameters attr Source
type Drum attr = Sound DrumParameters attr Source
installUGen :: String -> UGen -> Environment (Channel, NumberChannels) Source
installSound :: SoundParameters params => (parameterTuple -> AttributeList, graph -> Sound params) -> String -> graph -> Environment (Sound params parameterTuple) Source
ugenFromSound :: Sound params attr -> UGen Source
Play music
data SoundAttributes params Source
These types are identically defined to those from
Haskore.Interface.SuperCollider.Schedule.Install
but they shall be distinct.
Instruments that are installed for use of global effects
cannot be used with the simple playMusic
routine.
Eq (SoundAttributes params) | |
Ord (SoundAttributes params) |
rhythmicMusicFromDynamicMelody :: Instrument attr -> T (Rational, attr) -> T DrumAttributes InstrumentAttributes Source
rhythmicMusicFromMelody :: Instrument attr -> T attr -> T DrumAttributes InstrumentAttributes Source
rhythmicMusicFromRhythm :: Drum () -> Dur -> String -> T DrumAttributes InstrumentAttributes Source
rhythmicMusicFromDrum :: Drum () -> Dur -> T DrumAttributes InstrumentAttributes Source