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

Derive.C.India.Gamakam6

Synopsis

Documentation

State

data PitchState Source #

Constructors

PitchState 

Fields

Instances

Instances details
Show PitchState # 
Instance details

Defined in Derive.C.India.Gamakam6

initial state

pitch sequence

next_event :: PassedArgs a -> Maybe ScoreTime.TrackTime Source #

Start of the next event. Args.next gets the end of the block if there is no next event, but I don't want that.

infer_end :: PassedArgs a -> Deriver ScoreTime.TrackTime Source #

Infer the end time for the gamakam as the next pitch in the pitch signal, which should correspond to the next explicit swaram.

aliases

call types

type Parser a = A.Parser a Source #

data Call Source #

Constructors

SetFrom !Pitch 
Move !Movement 

Instances

Instances details
Eq Call # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

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

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

Show Call # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

showsPrec :: Int -> Call -> ShowS #

show :: Call -> String #

showList :: [Call] -> ShowS #

data Alias Source #

Constructors

Alias !Char 

Instances

Instances details
Eq Alias # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

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

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

Show Alias # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

showsPrec :: Int -> Alias -> ShowS #

show :: Alias -> String #

showList :: [Alias] -> ShowS #

data Movement Source #

Constructors

Movement !Pitch !Duration 

Instances

Instances details
Eq Movement # 
Instance details

Defined in Derive.C.India.Gamakam6

Show Movement # 
Instance details

Defined in Derive.C.India.Gamakam6

data Pitch Source #

Constructors

Pitch !From !Steps !Nn 

Instances

Instances details
Eq Pitch # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

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

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

Show Pitch # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

showsPrec :: Int -> Pitch -> ShowS #

show :: Pitch -> String #

showList :: [Pitch] -> ShowS #

data From Source #

Constructors

From 
Prev 
Current 
Next 

Instances

Instances details
Eq From # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

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

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

Show From # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

showsPrec :: Int -> From -> ShowS #

show :: From -> String #

showList :: [From] -> ShowS #

type Steps = Int Source #

Relative scale degrees.

type Nn = Double Source #

Relative NoteNumbers.

data Duration Source #

How much time the movement takes.

Instances

Instances details
Eq Duration # 
Instance details

Defined in Derive.C.India.Gamakam6

Show Duration # 
Instance details

Defined in Derive.C.India.Gamakam6

type Code = Text Source #

Text representing unparsed Calls.

parse

p_pitch :: Parser Pitch Source #

=<>
[+^v]? | #?[0-9a-d]? [+^v]?

choose_char :: [(Char, a)] -> Parser a Source #

misc