X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fdeclarations-init.ly;h=76908833f219c994805e6cfa7518e9964b338fac;hb=d94725cdc8038d2b818a8ef30b27ade526c549fb;hp=3ff8e221197c57d83c47998649e2503e9444c157;hpb=39beb9ab68f6eaa5ea484fa9c03f7aaaaa8aab17;p=lilypond.git diff --git a/ly/declarations-init.ly b/ly/declarations-init.ly index 3ff8e22119..76908833f2 100644 --- a/ly/declarations-init.ly +++ b/ly/declarations-init.ly @@ -1,4 +1,22 @@ -\version "2.7.39" +%%%% This file is part of LilyPond, the GNU music typesetter. +%%%% +%%%% Copyright (C) 1996--2010 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.12.0" %% < 1.8 compatibility switch #(ly:set-option 'old-relative) @@ -9,14 +27,19 @@ longa = #(ly:make-duration -2 0) maxima = #(ly:make-duration -3 0) \include "music-functions-init.ly" +\include "toc-init.ly" %% default note names are dutch +%% This also initializes the pitchnames variable, +%% so we don't want to use \language here. \include "nederlands.ly" -\include "drumpitch-init.ly" +\include "drumpitch-init.ly" \include "chord-modifiers-init.ly" \include "script-init.ly" +\include "chord-repetition-init.ly" + % declarations for standard directions left = #-1 right = #1 @@ -29,24 +52,16 @@ 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))) noBreak = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission '()))) -pageBreak = #(make-event-chord (list - (make-music 'LineBreakEvent 'break-permission 'force) - (make-music 'PageBreakEvent 'break-permission 'force))) -noPageBreak = #(make-event-chord (list (make-music 'PageBreakEvent 'break-permission '()))) -pageTurn = #(make-event-chord (list - (make-music 'LineBreakEvent 'break-permission 'force) - (make-music 'PageBreakEvent 'break-permission 'force) - (make-music 'PageTurnEvent 'break-permission 'force))) -noPageTurn = #(make-event-chord (list (make-music 'PageTurnEvent 'break-permission '()))) -allowPageTurn = #(make-event-chord (list (make-music 'PageTurnEvent 'break-permission 'allow))) +%% \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))) @@ -55,7 +70,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) @@ -69,6 +84,8 @@ escapedBiggerSymbol = #(make-span-event 'DecrescendoEvent START) escapedSmallerSymbol = #(make-span-event 'CrescendoEvent START) +#(define default-fret-table (make-hash-table 100)) +#(define chord-shape-table (make-hash-table 100)) \include "scale-definitions-init.ly" @@ -77,10 +94,10 @@ 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.ly" +\include "paper-defaults-init.ly" \layout { mm = #(ly:output-def-lookup $defaultpaper 'mm) @@ -89,7 +106,7 @@ 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)) @@ -116,7 +133,18 @@ setDefaultDurationToQuarter = { c4 } #(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"