hmt-0.14: Haskell Music Theory

Safe HaskellSafe-Inferred

Music.Theory.Tempo_Marking

Description

Common music notation tempo indications.

Synopsis

Documentation

type Tempo_Marking = (Duration, Rational)Source

A tempo marking is in terms of a common music notation Duration.

rq_to_seconds :: Tempo_Marking -> RQ -> RationalSource

Duration of a RQ value, in seconds, given indicated tempo.

 rq_to_seconds (quarter_note,90) 1 == 60/90

pulse_duration :: Time_Signature -> Tempo_Marking -> RationalSource

The duration, in seconds, of a pulse at the indicated time signature and tempo marking.

 import Music.Theory.Duration.Name
 pulse_duration (6,8) (quarter_note,60) == 1/2

measure_duration :: Time_Signature -> Tempo_Marking -> RationalSource

The duration, in seconds, of a measure at the indicated time signaure and tempo marking.

 measure_duration (3,4) (quarter_note,90) == 2
 measure_duration (6,8) (quarter_note,120) == 3/2