This shows you the differences between two versions of the page.
— |
almeida:spec [2015/06/28 20:03] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Sinfonia (in F) ====== | ||
+ | |||
+ | ===== Specification ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | import WikiScore | ||
+ | import Stave | ||
+ | import Abc | ||
+ | |||
+ | ---------------------------------------------------------------------------------------------- | ||
+ | --------------------- Sinfonia (in F) --------------------------------------------------------- | ||
+ | ---------------------------------------------------------------------------------------------- | ||
+ | -- Prj attributes | ||
+ | namespace = A " | ||
+ | musicby | ||
+ | title = A " | ||
+ | facsimile = A " | ||
+ | --libreto | ||
+ | latex = A " | ||
+ | introd = A " | ||
+ | |||
+ | -- Prj Parts | ||
+ | |||
+ | pt1 = Prt 1 " | ||
+ | pt2 = Prt 2 " | ||
+ | pt3 = Prt 3 " | ||
+ | pt4 = Prt 4 " | ||
+ | pt5 = Prt 5 " | ||
+ | pt6 = Prt 6 " | ||
+ | pt7 = Prt 7 " | ||
+ | pt8 = Prt 8 " | ||
+ | |||
+ | -- Prj Stave | ||
+ | |||
+ | met = Sq [ pa [1,2] ] | ||
+ | mad = Sq [ pa [3,4] ] | ||
+ | str = Sq [ br [5,6], the 5, the 8 ] | ||
+ | base = [ Sq [ pa [1,2], pa [3,4], br [5,6], the 7, the 8 ] ] | ||
+ | |||
+ | -- Prj Sections | ||
+ | -- gurl n t = url (facfol n) t where facfol x = " | ||
+ | |||
+ | status | ||
+ | |||
+ | shiftedBy n k = gurl (show (n+k)) (show n) | ||
+ | |||
+ | gurl s t = url (facfol s) t | ||
+ | where facfol s = " | ||
+ | |||
+ | -- Sections | ||
+ | |||
+ | s1= Sct "I. Allegro assai" 1 | ||
+ | (Sel [1..8]) | ||
+ | (MLK " | ||
+ | s2= Sct "II. Andante e piano sempre" | ||
+ | (Sel [5..9]) | ||
+ | (MLK " | ||
+ | s3= Sct "III. Allegro" | ||
+ | (Sel [1..8]) | ||
+ | (MLK " | ||
+ | |||
+ | -- the END | ||
+ | |||
+ | -- abbreviations | ||
+ | bss = 8 | ||
+ | corn = [1,2] | ||
+ | obo = [3,4] | ||
+ | strings = [5..8] | ||
+ | |||
+ | prj = initWSPproject | ||
+ | " | ||
+ | | ||
+ | [ title, facsimile, namespace, introd, latex ] | ||
+ | [ pt1 , pt2, pt3, pt4 , pt5 , pt6 , pt7 , pt8 ] | ||
+ | [ s1, s2, s3 ] | ||
+ | base | ||
+ | |||
+ | main = prj2jsonFile prj | ||
+ | |||
+ | -- checking invariants | ||
+ | |||
+ | ok = (matrixOk prj) && (riSP prj) && (riSS prj) && (matts prj) | ||
+ | |||
+ | |||
+ | </ | ||
+ | < | ||
+ | [[almeida: | ||