X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fdeclarations-init.ly;h=052bd6edb07c4c65a9683b3ac7d2fbafd6048828;hb=150ff905539154877da98ae5d59fcf8938dcda97;hp=9031f1e3be933f5709efd93c45d0438a1fc5dc64;hpb=83c0409957c5ff1f35ef918455a7156fd550fa61;p=lilypond.git diff --git a/ly/declarations-init.ly b/ly/declarations-init.ly index 9031f1e3be..052bd6edb0 100644 --- a/ly/declarations-init.ly +++ b/ly/declarations-init.ly @@ -1,11 +1,11 @@ -\version "2.3.8" +\version "2.4.0" %% < 1.8 compatibility switch #(ly:set-option 'old-relative) %% named durations breve = #(ly:make-duration -1 0) -longa = #(ly:make-duration -2 0 ) +longa = #(ly:make-duration -2 0) maxima = #(ly:make-duration -3 0) \include "music-functions-init.ly" @@ -34,14 +34,30 @@ center = 0 %% %% try \once \set Score.allowBeamBreak = ##t -%% rather name \newline, \newpage ? +%% rather name \newline, \pageBreak ? break = #(make-event-chord (list (make-penalty-music -10001 0))) noBreak = #(make-event-chord (list (make-penalty-music 10001 0))) pageBreak = #(make-event-chord (list (make-penalty-music -10001 -10001))) noPageBreak = #(make-event-chord (list (make-penalty-music 0 10001))) + +% +% Code articulation definitions +% noBeam = #(make-music 'BeamForbidEvent) pipeSymbol = #(make-music 'BarCheck) +bracketOpenSymbol = #(make-span-event 'BeamEvent START) +bracketCloseSymbol = #(make-span-event 'BeamEvent STOP) +tildeSymbol = #(make-music 'TieEvent) +parenthesisOpenSymbol = #(make-span-event 'SlurEvent START) +parenthesisCloseSymbol = #(make-span-event 'SlurEvent STOP) +escapedExclamationSymbol = #(make-span-event 'CrescendoEvent STOP) +escapedParenthesisOpenSymbol = #(make-span-event 'PhrasingSlurEvent START) +escapedParenthesisCloseSymbol = #(make-span-event 'PhrasingSlurEvent STOP) +escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START) +escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START) + + foo = { \pageBreak } @@ -52,24 +68,27 @@ melismaEnd = #(make-span-event 'ManualMelismaEvent STOP) \include "grace-init.ly" \include "midi-init.ly" -\include "book-paper-defaults.ly" +\include "paper-defaults.ly" -\paper { - mm = #(ly:output-def-lookup $defaultbookpaper 'mm) - unit = #(ly:output-def-lookup $defaultbookpaper 'unit) +\layout { + mm = #(ly:output-def-lookup $defaultpaper 'mm) + unit = #(ly:output-def-lookup $defaultpaper 'unit) in = #(* 25.4 mm) pt = #(/ in 72.27) cm = #(* 10 mm) \include "engraver-init.ly" + + #(set-paper-dimension-variables (current-module)) + } #(set-default-paper-size "a4") -partCombineListener = \paper { +partCombineListener = \layout { \context { \Voice \consists Note_heads_engraver @@ -77,7 +96,10 @@ partCombineListener = \paper { \type "Recording_group_engraver" recordEventSequence = #notice-the-events-for-pc } - \context { \Score skipTypesetting = ##t } + \context { + \Score + skipTypesetting = ##t + } } #(set-part-combine-listener partCombineListener)