]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/declarations-init.ly
* Documentation/user/music-glossary.itely: add Finnish author.
[lilypond.git] / ly / declarations-init.ly
index e434054613fc787ddcccf39dfdd0cdd2bd5d3a32..a9247573c0046b83fb8182227c800e5647e32c6e 100644 (file)
@@ -1,10 +1,12 @@
+#(ly:set-option 'old-relative)
 
-\version "1.7.18"
-breve = \duration #(ly:make-duration -1 0)
-longa = \duration #(ly:make-duration -2 0 )
-maxima = \duration #(ly:make-duration -3 0)
+\version "2.1.19"
+breve = #(ly:make-duration -1 0)
+longa = #(ly:make-duration -2 0 )
+maxima = #(ly:make-duration -3 0)
 
 \include "nederlands.ly"               % dutch
+\include "drumpitch-init.ly"           
 \include "chord-modifiers-init.ly"
 \include "script-init.ly"
 
@@ -18,8 +20,14 @@ stop = 1
 smaller = -1
 bigger = 1
 center=0
-       
-break = #(make-event-chord (list (make-penalty-music -10001)))
+
+%{
+
+should also set allowBeamBreak, but how to do it "portably"? (ie. also
+working with lyric sections)
+
+%}
+break =#(make-event-chord (list (make-penalty-music -10001)))
 noBreak =  #(make-event-chord (list (make-penalty-music 10001)))
 
 \include "scale-definitions-init.ly"
@@ -28,7 +36,6 @@ melisma = \property Staff.melismaBusy = ##t
 melismaEnd = \property Staff.melismaBusy = ##f
 
 
-\include "engraver-init.ly"
 \include "grace-init.ly"
 
 % ugh
@@ -37,19 +44,85 @@ melismaEnd = \property Staff.melismaBusy = ##f
 
 % Do units first; must be done before any units are specified.
 \paper {
-       unit = "mm"
-       mm = 1.0
-       in = 25.4
-       pt = #(/  in 72.27)
-       cm = #(* 10 mm)
+    unit = "mm"
+    mm = 1.0
+    in = 25.4
+    pt = #(/  in 72.27)
+    cm = #(* 10 mm)
+
+    texsetting = ""
+    pssetting = ""
+    scmsetting = "(lilyponddefs.ps) findlibfile {exch pop //systemdict /run get exec} { /undefinedfilename signalerror } ifelse\n"% UGH. 
+
+
+    #(define font-defaults
+      '((font-family . music)
+       (font-shape . upright)
+       (baseline-skip . 2)
+       (word-space . 0.6)
+       (font-series . medium)
+    ))
+    
+    \include "engraver-init.ly"
 }
 
-papersize = "a4"
-paperfile = \papersize + "-init.ly"
+#(set-paper-size "a4")
+
+
+%{
+
+; note:
+; you can add fonts manually  in the paper block by issuing
+
+#(set! fonts (append ...myfonts... fonts))
 
-\include "generic-paper-init.ly"
-\include "paper20-init.ly"
+for the format of myfonts, see font.scm
+
+%}
+
+
+paperEleven = \paper {
+    #(paper-set-staff-size (* 11.0 pt))
+}
+
+paperThirteen = \paper {
+    #(paper-set-staff-size (* 13.0 pt))
+}
+
+paperSixteen = \paper {
+    #(paper-set-staff-size (* 16.0 pt))
+}
+
+paperEightteen = \paper {
+    #(paper-set-staff-size (* 18.0 pt))
+}
+
+paperTwenty = \paper {
+    #(paper-set-staff-size (* 20.0 pt))
+}
+
+paperTwentythree = \paper {
+    #(paper-set-staff-size (* 23.0 pt))
+}
+
+paperTwentysix = \paper {
+    #(paper-set-staff-size (* 26.0 pt))
+}
+
+\paper { \paperTwenty }
+
+partCombineListener = \paper {
+ \translator {
+         \VoiceContext
+         \consists Note_heads_engraver
+         \consists Rest_engraver
+         \type "Recording_group_engraver"
+         recordEventSequence = #notice-the-events-for-pc
+ }
+ \translator { \ScoreContext skipTypesetting = ##t }
+}
 
+#(set-part-combine-listener partCombineListener)
 
 \include "dynamic-scripts-init.ly"
 \include "spanners-init.ly"