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

Solkattu.Instrument.ToScore

Contents

Description

Functions to convert instrument-specific strokes to karya score.

Synopsis

ToScore

type ToScore stroke Source #

Arguments

 = [(S.Duration, Realize.Note stroke)] 
-> ([Event], [(Text, [Event])])

(noteEvents, [(control, controlEvents)]). A control named "*" becomes a pitch track.

Convert instrument-specific strokes into tracks. This is a simple intermediate data structure to bridge the solkattu types and the karya types.

fromStrokes :: ToScore stroke -> [S.Flat g (Realize.Note stroke)] -> ([Event], [(Text, [Event])]) Source #

toScore :: Expr.ToExpr (Realize.Stroke stroke) => ToScore stroke Source #

A standard ToScore for simple percussion, with 0 duration and no control tracks.