abcnotation-0.5: Haskell representation and parser for ABC notation.

Portabilityportable
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellNone

Music.Abc

Contents

Description

A Haskell representation and parser for ABC notation. Based on the 2.1 standard.

For more information see http://abcnotation.com.

Synopsis

Abc format

Files

data AbcFile Source

A full ABC file (2.2).

File header

data FileHeader Source

File header (2.2.2).

Constructors

FileHeader [Information] [Directive] 

data Element Source

Either a tune, free text or typeset text (2.2.3).

Constructors

Tune AbcTune

An Abc tune.

FreeText String

Free text (2.2.3).

TypesetText String

Typeset text (2.2.3).

Tunes

Music

data Music Source

Constructors

Music [Note :|: (MultiRest :|: (Barline :|: ()))] 

Instances

Note stack

type SlurT a = (Bool, a, Bool)Source

type BeamT a = (Bool, a, Bool)Source

type GraceT a = (Bool, a)Source

type TupletT a = (Duration, a)Source

type RestT a = Maybe (Maybe a)Source

type :|: a b = Either a bSource

Basic types

Time

Pitch

newtype Pitch Source

Constructors

Pitch 

Instances

Decorations (articulation, dynamics etc)

Structure

data Barline Source

Barline, including special barlines and repeats.

newtype MultiRest Source

Constructors

MultiRest 

Fields

getMultiRest :: Int
 

Information etc

type Directive = (String, String)Source

Abc directive.

Import and export