music-parts-1.9.0: Musical instruments, parts and playing techniques.

Safe HaskellNone
LanguageHaskell2010

Music.Parts.Division

Description

A type to represent (flat) subdivisions of a part.

Synopsis

Documentation

data Division Source

A division represents a subset of a finite group of performers.

For example a group may be divided into three equal divisions, designated (0, 3), (1, 3) and (2, 3) respectively.

Instances

Eq Division 
Ord Division 
Show Division 
ToJSON Division 
FromJSON Division 
Default Division 

division :: Int -> Int -> Division Source

 Create a division out of a ratio. Dual of getDivision.

divisions :: Int -> [Division] Source

Get all possible divisions for a given divisor in ascending order.

showDivision :: Division -> String Source

Show division in ordinary numerals.

showDivisionR :: Division -> String Source

Show division in roman numerals.