Safe Haskell | Safe-Inferred |
---|
Common music notation tempo indications.
- type Tempo_Marking = (Duration, Rational)
- rq_to_seconds :: Tempo_Marking -> RQ -> Rational
- pulse_duration :: Time_Signature -> Tempo_Marking -> Rational
- measure_duration :: Time_Signature -> Tempo_Marking -> Rational
- measure_duration_f :: Fractional c => Time_Signature -> Tempo_Marking -> c
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
measure_duration_f :: Fractional c => Time_Signature -> Tempo_Marking -> cSource
Fractional
variant of measure_duration
.