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

Cmd.Simple

Description

Simple Events are supposed to be easy to read, and easy to serialize to text and load back again. Functions here convert them to and from text form, stashing converted simple blocks in the clipboard.

Synopsis

Documentation

type State = (Text, Allocations, [Block]) Source #

Dump a score, or part of a score, to paste into a test. (global_transform, allocations, blocks)

type Block = (Text, Text, [Maybe Track], [Skeleton.Edge]) Source #

(id_name, title, tracks, skeleton)

type Track = (Text, Text, [Event]) Source #

(id_name, title, events)

type Event = (Double, Double, Text) Source #

(start, duration, text)

type ScoreEvent = (Double, Double, String, Maybe Pitch.NoteNumber) Source #

(start, duration, text, initial_nn)

type PerfEvent = (String, Double, Double, Pitch.NoteNumber) Source #

(inst, start, duration, initial_nn)

type Allocations = [(Instrument, (Qualified, Allocation))] Source #

(instrument, (qualified, [(device, chan)]))

[] chans means it's UiConfig.Dummy.

This doesn't include Patch.config_settings, so it's assumed they're the same as Patch.patch_defaults.

data Allocation Source #

Constructors

Midi [(WriteDevice, Midi.Channel)] 
Dummy 
Im 
Sc 

Instances

Instances details
Show Allocation Source # 
Instance details

Defined in Cmd.Simple

Eq Allocation Source # 
Instance details

Defined in Cmd.Simple

Pretty.Pretty Allocation Source # 
Instance details

Defined in Cmd.Simple

state

block

track

allocations

ExactPerfEvent