Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

Synth.Sampler.Convert

Description

Convert Note.Notes to Sample.Samples.

Synopsis

Documentation

lookupSample :: Patch.Patch -> Attrs.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 #