hmt-diagrams-0.14: Haskell Music Theory Diagrams

Safe HaskellNone

Music.Theory.Diagram.Render.Contour.WT

Description

Contour contact sheets.

Synopsis

Documentation

data Setup Source

Constructors

Setup 

Fields

wt_nc :: Int
 
wt_dimensions :: (Int, Int)
 
wt_spacers :: (R, R)
 
wt_scalar :: R
 

type CN = [(Bool, [Int])]Source

type PP = [CN]Source

fi :: Integral a => a -> RSource

ipt :: Integral a => a -> a -> Pt RSource

grid :: (R, R) -> (Int, Int) -> (R, R) -> (R, R) -> [Pt R]Source

Generate grid points. l=left, u=upper, r=rows, c=columns, w=width, h=height

calc_nr :: Integral t => t -> t -> tSource

Calculate number of rows (nr) given number of columns (nc) and number of entries (ne).

invert :: Num a => a -> [a] -> [a]Source

Cairo co-ordinates are y descending.

draw_img :: Pt R -> (Int, Int) -> CN -> Render ()Source

draw :: FilePath -> Setup -> [PP] -> IO ()Source

Select format from extension (ie. .pdf or .svg).