X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=ly%2Fdeclarations-init.ly;h=97a45982b1a73fc24cbb67061fc5b8002d99b3f0;hb=0cb0757dbcc60f9cb92731657dfb29394fee6db7;hp=f10830f9b225d6af713ffda8f6e686bcf95bf4e7;hpb=aa384518d059d26ffd6c0da3068fbdc2a345ecc1;p=lilypond.git diff --git a/ly/declarations-init.ly b/ly/declarations-init.ly index f10830f9b2..97a45982b1 100644 --- a/ly/declarations-init.ly +++ b/ly/declarations-init.ly @@ -1,8 +1,9 @@ +#(ly:set-option 'old-relative) -\version "1.5.49" -breve = \duration #(make-duration -1 0) -longa = \duration #(make-duration -2 0 ) -maxima = \duration #(make-duration -3 0) +\version "2.1.13" +breve = #(ly:make-duration -1 0) +longa = #(ly:make-duration -2 0 ) +maxima = #(ly:make-duration -3 0) \include "nederlands.ly" % dutch \include "chord-modifiers-init.ly" @@ -19,28 +20,109 @@ smaller = -1 bigger = 1 center=0 -break = \penalty #-10000 -noBreak = \penalty #10000 +%{ + +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" melisma = \property Staff.melismaBusy = ##t melismaEnd = \property Staff.melismaBusy = ##f -\include "engraver-init.ly" \include "grace-init.ly" -singleLine = \paper { linewidth = 1. } - % ugh \include "midi-init.ly" -papersize = "a4" -paperfile = \papersize + "-init.ly" -\include "generic-paper-init.ly" -\include "paper20-init.ly" +% 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) + + 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" +} + +#(set-paper-size "a4") + + +%{ + +; note: +; you can add fonts manually in the paper block by issuing + +#(set! fonts (append ...myfonts... fonts)) + +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 + \denies Thread + \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" @@ -50,7 +132,7 @@ paperfile = \papersize + "-init.ly" % reset default duration -unusedEntry = \notes { c4 } +unusedEntry = \notes { c4 } % music = "\melodic\relative c"