Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Synth.Sampler.Convert

Description

Convert Note.Notes to Sample.Samples.

Synopsis

Documentation

lookupSample :: Patch.Patch -> Types.Attributes -> Maybe Pitch.NoteNumber -> Maybe (FilePath, Patch.Sample) Source #

Find the sample with the closest pitch, or if there is no pitch, the first unpitched sample.

keyOnMaybe :: (a -> Maybe k) -> [a] -> [(k, a)] Source #