]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: Added @knownissue to Grace Notes for MIDI
authorJames Lowe <james.lowe@datacore.com>
Thu, 7 Apr 2011 15:29:20 +0000 (16:29 +0100)
committerJames Lowe <james.lowe@datacore.com>
Sun, 10 Apr 2011 11:57:50 +0000 (12:57 +0100)
As per thread

http://article.gmane.org/gmane.comp.gnu.lilypond.general/63450

When usuing MIDI with grace notes some manual tweaking made be required to
get the 'correct' length of the grace note to be played.

Documentation/notation/rhythms.itely

index 0a7a8568ba2b57a51996185fcdc9192488e08476..794185425782e521eeb1fa7c48d7cb3b1079f9c4 100644 (file)
@@ -3207,9 +3207,9 @@ durations in the other staves.  For the above example
 >>
 @end lilypond
 
-The use of grace notes within voice contexts confuses the way the
-voice is typeset. This can be overcome by inserting a rest or note
-between the voice command and the grace note.
+The use of grace notes within voice contexts confuses the way the voice
+is typeset. This can be overcome by inserting a rest or note between the
+voice command and the grace note.
 
 @lilypond[quote,verbatim]
 accMusic = {
@@ -3234,9 +3234,33 @@ accMusic = {
 }
 @end lilypond
 
-Grace sections should only be used within sequential music
-expressions.  Nesting or juxtaposing grace sections is not
-supported, and might produce crashes or other errors.
+Grace sections should only be used within sequential music expressions.
+Nesting or juxtaposing grace sections is not supported, and might
+produce crashes or other errors.
+
+Each grace note in MIDI output has a length of 1/4 of its actual
+duration.  If the combined length of the grace notes is greater than the
+length of the preceding note a @qq{@code{Going back in MIDI time}}
+error will be generated.  Either make the grace notes shorter in
+duration, for example:
+
+@example
+\acciaccatura @{ c'8[ d' e' f' g'] @}
+@end example
+
+becomes:
+
+@example
+\acciaccatura @{ c'16[ d' e' f' g'] @}
+@end example
+
+Or explicitly change the musical duration:
+
+@example
+\acciaccatura @{ \scaleDurations #' (1 . 2) @{ c'8[ d' e' f' g'] @} @}
+@end example
+
+See @ref{Scaling durations}.
 
 
 @node Aligning to cadenzas