Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Derive.ParseSkeleton

Synopsis

Documentation

data Track Source #

Constructors

Track 

Fields

Instances

Instances details
Show Track Source # 
Instance details

Defined in Derive.ParseSkeleton

Methods

showsPrec :: Int -> Track -> ShowS #

show :: Track -> String #

showList :: [Track] -> ShowS #

default_parser :: [Track] -> Skeleton.Skeleton Source #

A parser figures out a skeleton based on track titles and position.

Tracks starting with > are instrument tracks, the rest are control tracks. A track titled "tempo" scopes over all tracks to its right. Below that, tracks scope left to right.

This should take arguments to apply to instrument and control tracks.

TODO do something special with embedded rulers and dividers

note_bottom_parser :: [Track] -> Skeleton.Skeleton Source #

The note-bottom parser puts note tracks at the bottom:

[tempo c1 i1 c2 i2] -> [tempo1 (c1 i1) (c2 i2)]

This is useful when you don't want to invoke slicing.