bindings-sc3-0.4.1: Low-level bindings to the SuperCollider synthesis engine library.

Safe HaskellSafe-Inferred

Bindings.Sound.SC3

Synopsis

Documentation

data C'World Source

Synthesis engine handle.

Constructors

C'World 

data C'WorldOptions Source

Synthesis engine options.

Constructors

C'WorldOptions 

c'kDefaultWorldOptions :: IO (Ptr C'WorldOptions)Source

Default synthesis engine options.

data C'ReplyAddress Source

Reply address.

Constructors

C'ReplyAddress 

c'ReplyAddress_ReplyData :: Ptr C'ReplyAddress -> IO (Ptr ())Source

Access the callback data pointer in a reply address.

type C'ReplyFunc = FunPtr (Ptr C'ReplyAddress -> Ptr CChar -> CInt -> IO ())Source

Reply function callback.

Arguments:

c'World_New :: Ptr C'WorldOptions -> IO (Ptr C'World)Source

Create a new synthesis engine.

c'World_Cleanup :: Ptr C'World -> IO ()Source

Free the synthesis engine.

This function should only be called after c'World_WaitForQuit has returned.

p'World_Cleanup :: FunPtr (Ptr C'World -> IO ())Source

Perform non-realtime synthesis with the given C'WorldOptions.

p'WorldOptions'mPassword :: Ptr C'WorldOptions -> Ptr CStringSource

Open a UDP input port for receiving OSC commands.

Returns non-zero if the call was successful.

p'WorldOptions'mNumBuffers :: Ptr C'WorldOptions -> Ptr CUIntSource

Open a TCP input port for receiving OSC commands.

Returns non-zero if the call was successful.

p'WorldOptions'mMaxGraphDefs :: Ptr C'WorldOptions -> Ptr CUIntSource

Wait for the synthesis engine to quit.

In order to stop the synthesis engine, send a "/quit" OSC message with c'World_SendPacket, c'World_SendPacketWithContext or through an open network port.

p'WorldOptions'mNumInputBusChannels :: Ptr C'WorldOptions -> Ptr CUIntSource

Send an OSC packet to the synthesis engine.

Returns True if the packet was sent successfully.

Arguments:

p'WorldOptions'mRealTime :: Ptr C'WorldOptions -> Ptr CIntSource

Send an OSC packet to the synthesis engine with callback data.

Returns True if the packet was sent successfully.

Arguments:

  • CInt - OSC packet size in bytes
  • Ptr CChar - OSC packet data
  • C'ReplyFunc - Reply function callback.
  • Ptr () - Reply function callback data.

p'WorldOptions'mPreferredHardwareBufferFrameSize :: Ptr C'WorldOptions -> Ptr CUIntSource

Set the global Haskell print function.

This function, when set, is called by the synthesis engine to print character strings to an appropriate output channel.