Safe Haskell | None |
---|
FD variant of interaction with the scsynth server.
- send :: Transport t => t -> Message -> IO ()
- async :: Transport t => t -> Message -> IO Message
- withSC3 :: (UDP -> IO a) -> IO a
- stop :: Transport t => t -> IO ()
- reset :: Transport t => t -> IO ()
- playSynthdef :: Transport t => t -> Synthdef -> IO ()
- playUGen :: Transport t => t -> UGen -> IO ()
- run_bundle :: Transport t => t -> Time -> Bundle -> IO ()
- performNRT :: Transport t => t -> NRT -> IO ()
- class Audible e where
- withNotifications :: Transport t => t -> (t -> IO a) -> IO a
- b_getn1_data :: Transport t => t -> Int -> (Int, Int) -> IO [Double]
- b_getn1_data_segment :: Transport t => t -> Int -> Int -> (Int, Int) -> IO [Double]
- b_fetch :: Transport t => t -> Int -> Int -> IO [Double]
- serverStatus :: Transport t => t -> IO [String]
- serverSampleRateNominal :: Transport t => t -> IO Double
- serverSampleRateActual :: Transport t => t -> IO Double
- serverStatusData :: Transport t => t -> IO [Datum]
hosc variants
Server control
playSynthdef :: Transport t => t -> Synthdef -> IO ()Source
Send d_recv
and s_new
messages to scsynth.
playUGen :: Transport t => t -> UGen -> IO ()Source
Send an anonymous instrument definition using playSynthdef
.
Non-real time
run_bundle :: Transport t => t -> Time -> Bundle -> IO ()Source
Wait (pauseThreadUntil
) until bundle is due to be sent relative
to initial Time
, then send each message, asynchronously if
required.
performNRT :: Transport t => t -> NRT -> IO ()Source
Audible
Class for values that can be encoded and send to scsynth
for
audition.
Notifications
withNotifications :: Transport t => t -> (t -> IO a) -> IO aSource
Turn on notifications, run f, turn off notifications, return result.
Buffer
b_getn1_data :: Transport t => t -> Int -> (Int, Int) -> IO [Double]Source
Variant of b_getn1
that waits for return message and unpacks it.
withSC3 (\fd -> b_getn1_data fd 0 (0,5))
b_getn1_data_segment :: Transport t => t -> Int -> Int -> (Int, Int) -> IO [Double]Source
Variant of b_getn1_data
that segments individual b_getn
messages to n elements.
withSC3 (\fd -> b_getn1_data_segment fd 1 0 (0,5))
b_fetch :: Transport t => t -> Int -> Int -> IO [Double]Source
Variant of b_getn1_data_segment
that gets the entire buffer.
Status
serverStatus :: Transport t => t -> IO [String]Source
Collect server status information.
serverSampleRateNominal :: Transport t => t -> IO DoubleSource
Read nominal sample rate of server.
serverSampleRateActual :: Transport t => t -> IO DoubleSource
Read actual sample rate of server.
serverStatusData :: Transport t => t -> IO [Datum]Source
Retrieve status data from server.