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

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.