- data Duration = Duration {}
- data D_Annotation
- = Tie_Right
- | Tie_Left
- | Begin_Tuplet (Integer, Integer, Duration)
- | End_Tuplet
- whole_note :: Duration
- half_note :: Duration
- quarter_note :: Duration
- eighth_note :: Duration
- sixteenth_note :: Duration
- thirtysecond_note :: Duration
- breve :: Duration
- dotted_whole_note :: Duration
- dotted_half_note :: Duration
- dotted_quarter_note :: Duration
- dotted_eighth_note :: Duration
- dotted_sixteenth_note :: Duration
- dotted_thirtysecond_note :: Duration
- dotted_breve :: Duration
- double_dotted_whole_note :: Duration
- double_dotted_half_note :: Duration
- double_dotted_quarter_note :: Duration
- double_dotted_eighth_note :: Duration
- double_dotted_sixteenth_note :: Duration
- double_dotted_thirtysecond_note :: Duration
- double_dotted_breve :: Duration
- duration_compare :: Duration -> Duration -> Ordering
- duration_compare_meq :: Duration -> Duration -> Ordering
- sort_pair :: (t -> t -> Ordering) -> (t, t) -> (t, t)
- no_dots :: (Duration, Duration) -> Bool
- sum_dur_undotted :: (Integer, Integer) -> Maybe Duration
- sum_dur_dotted :: (Integer, Integer, Integer, Integer) -> Maybe Duration
- sum_dur :: Duration -> Duration -> Maybe Duration
- sum_dur' :: Duration -> Duration -> Duration
- rq_to_duration :: Rational -> Maybe Duration
- whole_note_division_to_rq :: Integer -> Rational
- rq_apply_dots :: Rational -> Integer -> Rational
- duration_to_rq :: Duration -> Rational
- whole_note_division_to_musicxml_type :: Integer -> String
- duration_to_musicxml_type :: Duration -> String
- duration_to_lilypond_type :: Duration -> String
- whole_note_division_to_beam_count :: Integer -> Maybe Integer
- duration_beam_count :: Duration -> Integer
Documentation
data D_Annotation Source
Duration annotations
Constants
Operations
duration_compare :: Duration -> Duration -> OrderingSource
duration_compare_meq :: Duration -> Duration -> OrderingSource
Compare durations with equal multipliers.
sum_dur_undotted :: (Integer, Integer) -> Maybe DurationSource
Sum undotted divisions, input is required to be sorted.
sum_dur_dotted :: (Integer, Integer, Integer, Integer) -> Maybe DurationSource
Sum dotted divisions, input is required to be sorted.
sum_dur :: Duration -> Duration -> Maybe DurationSource
Sum durations. Not all durations can be summed, and the present algorithm is not exhaustive.
RQ (Rational Quarter Note Count)
rq_to_duration :: Rational -> Maybe DurationSource
Rational number of quarter notes to duration value. It is a mistake to hope this could handle tuplets directly, ie. a 3:2 dotted note will be of the same duration as a plain undotted note.
whole_note_division_to_rq :: Integer -> RationalSource
Convert a whole note division integer to a RQ.
rq_apply_dots :: Rational -> Integer -> RationalSource
Apply d
dots to the duration n
.
duration_to_rq :: Duration -> RationalSource
Convert duration to RQ value, see rq_to_duration for partial inverse.