Safe Haskell | Safe-Inferred |
---|
See render
.
Synopsis
- cacheDir :: FilePath -> Text -> FilePath
- render :: InstrumentC.Patch -> IO ()
- noteFilename :: Pitch.NoteNumber -> FilePath
- renderNote :: FilePath -> InstrumentC.Patch -> Note.Note -> IO ()
- pitchToSample :: FilePath -> Text -> Map Pitch.NoteNumber FilePath
- standardNotes :: Note.Element -> [(Pitch.NoteNumber, Note.Note)]
- makeNote :: Note.Element -> Pitch.NoteNumber -> Note.Note
Documentation
render :: InstrumentC.Patch -> IO () Source #
Render representative samples for this instrument so they can be played in realtime by the thru mechanism. This will stop if the output directory already exists, so it's up to the shakefile to remove the directories if the underlying .dsp file has changed.
In theory this should divide the patch up along its important axes (pitch, dynamic, attributes) and render the whole matrix, but for now I only have pitch.
renderNote :: FilePath -> InstrumentC.Patch -> Note.Note -> IO () Source #
pitchToSample :: FilePath -> Text -> Map Pitch.NoteNumber FilePath Source #
standardNotes :: Note.Element -> [(Pitch.NoteNumber, Note.Note)] Source #
Render previews of these notes.
makeNote :: Note.Element -> Pitch.NoteNumber -> Note.Note Source #