Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Module to provide a stateful connection to scsynth.
The purpose is to store Osc Messages that should be sent when resetting the synthesiser.
This should, but does not:
- allow for Scsynth to be at a non-standard address
- allow for multiple Scsynth instances
Synopsis
- data Scsynth = Scsynth {}
- newScsynth :: IO Scsynth
- scsynthPrint :: Scsynth -> IO ()
- scsynthOnReset :: Scsynth -> [Message] -> IO ()
- scsynthReset :: Scsynth -> IO ()
- scsynthPlayAt :: Scsynth -> Play_Opt -> Ugen -> IO ()
- scsynthPlay :: Scsynth -> Ugen -> IO ()
Documentation
newScsynth :: IO Scsynth Source #
Scsynth with no messages or allocated buffers.
scsynthPrint :: Scsynth -> IO () Source #
Print onReset messages.
scsynthOnReset :: Scsynth -> [Message] -> IO () Source #
Add a sequence of messages to be sent on scsynth reset.
scsynth <- newScsynth scsynthOnReset scsynth [b_free 100] scsynthPrint scsynth
scsynthReset :: Scsynth -> IO () Source #
reset scsynth, send all stored onReset messages, clear the onReset message store.