staff-size.
* scm/paper.scm: new file.
(set-staff-size): new function
(set-paper-size): new function
* Documentation/user/refman.itely (Fermatas): document \lyricsto
2004-01-16 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scripts/convert-ly.py (conv): add \include "paper" rule.
+
* ly/paper*.ly: remove files.
* scm/paper.scm (set-staff-size): new function: set default
@example
#(set-staff-size 15)
- \paper {
+ \paper @{
#(paper-set-staff-size (* 15 pt))
- }
+ @}
@end example
@noindent
settings and @code{\remove}, @code{\consists} and @code{\consistsend}
commands. The syntax is similar to the @code{\translator} block.
-The following example shows how a staff is created with bigger spaces:
+The following example shows how a staff is created with bigger spaces,
+and without a @code{Clef_engraver}.
-@lilypond[relative=1,fragment]
+@lilypond[relative=1,fragment,verbatim]
<<
\new Staff { c4 es4 g2 }
\new Staff \with {
@refbugs
-@code{\with} has no effect on contexts that already exist. Neither can
-it be used for @internalsref{Score} contexts.
+The command @code{\with} has no effect on contexts that already
+exist. Neither can it be used for @internalsref{Score} contexts.
@node Engravers and performers
@lilypond[raggedright,verbatim,noindent]
\include "gregorian-init.ly"
\score {
+<<
\context VaticanaVoice {
\property Score.BarNumber \set #'transparent = ##t
\notes {
}
\lyricsto "" \new LyricsVoice \lyrics {
San- ctus, San- ctus, San- ctus
- }
+ } >>
+
}
@end lilypond
the font gets heavier, to match the relatively heavier staff lines.
The recommended font sizes are listed in the following table:
-@multitable @columnfractions .3 .3 .4
+@multitable @columnfractions .25 .25 .25 .25
@item @b{name}
@tab @b{staff height (pt)}
(font-series . medium)
))
- #(set-paper-size "a4")
\include "engraver-init.ly"
}
}
\paper { \paperTwenty }
+#(set-paper-size "a4")
\include "dynamic-scripts-init.ly"
\include "spanners-init.ly"
;; todo: take dimension arguments.
-(define (set-paper-dimensions m h w)
+(define (set-paper-dimensions m w h)
(let*
( (mm (eval 'mm m)) )
(define-public (set-paper-size name)
(let*
((entry (assoc name paper-alist))
- (m (current-module))
+ (pap (eval '$defaultpaper (current-module)))
+ (new-paper (ly:output-def-clone pap))
+ (m (ly:output-def-scope new-paper))
(mm (eval 'mm m))
)
(begin
(set! entry (eval (cdr entry) m))
(set-paper-dimensions m (car entry) (cdr entry))
+ (module-define! m 'papersize name)
+ (module-define! m 'papersizename name)
+ (set-paper-dimensions m (car entry) (cdr entry))
+ (module-define! (current-module) '$defaultpaper new-paper)
)
(ly:warning (string-append "Unknown papersize: " name))
)))