Karya, built on 2018-02-23T20:23:55 (patch cf8565b7ac832266878af99a942555d139065f12)

Safe HaskellNone

Cmd.Load.Midi

Contents

Description

Convert a midi file to a block.

Synopsis

Documentation

convert :: MidiFile -> ([(Text, Track)], Skeleton.Skeleton, [Warn]) Source #

testing

convert_tracks :: [(Text, [Midi])] -> ([(Text, Track)], Skeleton.Skeleton, [Warn]) Source #

Take flat MIDI msgs to a list of tracks where events don't overlap, and add pitch and control tracks.

split_track Source #

Arguments

:: [Midi] 
-> ([NoteTrack], [(RealTime.RealTime, Midi.Key)])

(tracks, notes stuck on)

For each note, assign to the lowest track which doesn't have an overlap.