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

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
Eq Track # 
Instance details

Defined in Cmd.Integrate.Convert

Methods

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

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

Show Track # 
Instance details

Defined in Cmd.Integrate.Convert

Methods

showsPrec :: Int -> Track -> ShowS #

show :: Track -> String #

showList :: [Track] -> ShowS #

Pretty.Pretty Track # 
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.