X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fdeclarations-init.ly;h=268ecaee7eff6de6d34472ced100bbdebb3f3008;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=661c7f88546afd9f19af5c584bee11998adeeab3;hpb=1aea74028c07ffd9d3681ff6b3046d17fb5dddbd;p=lilypond.git diff --git a/ly/declarations-init.ly b/ly/declarations-init.ly index 661c7f8854..268ecaee7e 100644 --- a/ly/declarations-init.ly +++ b/ly/declarations-init.ly @@ -1,4 +1,22 @@ -\version "2.10.0" +%%%% This file is part of LilyPond, the GNU music typesetter. +%%%% +%%%% Copyright (C) 1996--2011 Han-Wen Nienhuys +%%%% Jan Nieuwenhuizen +%%%% +%%%% LilyPond is free software: you can redistribute it and/or modify +%%%% it under the terms of the GNU General Public License as published by +%%%% the Free Software Foundation, either version 3 of the License, or +%%%% (at your option) any later version. +%%%% +%%%% LilyPond is distributed in the hope that it will be useful, +%%%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +%%%% GNU General Public License for more details. +%%%% +%%%% You should have received a copy of the GNU General Public License +%%%% along with LilyPond. If not, see . + +\version "2.14.0" %% < 1.8 compatibility switch #(ly:set-option 'old-relative) @@ -8,17 +26,22 @@ breve = #(ly:make-duration -1 0) longa = #(ly:make-duration -2 0) maxima = #(ly:make-duration -3 0) -\include "markup-init.ly" \include "music-functions-init.ly" \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 @@ -31,10 +54,10 @@ bigger = #1 center = #0 %% FIXME -%% should also set allowBeamBreak, but how to do it "portably"? (ie. also +%% should also set \override Beam #'breakable, but how to do it "portably"? (ie. also %% working with lyric sections) %% -%% try \once \set Score.allowBeamBreak = ##t +%% try \once \override Score.Beam #'breakable = ##t %% rather name \newline, \pageBreak ? break = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission 'force))) @@ -49,7 +72,7 @@ startStaff = #(make-event-chord (list (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) @@ -63,8 +86,6 @@ escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START) escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START) -#(define fretboard-table (make-hash-table 100)) - \include "scale-definitions-init.ly" melisma = #(context-spec-music (make-property-set 'melismaBusy #t) 'Bottom) @@ -72,7 +93,32 @@ melismaEnd = #(context-spec-music (make-property-unset 'melismaBusy) 'Bottom) laissezVibrer = #(make-music 'LaissezVibrerEvent) repeatTie = #(make-music 'RepeatTieEvent) - + +\include "dynamic-scripts-init.ly" +\include "spanners-init.ly" + +%% MAKE-HASH-TABLE in GUILE 1.6 takes mandatory size parameter. +#(define musicQuotes (make-hash-table 29)) + +#(define toplevel-book-handler print-book-with-defaults) +#(define toplevel-bookpart-handler collect-bookpart-for-book) +#(define toplevel-music-handler collect-music-for-book) +#(define toplevel-score-handler collect-scores-for-book) +#(define toplevel-text-handler collect-scores-for-book) + +#(define book-bookpart-handler ly:book-add-bookpart!) +#(define book-music-handler collect-book-music-for-book) +#(define book-score-handler ly:book-add-score!) +#(define book-text-handler ly:book-add-score!) + +#(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) + +\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" @@ -84,14 +130,13 @@ repeatTie = #(make-music 'RepeatTieEvent) 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 @@ -101,23 +146,7 @@ partCombineListener = \layout { } } -\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)) - -#(define toplevel-book-handler print-book-with-defaults) -#(define toplevel-music-handler collect-music-for-book) -#(define toplevel-score-handler collect-scores-for-book) -#(define toplevel-text-handler collect-scores-for-book) - -#(define book-music-handler collect-book-music-for-book) -#(define book-score-handler ly:book-add-score!) -#(define book-text-handler ly:book-add-score!) -\include "predefined-fretboards-init.ly"