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

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 

Instances

Instances details
Eq Allocation # 
Instance details

Defined in Cmd.Simple

Show Allocation # 
Instance details

Defined in Cmd.Simple

state

block

track

allocations

ExactPerfEvent