Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
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.