Safe Haskell | Safe-Inferred |
---|
Convert Score.Event
s to the low-level event format, Note.Note
.
Synopsis
- write :: RealTime -> RealTime -> BlockId -> (ScoreT.Instrument -> Maybe Cmd.ResolvedInstrument) -> FilePath -> Vector.Vector Score.Event -> IO ()
- convert :: BlockId -> (ScoreT.Instrument -> Maybe Cmd.ResolvedInstrument) -> [Score.Event] -> [LEvent.LEvent Note.Note]
Documentation
write :: RealTime -> RealTime -> BlockId -> (ScoreT.Instrument -> Maybe Cmd.ResolvedInstrument) -> FilePath -> Vector.Vector Score.Event -> IO () Source #
Serialize the events to the given path. This is done atomically because this is run from the derive thread, which can be killed at any time.
convert :: BlockId -> (ScoreT.Instrument -> Maybe Cmd.ResolvedInstrument) -> [Score.Event] -> [LEvent.LEvent Note.Note] Source #