Re: Vertically overlapping material / too small vertical space
Dear David, On 30 November 2016 at 20:14, David Kastrup wrote: > Mojca Miklavec writes: >> >> I need a horizontally aligned list of button labels / fingerings. Most >> of the time I need two labels, but every so often I need three or four >> (when a chord consists of three or four pitches). >> >> I would prefer to use something like the following (please excuse me, >> the syntax is not functional, but it should demonstrate what I want): >> >>4 >> 4 >> >> Here's a working syntax (demonstrating the problem / why I cannot use it): >> >> \score { >> \fixed c' { >> % >> % looks almost perfect, but I'm unable to use anything but simple >> numbers >> % >> f4-4 f-4 >> % >> % proper text, but horrible output >> % >> f4^\markup{\column{"B4"}} >> ^\markup{\column{"B5" "B4"}} >> ^\markup{\column{"B6" "B5" "B4"}} >> f^\markup{\column{"B4"}} >> } >> } > > How about > > f4\B4 > > f\B4 > f\B4 > > You'll probably want more than \B but probably still a very limited > number of fingerings. Wonderful, thanks a lot. I like the syntax a lot. I would additionally still need an optional finger number, perhaps with a syntax similar to: f4\B4 f\B4 so that "\B4-2" would result in "2B4", but I guess that should be feasible to add. What's still a mystery to me is whether it is possible to horizontally align all these labels. (I remember that one can force lilypond to put all fingerings on top, but I didn't manage to achieve proper alignment.) Mojca ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertically overlapping material / too small vertical space
Mojca Miklavecwrites: > Dear Phil, > > On 30 November 2016 at 16:47, Phil Holmes wrote: >> I think the use of \context is getting the vertical spacing engine >> confused. I _think_ my attached version of your music does what you want - >> it would seem to point in the right direction, at the very least. > > I changed your document slightly and rearranged it in the way I want it. > > But the problem is still present. So no, it doesn't seem to fix it. > > > I need a horizontally aligned list of button labels / fingerings. Most > of the time I need two labels, but every so often I need three or four > (when a chord consists of three or four pitches). > > I would prefer to use something like the following (please excuse me, > the syntax is not functional, but it should demonstrate what I want): > > 4 > 4 > > Here's a working syntax (demonstrating the problem / why I cannot use it): > > \score { > \fixed c' { > % > % looks almost perfect, but I'm unable to use anything but simple > numbers > % > f4-4 f-4 > % > % proper text, but horrible output > % > f4^\markup{\column{"B4"}} > ^\markup{\column{"B5" "B4"}} > ^\markup{\column{"B6" "B5" "B4"}} > f^\markup{\column{"B4"}} > } > } How about B = #(define-event-function (parser location d) (index?) #{ \tweak text #(format "B~d" d) -1#}) \score { \fixed c' { % % looks almost perfect, but I'm unable to use anything but simple numbers % f4-4 f-4 % % proper text, but horrible output % f4^\markup{\column{"B4"}} ^\markup{\column{"B5" "B4"}} ^\markup{\column{"B6" "B5" "B4"}} f^\markup{\column{"B4"}} %% %% sugar and spice and everything nice %% f4\B4 f\B4 f\B4 } } You'll probably want more than \B but probably still a very limited number of fingerings. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertically overlapping material / too small vertical space
Dear Phil, On 30 November 2016 at 16:47, Phil Holmes wrote: > I think the use of \context is getting the vertical spacing engine > confused. I _think_ my attached version of your music does what you want - > it would seem to point in the right direction, at the very least. I changed your document slightly and rearranged it in the way I want it. But the problem is still present. So no, it doesn't seem to fix it. I need a horizontally aligned list of button labels / fingerings. Most of the time I need two labels, but every so often I need three or four (when a chord consists of three or four pitches). I would prefer to use something like the following (please excuse me, the syntax is not functional, but it should demonstrate what I want):4 4 Here's a working syntax (demonstrating the problem / why I cannot use it): \score { \fixed c' { % % looks almost perfect, but I'm unable to use anything but simple numbers % f4-4 f-4 % % proper text, but horrible output % f4^\markup{\column{"B4"}} ^\markup{\column{"B5" "B4"}} ^\markup{\column{"B6" "B5" "B4"}} f^\markup{\column{"B4"}} } } But this doesn't work: I'm unable to align it horizontally. That's the reason why I'm currently misusing lyrics. (Mis)using lyrics is both tedious and error-prone (if I change "c8" into "c16 c" somewhere, then all the labels are screwed up and I have to go through the tedious work of finding and fixing the labels at the right place). Your example works because you move the third and the fourth line. I need them aligned above the first and second line though, even if it's usually empty. Mojca > Hi, > > I'm also attaching a "quasi-minimal" example (if a full page may even > be called "minimal"). > > Mojca > > (please CC me) > > On 30 November 2016 at 12:06, Mojca Miklavec wrote: >> >> Hi, >> >> I would like to ask for a bit of a guidance. I sometimes end up with >> the scores as you see in the attachment. There's simply not enough >> vertical space between staves and text is overlapping very badly. >> >> I can attach the complete example (or perhaps come up with some >> "\repeat unfold ..." trick to compose a full page that more or less >> reproduces the problem), but it's basically the same type of scores as >> I used anywhere else in >> https://github.com/mojca/frajtonarca/tree/master/tablature/avtorske >> >> On the example in the screenshot you see the following elements in one >> stave: >> >> - button names are two lines of Lyrics attached on top of the melody >> - Voice with the main melody >> - accordion push spanner >> - RhythmicStaff >> - FiguredBass >> >> I didn't even try to touch the spacing inside the scores. The only >> part where the code is messing up with vertical spacing is here: >> >> https://github.com/mojca/frajtonarca/blob/master/tablature/accordion.ily >> in accordionPushSpannerEngraver (written by David Nalesnik) which is >> something that I don't fully understand myself. But in theory it >> should not affect distances between different staves, it should only >> control the distance between main melody, push spanner event and the >> basses. >> >> I was looking at >> - http://lilypond.org/doc/v2.19/Documentation/learning/vertical-spacing >> - >> http://lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-paper-variables >> >> etc. and found some ugly workarounds to fix the problem (I can create >> a manual page break; add artificial invisible marks; increase the >> spacing between staves – which will result in too big space even when >> I don't have any button names / lyrics above the melody and that looks >> ugly; ...), but I wonder if this issue with vertical spacing is: >> >> (a) a bug in lilypond >> (b) a bug in the code that handles accordion push events >> (c) something that's super difficult to fix anywhere and I should be >> using workarounds anyway >> >> I can provide more information if needed, but I'll need a bit more >> guidance. >> >> Thank you, >> Mojca lily-vertical-spacePH-fix.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertically overlapping material / too small vertical space
Dear Michael, On 30 November 2016 at 16:30, Gerdau, Michael wrote: >> I'm also attaching a "quasi-minimal" example (if a full page may even >> be called "minimal"). > > Is the attached what you actually want? No. I want the button names above the first line, not below. Mojca ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertically overlapping material / too small vertical space
I think the use of \context is getting the vertical spacing engine confused. I _think_ my attached version of your music does what you want - it would seem to point in the right direction, at the very least. -- Phil Holmes - Original Message - From: "Mojca Miklavec" <mojca.miklavec.li...@gmail.com> To: "lilypond-user" <lilypond-user@gnu.org> Sent: Wednesday, November 30, 2016 1:22 PM Subject: Re: Vertically overlapping material / too small vertical space Hi, I'm also attaching a "quasi-minimal" example (if a full page may even be called "minimal"). Mojca (please CC me) On 30 November 2016 at 12:06, Mojca Miklavec wrote: Hi, I would like to ask for a bit of a guidance. I sometimes end up with the scores as you see in the attachment. There's simply not enough vertical space between staves and text is overlapping very badly. I can attach the complete example (or perhaps come up with some "\repeat unfold ..." trick to compose a full page that more or less reproduces the problem), but it's basically the same type of scores as I used anywhere else in https://github.com/mojca/frajtonarca/tree/master/tablature/avtorske On the example in the screenshot you see the following elements in one stave: - button names are two lines of Lyrics attached on top of the melody - Voice with the main melody - accordion push spanner - RhythmicStaff - FiguredBass I didn't even try to touch the spacing inside the scores. The only part where the code is messing up with vertical spacing is here: https://github.com/mojca/frajtonarca/blob/master/tablature/accordion.ily in accordionPushSpannerEngraver (written by David Nalesnik) which is something that I don't fully understand myself. But in theory it should not affect distances between different staves, it should only control the distance between main melody, push spanner event and the basses. I was looking at - http://lilypond.org/doc/v2.19/Documentation/learning/vertical-spacing - http://lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-paper-variables etc. and found some ugly workarounds to fix the problem (I can create a manual page break; add artificial invisible marks; increase the spacing between staves – which will result in too big space even when I don't have any button names / lyrics above the melody and that looks ugly; ...), but I wonder if this issue with vertical spacing is: (a) a bug in lilypond (b) a bug in the code that handles accordion push events (c) something that's super difficult to fix anywhere and I should be using workarounds anyway I can provide more information if needed, but I'll need a bit more guidance. Thank you, Mojca ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user \version "2.19.30" \language "deutsch" #(set-default-paper-size "a4") \paper { top-margin = 1.8\cm } \layout { indent = #0 ragged-last = ##t } \header{ title= "Title" poet = "" composer = "composer" arranger = "arranger" } buttonsIV = \lyricsto "melody" {} buttonsIII = \lyricsto "melody" { \repeat unfold 40 { \skip 1 } "B3" } buttonsII = \lyricsto "melody" { \repeat unfold 150 { "2" } } buttonsI = \lyricsto "melody" { \repeat unfold 150 { "1" } } \score { \new PianoStaff << \new Staff = "MelStaff" { \new Voice = "melody" { \time 3/4 \repeat unfold 75 { c'4 c'2 } } } \new Lyrics = "buttonsI" \with { alignAboveContext = "MelStaff" } { \buttonsI } \new Lyrics = "buttonsII" \with { alignAboveContext = "MelStaff" } { \buttonsII } \new Lyrics = "lyricsI" { \lyricsto "melody" { \repeat unfold 100 { I } } } \new Lyrics = "lyricsII" { \lyricsto "melody" { \repeat unfold 100 { II } } } \new Lyrics = "buttonsIV" { \buttonsIV } \new Lyrics = "buttonsIII" { \buttonsIII } \new RhythmicStaff { \repeat unfold 150 { c,4 } } \new FiguredBass { \figuremode { \repeat unfold 150 { <4>4 } } } >> } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Vertically overlapping material / too small vertical space
Hi, I would like to ask for a bit of a guidance. I sometimes end up with the scores as you see in the attachment. There's simply not enough vertical space between staves and text is overlapping very badly. I can attach the complete example (or perhaps come up with some "\repeat unfold ..." trick to compose a full page that more or less reproduces the problem), but it's basically the same type of scores as I used anywhere else in https://github.com/mojca/frajtonarca/tree/master/tablature/avtorske On the example in the screenshot you see the following elements in one stave: - button names are two lines of Lyrics attached on top of the melody - Voice with the main melody - accordion push spanner - RhythmicStaff - FiguredBass I didn't even try to touch the spacing inside the scores. The only part where the code is messing up with vertical spacing is here: https://github.com/mojca/frajtonarca/blob/master/tablature/accordion.ily in accordionPushSpannerEngraver (written by David Nalesnik) which is something that I don't fully understand myself. But in theory it should not affect distances between different staves, it should only control the distance between main melody, push spanner event and the basses. I was looking at - http://lilypond.org/doc/v2.19/Documentation/learning/vertical-spacing - http://lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-paper-variables etc. and found some ugly workarounds to fix the problem (I can create a manual page break; add artificial invisible marks; increase the spacing between staves – which will result in too big space even when I don't have any button names / lyrics above the melody and that looks ugly; ...), but I wonder if this issue with vertical spacing is: (a) a bug in lilypond (b) a bug in the code that handles accordion push events (c) something that's super difficult to fix anywhere and I should be using workarounds anyway I can provide more information if needed, but I'll need a bit more guidance. Thank you, Mojca ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user