Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

Cmd.Integrate.Convert

Description

The convert function and support.

Synopsis

Documentation

data Track Source #

A simplified description of a UI track, as collected by Derive.Call.Integrate.

Constructors

Track 

Fields

Instances

Instances details
Show Track Source # 
Instance details

Defined in Cmd.Integrate.Convert

Methods

showsPrec :: Int -> Track -> ShowS #

show :: Track -> String #

showList :: [Track] -> ShowS #

Eq Track Source # 
Instance details

Defined in Cmd.Integrate.Convert

Methods

(==) :: Track -> Track -> Bool #

(/=) :: Track -> Track -> Bool #

Pretty.Pretty Track Source # 
Instance details

Defined in Cmd.Integrate.Convert

type Tracks = [(Track, [Track])] Source #

(note track, control tracks)

convert :: Cmd.M m => BlockId -> Stream.Stream Score.Event -> m Tracks Source #

Convert Score.Events to Tracks. This involves splitting overlapping events into tracks, and trying to map low level notation back to high level.