Re: Place objects by hand
David Nalesnik wrote Sunday, November 02, 2014 1:08 PM Yes, I would say it's definitely a bug. This is a bit of misuse of self-alignment-X, but the same happens with this line: \once \override DynamicText.self-alignment-X = #5 So, possibly it's a problem with the Dynamics context? After a little more experimentation, it turns out it's the way the Dynamics context works. I'm guessing from experimenting, rather than reading code, but it seems just the notes above and below all the dynamics in a system are selected and a line is centered between the lowest of the notes above a dynamic mark and the highest of the notes below a dynamic mark. All the dynamics are then placed along this line and the distance between the staves is adjusted so there is (just) no overlap. Notes without dynamics are permitted to 'poke through' the dynamics line. This rather clumsy example illustrates it. \new PianoStaff \new Staff { e' d, d e' e' d e' e' } \new Dynamics { s\f s s s\p s s\f s s } \new Staff { a'' a'' a'' e''' a a'' e''' a'' } So if a dynamics mark is moved far enough horizontally so 'its' notes are no longer considered we get the effect observed. After all this I found issues 1127 and 3299! Should have looked first. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Hi Joram, 2014-11-02 1:46 GMT+01:00 Noeck noeck.marb...@gmx.de: That would be nice, but your example puts the f on the left of the upper note and not centralized between the staves (I am using 2.19.15). Try : \version 2.19.15 \new PianoStaff \new Staff { g-_ } \new Dynamics { s -\tweak X-offset #-4 -\tweak Y-offset #-6 \f } \new Staff { \clef bass g'-_ } Cheers, Pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Noeck wrote Sunday, November 02, 2014 12:46 AM That would be nice, but your example puts the f on the left of the upper note and not centralized between the staves (I am using 2.19.15). You're right, Joram, \offset is not a solution. In fact, it seems to point to another problem with \offset. In this example it prevents the dynamic text being centered between the staves. I don't understand why it should have this effect. \version 2.18.2 \new PianoStaff \new Staff { g-_ g c' } \new Dynamics { \once \offset X-offset -3 DynamicText s\f s s\p } \new Staff { \clef bass g'-_ g' g' } Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Hi, On Sun, Nov 2, 2014 at 6:23 AM, Trevor Daniels t.dani...@treda.co.uk wrote: Noeck wrote Sunday, November 02, 2014 12:46 AM That would be nice, but your example puts the f on the left of the upper note and not centralized between the staves (I am using 2.19.15). You're right, Joram, \offset is not a solution. In fact, it seems to point to another problem with \offset. In this example it prevents the dynamic text being centered between the staves. I don't understand why it should have this effect. \version 2.18.2 \new PianoStaff \new Staff { g-_ g c' } \new Dynamics { \once \offset X-offset -3 DynamicText s\f s s\p } \new Staff { \clef bass g'-_ g' g' } Trevor No, it's not a problem with \offset. Substitute this for the call to \offset, and you'll see that it's actually an issue with X-offset here: \once \override DynamicText.X-offset = #-3 --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
David, you wrote Sunday, November 02, 2014 12:44 PM No, it's not a problem with \offset. Substitute this for the call to \offset, and you'll see that it's actually an issue with X-offset here: \once \override DynamicText.X-offset = #-3 Ah, sorry to cast invalid aspersions on \offset, David. Still looks like a bug though. Another example bites the dust. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
On Sun, Nov 2, 2014 at 6:55 AM, Trevor Daniels t.dani...@treda.co.uk wrote: David, you wrote Sunday, November 02, 2014 12:44 PM No, it's not a problem with \offset. Substitute this for the call to \offset, and you'll see that it's actually an issue with X-offset here: \once \override DynamicText.X-offset = #-3 Ah, sorry to cast invalid aspersions on \offset, David. Still looks like a bug though. Yes, I would say it's definitely a bug. This is a bit of misuse of self-alignment-X, but the same happens with this line: \once \override DynamicText.self-alignment-X = #5 So, possibly it's a problem with the Dynamics context? Another example bites the dust. Yeah, sorry. It's not hard to come up with vivid demonstrations; the difficult part of course is to find the real-world example where just that command is what you need! (It can be used to create the same effects as \shape, but then...there's \shape for that.) Offsetting arpeggio.positions is nice, I think. (Though not precise; there is quantization which unavoidably kicks in, I think. It's still nice for arpeggios across tiny intervals, where you don't want to figure out staff positions yourself.) --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Hi again, On Sun, Nov 2, 2014 at 7:08 AM, David Nalesnik david.nales...@gmail.com wrote: Offsetting arpeggio.positions is nice, I think. (Though not precise; there is quantization which unavoidably kicks in, I think. It's still nice for arpeggios across tiny intervals, where you don't want to figure out staff positions yourself.) Sorry, I should say that such arpeggios are always drawn too short, hence the need to override (or offset) the endpoints. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Place objects by hand
Hi, I would like to move some objects by hand. This minimal example shows the beginning of a piano staff. \version 2.18.2 \new PianoStaff \new Staff { g-_ } \new Dynamics { %\override DynamicText.extra-offset = #'(-4 . 0) s\f } \new Staff { \clef bass g'-_ } The forte symbol is in between the two notes and prevents the staffs to get closer together. extra-offset does not help as it comes too late. How can I place the DynamicText such that the staffs can come closer together? Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Noeck wrote Saturday, November 01, 2014 10:59 PM I would like to move some objects by hand. This minimal example shows the beginning of a piano staff. \version 2.18.2 \new PianoStaff \new Staff { g-_ } \new Dynamics { %\override DynamicText.extra-offset = #'(-4 . 0) s\f } \new Staff { \clef bass g'-_ } The forte symbol is in between the two notes and prevents the staffs to get closer together. extra-offset does not help as it comes too late. How can I place the DynamicText such that the staffs can come closer together? Yay! This is an example where \offset is useful! Try this: \version 2.18.2 \new PianoStaff \new Staff { g-_ } \new Dynamics { %\override DynamicText.extra-offset = #'(-4 . 0) \once \offset X-offset -3 DynamicText s\f } \new Staff { \clef bass g'-_ } Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Yay! This is an example where \offset is useful! Try this: \once \offset X-offset -3 DynamicText Hi Trevor, thanks, that's cool! However, how can I control the Y position? Y-offset does not work: Warning: the property 'Y-offset of #Grob DynamicText cannot be offset Joram signature.asc Description: OpenPGP digital signature ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Yay! This is an example where \offset is useful! Try this: \once \offset X-offset -3 DynamicText Hi Trevor, thanks, that's cool! However, how can I control the Y position? Y-offset does not work: Warning: the property 'Y-offset of #Grob DynamicText cannot be offset Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Hi Joram, On Sat, Nov 1, 2014 at 6:48 PM, Joram Berger joram.ber...@gmx.de wrote: Yay! This is an example where \offset is useful! Try this: \once \offset X-offset -3 DynamicText Hi Trevor, thanks, that's cool! However, how can I control the Y position? Y-offset does not work: Warning: the property 'Y-offset of #Grob DynamicText cannot be offset Try: { \offset padding 2 DynamicLineSpanner c\f } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
Noeck wrote Saturday, November 01, 2014 11:49 PM However, how can I control the Y position? Y-offset does not work: Warning: the property 'Y-offset of #Grob DynamicText cannot be offset I don't think you need to do anything. As soon as the dynamics context has more content it should all appear centralised again. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Place objects by hand
However, how can I control the Y position? Y-offset does not work: I don't think you need to do anything. As soon as the dynamics context has more content it should all appear centralised again. That would be nice, but your example puts the f on the left of the upper note and not centralized between the staves (I am using 2.19.15). Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user