Safe Haskell | Safe-Inferred |
---|
A Track is a container for Events. A track goes from ScoreTime 0 until the end of the last Event.
Synopsis
- with_track :: Track.Track -> Track.SetStyle -> [Events.Events] -> (Ptr Track.Track -> IO a) -> IO a
Documentation
with_track :: Track.Track -> Track.SetStyle -> [Events.Events] -> (Ptr Track.Track -> IO a) -> IO a Source #
Since converting a Track requires both a track and merged events, poke
needs two args. So keep it out of Storable to prevent accidental use of
with
.
Orphan instances
CStorable Track.RenderConfig Source # | |
sizeOf :: Track.RenderConfig -> Int # alignment :: Track.RenderConfig -> Int # peekElemOff :: Ptr Track.RenderConfig -> Int -> IO Track.RenderConfig # pokeElemOff :: Ptr Track.RenderConfig -> Int -> Track.RenderConfig -> IO () # peekByteOff :: Ptr b -> Int -> IO Track.RenderConfig # pokeByteOff :: Ptr b -> Int -> Track.RenderConfig -> IO () # peek :: Ptr Track.RenderConfig -> IO Track.RenderConfig # poke :: Ptr Track.RenderConfig -> Track.RenderConfig -> IO () # | |
CStorable Track.TrackSignal Source # | |
sizeOf :: Track.TrackSignal -> Int # alignment :: Track.TrackSignal -> Int # peekElemOff :: Ptr Track.TrackSignal -> Int -> IO Track.TrackSignal # pokeElemOff :: Ptr Track.TrackSignal -> Int -> Track.TrackSignal -> IO () # peekByteOff :: Ptr b -> Int -> IO Track.TrackSignal # pokeByteOff :: Ptr b -> Int -> Track.TrackSignal -> IO () # peek :: Ptr Track.TrackSignal -> IO Track.TrackSignal # poke :: Ptr Track.TrackSignal -> Track.TrackSignal -> IO () # |