Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Derive.C.India.Gamakam6

Synopsis

Documentation

State

data PitchState Source #

Constructors

PitchState 

Fields

Instances

Instances details
Show PitchState Source # 
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
Show Call Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

showsPrec :: Int -> Call -> ShowS #

show :: Call -> String #

showList :: [Call] -> ShowS #

Eq Call Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

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

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

data Alias Source #

Constructors

Alias !Char 

Instances

Instances details
Show Alias Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

showsPrec :: Int -> Alias -> ShowS #

show :: Alias -> String #

showList :: [Alias] -> ShowS #

Eq Alias Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

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

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

data Movement Source #

Constructors

Movement !Pitch !Duration 

Instances

Instances details
Show Movement Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Eq Movement Source # 
Instance details

Defined in Derive.C.India.Gamakam6

data Pitch Source #

Constructors

Pitch !From !Steps !Nn 

Instances

Instances details
Show Pitch Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

showsPrec :: Int -> Pitch -> ShowS #

show :: Pitch -> String #

showList :: [Pitch] -> ShowS #

Eq Pitch Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

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

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

data From Source #

Constructors

From 
Prev 
Current 
Next 

Instances

Instances details
Show From Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

showsPrec :: Int -> From -> ShowS #

show :: From -> String #

showList :: [From] -> ShowS #

Eq From Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Methods

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

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

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
Show Duration Source # 
Instance details

Defined in Derive.C.India.Gamakam6

Eq Duration Source # 
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