hmt-diagrams-0.15: Haskell Music Theory Diagrams

Safe HaskellNone
LanguageHaskell98

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 -> R Source

ipt :: Integral a => a -> a -> Pt R Source

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 -> t Source

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_contour :: Pt R -> Bool -> [Int] -> Render () Source

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

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

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