hmt-diagrams-0.15: Haskell Music Theory Diagrams

Safe HaskellNone
LanguageHaskell98

Music.Theory.Diagram.Render.Grid

Description

Functions for drawing grid and table structure common in music theory and in compositions such as Morton Feldman's durational grid music of the 1950's.

Synopsis

Documentation

mk_grid :: (Int, Int) -> (R, R) -> R -> Grid -> Render () Source

Render Grid of (rows,columns) with displacement (dx,dy) in indicated font size.

to_pdf :: FilePath -> (R, R) -> Render () -> IO () Source

Run render to PDF file.

let g = [((0,0),(1,0,0),"a"),((2,2),(0,0,1),"b")]
in to_pdf "/tmp/grid.pdf" (60,60) (mk_grid (4,4) (2,8) 9 g)