@end ignore
@itemize @bullet
+@item Objects in the output can now be documented: the following fragment
+ boxes the note head, and adds the text ``heads or tails?'' three
+spaces below the box.
+
+@example
+ \context Voice \applyoutput #(add-balloon-text
+ 'NoteHead "heads, or tails?"
+ '(0 . -3))
+
+
+ c8
+@end example
+
+
@item Default staff sizes are now scalable. There are two new mechanisms for
setting staff sizes. Both are demonstrated in this fragment:
@end example
-@item
- Warnings for bar check errors are more cleverly printed. This
-makes barCheckSynchronize superfluous. barCheckSynchronize is now
-switched off by default.
+@item Warnings for bar check errors are more cleverly printed. This
+makes @code{barCheckSynchronize} superfluous, so it is now switched
+off by default.
Warning: this will cause problems in scores that use bar checks to
shorten measures.
-@item
- The black note head was made a little rounder, which causes a less
+@item The black note head was made a little rounder, which causes a less
frantic graphic impression.
@item
This is converted to a musical symbol, e.g. @code{\musicglyph
#"accidentals-0"} will select the natural sign from the music font.
See @ref{The Feta font} for a complete listing of the possible glyphs.
+
@item \char
This produces a single character, e.g. @code{\char #65} produces the
letter 'A'.
-@item \note @var{log} @var{dots} @var{dir}
+@item \note @var{duration} @var{dir}
@cindex @code{\note}
This produces a note with a stem pointing in @var{dir} direction, with
-duration log @var{log} and @var{dots} augmentation dots. The duration
-log is the negative 2-logarithm of the duration denominator. For
-example, a quarter note has log 2, an eighth note 3 and a breve has
-log -1.
+the @var{duration} for the note head type and augmentation dots. For
+example, @code{\note #"4." #-0.75} creates a dotted quarter note, with
+a shortened down stem.
@item \hspace #@var{amount}
@cindex @code{\hspace}
texidoc = "Grace code should not be confused by nested sequential musics, containing grace notes; practically speaking, this means that the end-bar and measure bar coincide in this example."
}
-\score{
-\notes
+\score {
+ \notes {
+ c''2 { \grace b'16 c''2 } \bar "|."
+ }
+ \paper {
-{ c''2 { \grace b'16 c''2 } \bar "|." }
- \paper {
+ raggedright = ##t
+ }
}
- }
(define-public (note-markup paper props . rest)
+ "This produces a note with a stem pointing in @var{dir} direction, with
+the @var{duration} for the note head type and augmentation dots. For
+example, @code{\note #\"4.\" #-0.75} creates a dotted quarter note, with
+a shortened down stem."
+
(let*
((parsed (parse-simple-duration (car rest)))
(dir (cadr rest)))
- (make-note paper props (car parsed) (cadr parsed) dir)
+ (note-by-number-markup paper props (car parsed) (cadr parsed) dir)
))
-(define-public (make-note paper props log dot-count dir)
+(define-public (note-by-number-markup paper props . rest )
"Syntax: \\note #LOG #DOTS #DIR. By using fractional values
for DIR, you can obtain longer or shorter stems."
(let*
(
+ (log (car rest))
+ (dot-count (cadr rest))
+ (dir (caddr rest))
(font (ly:paper-get-font paper (cons '((font-family . music)) props)))
(stemlen (max 3 (- log 1)))
(headgl
(cons hbracket-markup (list markup?))
(cons bracket-markup (list markup?))
(cons note-markup (list string? number?))
+ (cons note-by-number-markup (list number? number? number?))
(cons fraction-markup (list markup? markup?))
(cons column-markup (list markup-list?))
(let*
((dur (ly:get-mus-property event 'tempo-unit))
(count (ly:get-mus-property event 'metronome-count))
- (note-mark (make-note-markup (ly:duration-log dur)
- (ly:duration-dot-count dur)
- 1)
- )
- )
-
+ (note-mark (make-note-by-number-markup (ly:duration-log dur)
+ (ly:duration-dot-count dur)
+ 1) ) )
(make-line-markup
(list
note-mark