Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone



See render.



cacheDir :: FilePath -> Text -> FilePath Source #

The patch preview cache is in imDir / cacheDir / patchName / nn.wav

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.

standardNotes :: Note.Element -> [(Pitch.NoteNumber, Note.Note)] Source #

Render previews of these notes.