X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fdeclarations-init.ly;h=2419940c0b52b5f28d69b9ce750ba1983ea1b40a;hb=55d9ad39acee4288ee0d36230f70110b02546ab3;hp=5ab0e77ab2168698a0117f9969cddd8ddc909e93;hpb=e18531db1f79fb685fbd16d6a2a67bf4b6c09915;p=lilypond.git diff --git a/ly/declarations-init.ly b/ly/declarations-init.ly index 5ab0e77ab2..2419940c0b 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) @@ -30,14 +30,18 @@ maxima = #(ly:make-duration -3 0) \include "toc-init.ly" %% default note names are dutch -\include "nederlands.ly" +#(set! default-language "nederlands") +#(note-names-language parser default-language) -\include "drumpitch-init.ly" +\include "drumpitch-init.ly" \include "chord-modifiers-init.ly" \include "script-init.ly" \include "chord-repetition-init.ly" +#(define default-fret-table (make-hash-table 101)) +#(define chord-shape-table (make-hash-table 29)) + % declarations for standard directions left = #-1 right = #1 @@ -56,19 +60,19 @@ 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) % % Code articulation definitions % -noBeam = #(make-music 'BeamForbidEvent) +noBeam = #(make-music 'BeamForbidEvent) pipeSymbol = #(make-music 'BarCheck) bracketOpenSymbol = #(make-span-event 'BeamEvent START) bracketCloseSymbol = #(make-span-event 'BeamEvent STOP) @@ -82,9 +86,6 @@ escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START) escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START) -#(define fretboard-table (make-hash-table 100)) -#(define chord-shape-table (make-hash-table 100)) - \include "scale-definitions-init.ly" melisma = #(context-spec-music (make-property-set 'melismaBusy #t) 'Bottom) @@ -92,40 +93,9 @@ melismaEnd = #(context-spec-music (make-property-unset 'melismaBusy) 'Bottom) laissezVibrer = #(make-music 'LaissezVibrerEvent) repeatTie = #(make-music 'RepeatTieEvent) - -\include "grace-init.ly" -\include "midi-init.ly" -\include "paper-defaults-init.ly" - -\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 (ly:get-option 'paper-size)) - -partCombineListener = \layout { - \context { - \Score - skipTypesetting = ##t - ignoreBarChecks = ##t - \alias "Timing" - } -} \include "dynamic-scripts-init.ly" \include "spanners-init.ly" -\include "property-init.ly" - -setDefaultDurationToQuarter = { c4 } %% MAKE-HASH-TABLE in GUILE 1.6 takes mandatory size parameter. #(define musicQuotes (make-hash-table 29)) @@ -146,3 +116,35 @@ setDefaultDurationToQuarter = { c4 } #(define bookpart-music-handler collect-book-music-for-book) \include "predefined-fretboards-init.ly" +\include "string-tunings-init.ly" +\include "property-init.ly" + +\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) + + 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 (ly:get-option 'paper-size)) +partCombineListener = \layout { + \context { + \Score + skipTypesetting = ##t + ignoreBarChecks = ##t + \alias "Timing" + } +} + +setDefaultDurationToQuarter = { c4 }