Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

Derive.Text.TScore

Contents

Synopsis

Documentation

type Parser a = P.Parsec Text () a Source #

data Score Source #

Constructors

Score [Token] 
Instances
Eq Score # 
Instance details

Defined in Derive.Text.TScore

Methods

(==) :: Score -> Score -> Bool #

(/=) :: Score -> Score -> Bool #

Show Score # 
Instance details

Defined in Derive.Text.TScore

Methods

showsPrec :: Int -> Score -> ShowS #

show :: Score -> String #

showList :: [Score] -> ShowS #

data Token Source #

Constructors

TBarline !Rank

Higher count for larger divisions, e.g. anga vs. avartanam.

TNote Note 
Instances
Eq Token # 
Instance details

Defined in Derive.Text.TScore

Methods

(==) :: Token -> Token -> Bool #

(/=) :: Token -> Token -> Bool #

Show Token # 
Instance details

Defined in Derive.Text.TScore

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

type Rank = Int Source #

data Note Source #

Instances
Eq Note # 
Instance details

Defined in Derive.Text.TScore

Methods

(==) :: Note -> Note -> Bool #

(/=) :: Note -> Note -> Bool #

Show Note # 
Instance details

Defined in Derive.Text.TScore

Methods

showsPrec :: Int -> Note -> ShowS #

show :: Note -> String #

showList :: [Note] -> ShowS #

data Duration Source #

Constructors

Duration 
Instances
Eq Duration # 
Instance details

Defined in Derive.Text.TScore

Show Duration # 
Instance details

Defined in Derive.Text.TScore

show_note :: Note -> Text Source #

This should be the inverse of p_note.

p_note :: Parser Note Source #

Parse a note with a letter pitch.

a a2 call/a2
a2.
a~ a2~

rhythm

data Meter Source #

Constructors

Meter 

Fields

Instances
Eq Meter # 
Instance details

Defined in Derive.Text.TScore

Methods

(==) :: Meter -> Meter -> Bool #

(/=) :: Meter -> Meter -> Bool #

Show Meter # 
Instance details

Defined in Derive.Text.TScore

Methods

showsPrec :: Int -> Meter -> ShowS #

show :: Meter -> String #

showList :: [Meter] -> ShowS #

newtype Time Source #

Integral time. This is the smallest time unit expressed.

Constructors

Time Int 
Instances
Enum Time # 
Instance details

Defined in Derive.Text.TScore

Methods

succ :: Time -> Time #

pred :: Time -> Time #

toEnum :: Int -> Time #

fromEnum :: Time -> Int #

enumFrom :: Time -> [Time] #

enumFromThen :: Time -> Time -> [Time] #

enumFromTo :: Time -> Time -> [Time] #

enumFromThenTo :: Time -> Time -> Time -> [Time] #

Eq Time # 
Instance details

Defined in Derive.Text.TScore

Methods

(==) :: Time -> Time -> Bool #

(/=) :: Time -> Time -> Bool #

Integral Time # 
Instance details

Defined in Derive.Text.TScore

Methods

quot :: Time -> Time -> Time #

rem :: Time -> Time -> Time #

div :: Time -> Time -> Time #

mod :: Time -> Time -> Time #

quotRem :: Time -> Time -> (Time, Time) #

divMod :: Time -> Time -> (Time, Time) #

toInteger :: Time -> Integer #

Num Time # 
Instance details

Defined in Derive.Text.TScore

Methods

(+) :: Time -> Time -> Time #

(-) :: Time -> Time -> Time #

(*) :: Time -> Time -> Time #

negate :: Time -> Time #

abs :: Time -> Time #

signum :: Time -> Time #

fromInteger :: Integer -> Time #

Ord Time # 
Instance details

Defined in Derive.Text.TScore

Methods

compare :: Time -> Time -> Ordering #

(<) :: Time -> Time -> Bool #

(<=) :: Time -> Time -> Bool #

(>) :: Time -> Time -> Bool #

(>=) :: Time -> Time -> Bool #

max :: Time -> Time -> Time #

min :: Time -> Time -> Time #

Real Time # 
Instance details

Defined in Derive.Text.TScore

Methods

toRational :: Time -> Rational #

Show Time # 
Instance details

Defined in Derive.Text.TScore

Methods

showsPrec :: Int -> Time -> ShowS #

show :: Time -> String #

showList :: [Time] -> ShowS #

data RhythmState Source #

Constructors

RhythmState 
Instances
Eq RhythmState # 
Instance details

Defined in Derive.Text.TScore

Show RhythmState # 
Instance details

Defined in Derive.Text.TScore