musicxml2-1.4: A representation of the MusicXML format.

Copyright(c) Hans Hoglund 2012
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Music.MusicXml

Contents

Description

A Haskell representation of MusicXML.

For an introduction, see http://www.makemusic.com/musicxml/tutorial.

Synopsis

Score

data Creator Source

Constructors

Creator String String 

data Defaults Source

Constructors

Defaults 

data ScoreAttrs Source

Constructors

ScoreAttrs [Int] 

data PartAttrs Source

Constructors

PartAttrs String 

Part list

Music

Attributes

Notes

Notations

Directions

Lyrics

data Lyric Source

Constructors

Lyric 

Basic types

Pitch

newtype Fifths Source

Constructors

Fifths

Number of fifths upwards relative to C (i.e. F is -1, G is 1)

Fields

getFifths :: Int
 

newtype Line Source

Constructors

Line

Line number, from bottom (i.e. 1-5)

Fields

getLine :: Int
 

Time

newtype Divs Source

Constructors

Divs

Sounding time in ticks

Fields

getDivs :: Int
 

newtype NoteVal Source

Constructors

NoteVal

Notated time in fractions, in [2^^i | i <- [-10..3]].

Fields

getNoteVal :: Rational
 

newtype Beat Source

Constructors

Beat

Time nominator

Fields

getBeat :: Int
 

newtype BeatType Source

Constructors

BeatType

Time denominator

Fields

getBeatType :: Int
 

Dynamics

Misc

data LineType Source

Constructors

Solid 
Dashed 
Dotted 
Wavy 

newtype Level Source

Constructors

Level 

Fields

getLevel :: Max8
 

Import and export functions

toXml :: Score -> Element Source

Render a score as MusicXML.

showXml :: Score -> String Source

Render a score as a MusicXML string.