after main note.
2002-08-12 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * Documentation/user/refman.itely (Grace notes): explain grace
+ after main note.
+
+ * input/test/ : small convert-ly mishaps.
+
* Documentation/user/preface.itely: small bits
* Documentation/user/introduction.itely: add sectioning
}
@end lilypond
+If you want to end a note with a grace note, then the standard trick
+is to put the grace notes before a phantom ``space note'', e.g.
+@lilypond[fragment,verbatim, relative=2]
+\context Voice {
+ < { d1^\trill ( }
+ { s2 \grace { [c16 d] } } >
+ )c4
+}
+@end lilypond
+
+
@refbugs
Grace note synchronization can also lead to surprises. Staff notation,
#(define (make-script x)
(let ((m (ly-make-music "Articulation_req")))
- (ly-set-mus-property!! m 'articulation-type x)
- (ly-set-mus-property!! m 'script x)
+ (ly-set-mus-property! m 'articulation-type x)
+ (ly-set-mus-property! m 'script x)
m))
#(define (add-script m x)
(if (equal? (ly-music-name m) "Request_chord")
- (ly-set-mus-property!! m 'elements
+ (ly-set-mus-property! m 'elements
(cons (make-script x)
(ly-get-mus-property m 'elements)))
;; if you're using this for other grob-types.
(if (and (>= (length b) 2) (eq? (car (last-pair b)) grob))
- (ly-set-grob-property!! grob 'extra-offset '(4 . -2))
+ (ly-set-grob-property! grob 'extra-offset '(4 . -2))
)
))
(let* ((es (ly-get-mus-property ch 'elements)))
- (ly-set-mus-property!! ch 'elements
+ (ly-set-mus-property! ch 'elements
(voicify-list (split-list es music-separator?) 0))
ch
))
(voicify-chord m)
(begin
(if (pair? es)
- (ly-set-mus-property!! m 'elements (map voicify-music es)))
+ (ly-set-mus-property! m 'elements (map voicify-music es)))
(if (music? e)
- (ly-set-mus-property!! m 'element (voicify-music e)))
+ (ly-set-mus-property! m 'element (voicify-music e)))
m)
if 1:
def conv (str):
- str = re.sub ('ly-set-grob-property', 'ly-set-grob-property!', str)
- str = re.sub ('ly-set-mus-property', 'ly-set-mus-property!', str)
+ str = re.sub ('ly-set-grob-property([^!])', 'ly-set-grob-property!\1', str)
+ str = re.sub ('ly-set-mus-property([^!])', 'ly-set-mus-property!\1', str)
return str
conversions.append (((1,5,68), conv, 'ly-set-X-property -> ly-set-X-property!'))