X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fdeclarations-init.ly;h=c8671b5ef79799351982dfd5996bfc1bc9459979;hb=273e6b790c915192dc71bbc2ba1c077b98034468;hp=39aeabdb61d8f4bf9c90e5a629443f9dcfd58c04;hpb=5e44b5f4dba63d3649331e317286be089955edde;p=lilypond.git diff --git a/ly/declarations-init.ly b/ly/declarations-init.ly index 39aeabdb61..c8671b5ef7 100644 --- a/ly/declarations-init.ly +++ b/ly/declarations-init.ly @@ -1,6 +1,6 @@ %%%% This file is part of LilyPond, the GNU music typesetter. %%%% -%%%% Copyright (C) 1996--2010 Han-Wen Nienhuys +%%%% Copyright (C) 1996--2012 Han-Wen Nienhuys %%%% Jan Nieuwenhuizen %%%% %%%% LilyPond is free software: you can redistribute it and/or modify @@ -16,7 +16,7 @@ %%%% You should have received a copy of the GNU General Public License %%%% along with LilyPond. If not, see . -\version "2.12.0" +\version "2.14.0" %% < 1.8 compatibility switch #(ly:set-option 'old-relative) @@ -60,13 +60,13 @@ center = #0 %% try \once \override Score.Beam #'breakable = ##t %% rather name \newline, \pageBreak ? -break = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission 'force))) -noBreak = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission '()))) +break = #(make-music 'LineBreakEvent 'break-permission 'force) +noBreak = #(make-music 'LineBreakEvent 'break-permission '()) %% \pageBreak, \noPageBreak, \pageTurn, \noPageTurn, \allowPageTurn are defined %% as music functions -stopStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent STOP))) -startStaff = #(make-event-chord (list (make-span-event 'StaffSpanEvent START))) +stopStaff = #(make-span-event 'StaffSpanEvent STOP) +startStaff = #(make-span-event 'StaffSpanEvent START) % @@ -114,6 +114,7 @@ repeatTie = #(make-music 'RepeatTieEvent) #(define bookpart-score-handler ly:book-add-score!) #(define bookpart-text-handler ly:book-add-score!) #(define bookpart-music-handler collect-book-music-for-book) +#(define output-def-music-handler context-defs-from-music) \include "predefined-fretboards-init.ly" \include "string-tunings-init.ly" @@ -122,31 +123,29 @@ repeatTie = #(make-music 'RepeatTieEvent) \include "grace-init.ly" \include "midi-init.ly" \include "paper-defaults-init.ly" +\include "context-mods-init.ly" \layout { - mm = #(ly:output-def-lookup $defaultpaper 'mm) - unit = #(ly:output-def-lookup $defaultpaper 'unit) + 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) + in = #(* 25.4 mm) + pt = #(/ in 72.27) + cm = #(* 10 mm) - \include "engraver-init.ly" + \include "engraver-init.ly" - #(set-paper-dimension-variables (current-module)) + #(set-paper-dimension-variables (current-module)) } #(set-default-paper-size (ly:get-option 'paper-size)) partCombineListener = \layout { - \context { - \Score - skipTypesetting = ##t - ignoreBarChecks = ##t - \alias "Timing" - } + \context { + \Score + skipTypesetting = ##t + ignoreBarChecks = ##t + \alias "Timing" + } } setDefaultDurationToQuarter = { c4 } - - -