Re: Grace note displayed exactly on beat (and not before)
Thanks a lot! It works like a charm! Cheers, Ádám On 2013.05.13., at 6:36, Keith OHara wrote: Keith OHara k-ohara5a5a at oco.net writes: I could not quickly figure out how to apply all the 'graceSettings to the normal voice, but there is probably a way to do so and maybe we should make a short command \graceSettings for that. Some less-ugly version of graceSettings = \applyContext # (lambda (context) (map (lambda (x) (ly:context-pushpop-property context (cadr x) (caddr x) (cadddr x))) (ly:context-property context 'graceSettings )) and then we still need the bit with Flag #'stroke-style =#grace when we want the stroke through the grace notes This same method is useful when we want to let grace notes overlap earlier notes in another voice. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Grace note displayed exactly on beat (and not before)
Hello List, I know about the \grace, \appoggiatura, \acciaccatura and \afterGrace commands which can be used in order to create grace notes. However, none of these would put a grace note exactly on the beat: they would either put it just after the `main' note (in the case of \afterGrace) or just before it (in all other cases). I was wondering how I would be able to put the grace note just on the beat. To illustrate the idea, I attach an example (scanned from a piano score). This is not the actual scenario that I wish to typeset, but it illustrates my need quite clearly (I need to typeset a short passage in an orchestral score for one of the instruments, where the passage itself should start at the same time as the other instruments start to play). Thank you for any help, Ádám inline: example.jpeg ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Grace note displayed exactly on beat (and not before)
Siska Ádám sales at sadam.hu writes: I was wondering how I would be able to put the grace note just on the beat. It is easiest to use normal notes and tell LilyPond that the durations shorter than normal, say 1/4 the written length, with c'16*1/4 and that the following note gets only a fraction of its full time. \new Staff \new Voice{ \new Voice {\teeny \override Flag #'stroke-style = #grace \override Stem #'no-stem-extend = ##t \override Stem #'length-fraction = #0.7 c'16*1/4\noBeam d' } g'1*31/32 } \new Staff {b1} The difficult thing was finding the \overrides to give the smaller the style of grace notes. I copied the more-important ones from a LilyPond startup file 'music-functions.scm' I could not quickly figure out how to apply all the 'graceSettings to the normal voice, but there is probably a way to do so and maybe we should make a short command \graceSettings for that. This same method is useful when we want to let grace notes overlap earlier notes in another voice. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Grace note displayed exactly on beat (and not before)
Keith OHara k-ohara5a5a at oco.net writes: I could not quickly figure out how to apply all the 'graceSettings to the normal voice, but there is probably a way to do so and maybe we should make a short command \graceSettings for that. Some less-ugly version of graceSettings = \applyContext # (lambda (context) (map (lambda (x) (ly:context-pushpop-property context (cadr x) (caddr x) (cadddr x))) (ly:context-property context 'graceSettings )) and then we still need the bit with Flag #'stroke-style =#grace when we want the stroke through the grace notes This same method is useful when we want to let grace notes overlap earlier notes in another voice. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user