X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fdeclarations-init.ly;h=f513298e89a3150da14e20ef6256fcccb87787d0;hb=058de21b0e38e7202b15a3f980cbda9daf96f0df;hp=a8580c98a4b48cd701acc735156a0427c2a78a89;hpb=5815dfd8c5f049dba375d2961916448d6f1c40b0;p=lilypond.git diff --git a/ly/declarations-init.ly b/ly/declarations-init.ly index a8580c98a4..f513298e89 100644 --- a/ly/declarations-init.ly +++ b/ly/declarations-init.ly @@ -1,4 +1,22 @@ -\version "2.6.0" +%%%% This file is part of LilyPond, the GNU music typesetter. +%%%% +%%%% Copyright (C) 1996--2009 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,6 +27,7 @@ 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 \include "nederlands.ly" @@ -17,6 +36,8 @@ maxima = #(ly:make-duration -3 0) \include "chord-modifiers-init.ly" \include "script-init.ly" +\include "chord-repetition-init.ly" + % declarations for standard directions left = #-1 right = #1 @@ -29,16 +50,17 @@ 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-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))) +break = #(make-event-chord (list (make-music 'LineBreakEvent 'break-permission 'force))) +noBreak = #(make-event-chord (list (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))) @@ -60,16 +82,20 @@ 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 = #(make-span-event 'ManualMelismaEvent START) -melismaEnd = #(make-span-event 'ManualMelismaEvent STOP) +melisma = #(context-spec-music (make-property-set 'melismaBusy #t) 'Bottom) +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) @@ -82,29 +108,19 @@ laissezVibrer = #(make-music 'LaissezVibrerEvent) \include "engraver-init.ly" #(set-paper-dimension-variables (current-module)) - } #(set-default-paper-size (ly:get-option 'paper-size)) - partCombineListener = \layout { - \context { - \Voice - \consists Note_heads_engraver - \consists Rest_engraver - \type "Recording_group_engraver" - recordEventSequence = #notice-the-events-for-pc - } \context { \Score skipTypesetting = ##t - ignoreBarChecks = ##t + ignoreBarChecks = ##t + \alias "Timing" } } -#(set-part-combine-listener partCombineListener) - \include "dynamic-scripts-init.ly" \include "spanners-init.ly" \include "property-init.ly" @@ -115,7 +131,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"