Changes

Jump to navigation Jump to search
1,865 bytes added ,  20:02, 22 January 2013
sample settings file
\stoplilypond
</texcode>
 
=== Sample Include File ===
 
"mysettings.ly" could look like this:
 
<texcode>
\version "2.16.0"
#(ly:set-option (quote no-point-and-click))
#(set-global-staff-size 14)
 
% --- start of setup for single-line output files ---
#(define default-toplevel-book-handler
print-book-with-defaults-as-systems )
 
#(define toplevel-book-handler
(lambda ( . rest)
(set! output-empty-score-list #f)
(apply print-book-with-defaults rest)))
 
#(define toplevel-music-handler
(lambda ( . rest)
(apply collect-music-for-book rest)))
 
#(define toplevel-score-handler
(lambda ( . rest)
(apply collect-scores-for-book rest)))
 
#(define toplevel-text-handler
(lambda ( . rest)
(apply collect-scores-for-book rest)))
 
#(set! output-empty-score-list #t)
 
% --- stop single-line setup ---
 
\paper {
#(define dump-extents #t)
indent = 0\mm
ragged-bottom = ##t
ragged-last-bottom = ##t
print-page-number = ##f
line-width = 120\mm
oddFooterMarkup = ##f
oddHeaderMarkup = ##f
bookTitleMarkup = ##f
scoreTitleMarkup = ##f
}
 
\layout {
#(layout-set-staff-size 14) % beware, this resets fonts!
% set fonts for rm / ss / tt
#(define fonts (make-pango-font-tree "TeX Gyre Schola" "LMSans10" "LMTypewriter10 Regular" (/ 14 20)))
\context { \Score
\remove "Bar_number_engraver"
\override PaperColumn #'keep-inside-line = ##t
}
\context { \Staff
\override TimeSignature #'style = #'numbered
}
\context { \ChordNames
chordChanges = ##t
majorSevenSymbol = \markup{ 7+ }
}
}
 
</texcode>
 
Please look up the meaning of settings in LilyPond’s great documentation!
 
Unfortunately it’s not possible to exchange measures like text width between ConTeXt and LilyPond (at least I’ve no idea how), so you must define sizes manually. And you can’t define LilyPond’s text (lyrics) size with an absolute value, but only relative to staff size...
== Named Buffers ==

Navigation menu