Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-13 Thread Wols Lists
On 13/07/17 20:55, David Wright wrote:
> On Tue 11 Jul 2017 at 09:08:07 (-0400), Kieren MacMillan wrote:
>> Hi Wol,
>>
>>> I've seen music - not much admittedly - that actually writes crotchets
>>> as tied to a semi-quaver or something on the next beat in order to say
>>> "this one-beat note is one beat, not a fraction of a beat!"
>>
>> The only composers I know of who did that as a rule are late 19th Century 
>> and early 20th Century British composers (my experience in that area being 
>> mostly choral). I must admit, it's quite confusing when you first encounter 
>> that notation!
> 
> This was discussed in the thread
> http://lists.gnu.org/archive/html/lilypond-user/2016-11/msg00752.html
> 
> There's an equivalent notation in barbershop where people write
> lyric extenders on notes that don't require them, which is a
> pain to reproduce in LP.
> 
> <<
>   { \set Score.proportionalNotationDuration = #(ly:make-moment 1 8)
> a'1 a'16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 }
>   \addlyrics { x __ y z x y z … }
>>>
> 
> BTW I was tidying up some download directories and came across
> the attached. It or the link might have been posted by one of you,
> but it shows the kind of compromises made when printing band
> music with no page turns. Navigating during rehearsals must be
> interesting.
> 
Actually, because the pieces are quite short, it's not a problem. This
one is slightly atypical, it's got a short repeated first section, and
then a long unrepeated trio.

I think they tend to be intro, repeated first section, repeated second
section, trio may or may not be repeated in one or two sections, da capo
straight through no repeats.

So playing time can be quite long, typically 3 to 5 minutes, but the
piece doesn't have that many, or long, sections and the conductor just
says "first repeated section", "trio", or whatever.

Cheers,
Wol


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-13 Thread David Wright
On Tue 11 Jul 2017 at 09:08:07 (-0400), Kieren MacMillan wrote:
> Hi Wol,
> 
> > I've seen music - not much admittedly - that actually writes crotchets
> > as tied to a semi-quaver or something on the next beat in order to say
> > "this one-beat note is one beat, not a fraction of a beat!"
> 
> The only composers I know of who did that as a rule are late 19th Century and 
> early 20th Century British composers (my experience in that area being mostly 
> choral). I must admit, it's quite confusing when you first encounter that 
> notation!

This was discussed in the thread
http://lists.gnu.org/archive/html/lilypond-user/2016-11/msg00752.html

There's an equivalent notation in barbershop where people write
lyric extenders on notes that don't require them, which is a
pain to reproduce in LP.

<<
  { \set Score.proportionalNotationDuration = #(ly:make-moment 1 8)
a'1 a'16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 }
  \addlyrics { x __ y z x y z … }
>>

BTW I was tidying up some download directories and came across
the attached. It or the link might have been posted by one of you,
but it shows the kind of compromises made when printing band
music with no page turns. Navigating during rehearsals must be
interesting.

Cheers,
David.

[Reposted: I forgot to degrade the attachment, so I expect
it was rejected as oversize.]
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-11 Thread Kieren MacMillan
Hi Wol,

> You keep on going on about "the moment" in the music, and I know what
> you mean - you mean the point *on the paper* where the note is printed.

According to 99% of Western musical notation, that's the point at which the 
note begins.

> To me, "the moment" "obviously" :-) means the moment in time the note is
> played, which to me is represented by the barline, not the position of the 
> note! :-)

But not every note has a barline associated with the same moment [in time]… 
How/where do you play those notes? Do all notes in a measure get played at 
exactly the same time, right where the [leading] barline is?

> how often do you get them playing a crotchet as a semi-quaver!

From my experience, that's restricted to the band world. In the string world, 
it's often the opposite: players play notes longer than their written duration.

> I've seen music - not much admittedly - that actually writes crotchets
> as tied to a semi-quaver or something on the next beat in order to say
> "this one-beat note is one beat, not a fraction of a beat!"

The only composers I know of who did that as a rule are late 19th Century and 
early 20th Century British composers (my experience in that area being mostly 
choral). I must admit, it's quite confusing when you first encounter that 
notation!

Cheers,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-11 Thread Wols Lists
On 10/07/17 21:18, Kieren MacMillan wrote:
>> a tempo mark always belongs *after* a rehearsal mark if they collide
> In my opinion, a tempo mark belongs exactly over the moment it affects, and 
> all other marks need to move (horizontally, vertically, or both) around it.
> 
It struck me, actually, after my last email, that the OP's example is
pretty much a perfect example of how different people see music differently.

You keep on going on about "the moment" in the music, and I know what
you mean - you mean the point *on the paper* where the note is printed.
Which moves all over the place such that if you actually played the
notes according to the "distance" they cover on the page you'd have a
horrifying rubato effect :-)

To me, "the moment" "obviously" :-) means the moment in time the note is
played, which to me is represented by the barline, not the position of
the note! :-)

(One of the things that sometimes gets me, playing music, is just how
hard it is to get musicians to play the note that is written - how often
do you get them playing a crotchet as a semi-quaver! To the extent that
I've seen music - not much admittedly - that actually writes crotchets
as tied to a semi-quaver or something on the next beat in order to say
"this one-beat note is one beat, not a fraction of a beat!" :-)

Cheers,
Wol

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-10 Thread Kieren MacMillan
Hi Wol (et al.),

> No. I just view a markup block as exactly that - a block.

The problem is, given enough horizontal offset, eventually the reader can't 
tell what's part of the original block and what's a new chunk [based over a new 
moment]. Vertical stacking doesn't have that potential ambiguity.

> a tempo mark always belongs *after* a rehearsal mark if they collide

In my opinion, a tempo mark belongs exactly over the moment it affects, and all 
other marks need to move (horizontally, vertically, or both) around it.

> tempi and tune names should work well together with rehearsal marks.

Agreed.

> It just seems to me that whenever I need them together
> I end up fighting lily to get a good-looking solution

You could write a [single] function which gracefully handles all possible 
combinations, according to your preference(s)…  =)

> Yes, I know, I'm a grumpy old man :-)

Well, then… there's that.  ;)

Cheers,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-10 Thread Wols Lists
On 10/07/17 18:35, Simon Albrecht wrote:
> On 10.07.2017 15:41, Wols Lists wrote:
>> On 09/07/17 21:20, Simon Albrecht wrote:
>>> On 09.07.2017 21:21, Wols Lists wrote:
 Maybe, but placing all related marks one after the other is just as
 semantically correct as placing them one on top of the other ...
>>> That’s nonsense, and it is for the same reason that it’s not a trivial
>>> decision to loosen horizontal alignment in general.
>> Why's it nonsense? "semantics" to me means "meaning", and if I see a
>> bunch of marks grouped together, they mean (to me at least) that they
>> all apply together. The fact that they are sequential rather than
>> stacked is irrelevant.
> 
> In tempo marks, horizontal position is related to semantics. If you
> place the tempo indication over a different moment, it means something
> different. What’s so hard to get about that? Or are you suggesting
> spreading the notes out by the entire width of the MetronomeMark? (I
> can’t think of tempo indications so short that this wouldn’t be
> ridiculous.)

No. I just view a markup block as exactly that - a block. So what if it
consists of several individual marks stacked horizontally. To me, a
tempo mark always belongs *after* a rehearsal mark if they collide, not
above it. And I can't remember whether the melody name goes above or
below the tempo.

I think I get your point a bit, though, in that I expect to see the
rehearsal mark above the barline. Iirc it's often left-justified, though ...
> 
>>> If you shift a tempo indication a tiny bit to the side, it makes no
>>> difference. But if it’s a
>>> slightly larger bit, such as the width of a quarter note, then the tempo
>>> change applies to a different moment. And preservation of semantic
>>> information (almost) always has to take precedence over elegant layout.
>>>
> Finally, these two statements are contradictory:
>
>   A real engraver who wanted to stick to those conventions would
>   presumably shift the note to the right
>
>   wasted white space is high on my list of priorities
>
 How come? Shifting the notes to the right wastes maybe one
 note-width of
 one stave. Stacking marks on top of each other wastes an entire line of
 text - bad enough in portrait music but appalling in landscape (where
 saving space tends to be extremely important - the music is only A5 to
 start with!)
>>> It’s obvious that your use case is special in its extremely tight
>>> restrictions on paper size and page turns. So I’m afraid you have to
>>> lower your expectations as to how well Lily will cope with that special
>>> situation in difficult circumstances. I assume you’re aware of
>>> possibilities like
>>>
>>> \paper {
>>>page-count = 2
>>>system-count = 10
>>>systems-per-page = 5
>>> }
>>>
>>> – your use case might take benefit from specifying _all three_ of these.
>>>
>> And this would gain me what? Loads of wasted white space? On a bandstand
>> that's probably not *too* bad, but I was recently playing and a single
>> sheet of A4 was a nightmare!
> 
> Look, I understood from your previous e-mails that your usecase
> sometimes requires fitting the music on exactly two pages of A5 so they
> may be used for marching. Is that correct?

Marching it has to be a single side of A5. Anything else is just
impractical (as I found out a week ago :-)

Playing on a bandstand, two sides of A4 is okay, three at a pinch (on
three sheets of paper stuck together!), and four is a real pain. I'd
rather cram it on to one, than spread it over two.

> If you face such a situation and Lily by default spaces the music out to
> three pages, you can specify page-count to force it on two pages. In
> such tight constraints, the spacing algorithms often produce better
> results if you also specify the total number of staves as well as the
> number of staves on each page. If you have trouble applying that to your
> real-world example, maybe try to understand it better by reading it up
> in the Notation Reference, or ask back with an actual example.

I've done that. Lily seems to be doing much better in that regard,
recently, but in my experience it often seems to give up with "no can
do" (as I say, recent experience is much better).
> 
>> Lilypond claims to be "a system for producing beautiful music". The
>> reality seems to be it's a system for producing standard orchestral
>> music. Fact is, there are a lot of traditions out there besides the
>> traditional western orchestra, and by default lilypond seems to have
>> great headaches handling what - to a lot of people - is perfectly normal
>> music typesetting.
>>
>> Take for instance marks! I can't remember why I had the four marks that
>> I mentioned earlier, but a large minority of the pieces I play will have
>> three - a rehearsal mark, a tempo mark, and a melody name. Oh - and
>> given that they typically go up to a rehearsal mark somewhere near S or
>> P, and I've known AA and beyond, I 

Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-10 Thread Simon Albrecht

On 10.07.2017 15:41, Wols Lists wrote:

On 09/07/17 21:20, Simon Albrecht wrote:

On 09.07.2017 21:21, Wols Lists wrote:

Maybe, but placing all related marks one after the other is just as
semantically correct as placing them one on top of the other ...

That’s nonsense, and it is for the same reason that it’s not a trivial
decision to loosen horizontal alignment in general.

Why's it nonsense? "semantics" to me means "meaning", and if I see a
bunch of marks grouped together, they mean (to me at least) that they
all apply together. The fact that they are sequential rather than
stacked is irrelevant.


In tempo marks, horizontal position is related to semantics. If you 
place the tempo indication over a different moment, it means something 
different. What’s so hard to get about that? Or are you suggesting 
spreading the notes out by the entire width of the MetronomeMark? (I 
can’t think of tempo indications so short that this wouldn’t be ridiculous.)



If you shift a tempo indication a tiny bit to the side, it makes no difference. 
But if it’s a
slightly larger bit, such as the width of a quarter note, then the tempo
change applies to a different moment. And preservation of semantic
information (almost) always has to take precedence over elegant layout.


Finally, these two statements are contradictory:

  A real engraver who wanted to stick to those conventions would
  presumably shift the note to the right

  wasted white space is high on my list of priorities


How come? Shifting the notes to the right wastes maybe one note-width of
one stave. Stacking marks on top of each other wastes an entire line of
text - bad enough in portrait music but appalling in landscape (where
saving space tends to be extremely important - the music is only A5 to
start with!)

It’s obvious that your use case is special in its extremely tight
restrictions on paper size and page turns. So I’m afraid you have to
lower your expectations as to how well Lily will cope with that special
situation in difficult circumstances. I assume you’re aware of
possibilities like

\paper {
   page-count = 2
   system-count = 10
   systems-per-page = 5
}

– your use case might take benefit from specifying _all three_ of these.


And this would gain me what? Loads of wasted white space? On a bandstand
that's probably not *too* bad, but I was recently playing and a single
sheet of A4 was a nightmare!


Look, I understood from your previous e-mails that your usecase 
sometimes requires fitting the music on exactly two pages of A5 so they 
may be used for marching. Is that correct?
If you face such a situation and Lily by default spaces the music out to 
three pages, you can specify page-count to force it on two pages. In 
such tight constraints, the spacing algorithms often produce better 
results if you also specify the total number of staves as well as the 
number of staves on each page. If you have trouble applying that to your 
real-world example, maybe try to understand it better by reading it up 
in the Notation Reference, or ask back with an actual example.



Lilypond claims to be "a system for producing beautiful music". The
reality seems to be it's a system for producing standard orchestral
music. Fact is, there are a lot of traditions out there besides the
traditional western orchestra, and by default lilypond seems to have
great headaches handling what - to a lot of people - is perfectly normal
music typesetting.

Take for instance marks! I can't remember why I had the four marks that
I mentioned earlier, but a large minority of the pieces I play will have
three - a rehearsal mark, a tempo mark, and a melody name. Oh - and
given that they typically go up to a rehearsal mark somewhere near S or
P, and I've known AA and beyond, I don't think cramming them in to two
pages will work :-)

At the end of the day, people want to use lilypond to produce beautiful
music - like me! But to argue that the orchestral *tradition* is "the
final arbiter" of what is right or wrong is simply going to put peoples'
backs up.


How did I suggest that a certain tradition was the ‘final arbiter’? The 
final arbiter is always legibility, and it so happens that traditional 
engravers of orchestral parts have achieved a very high standard in 
legibility. Producing high-quality parts is difficult enough for an 
orchestral setting where parts are normally larger than A4, there is no 
wind, no rain, and page turns are possible at appropriate locations. I 
totally accept yours as a valid use case, and still you have to admit 
that the constraints you cite are making the task much more difficult.
You can only cram so much music on a page while keeping optimal 
legibility, and if you try to exceed that amount, Lily will choke. There 
are countless possibilities to deal with this situation, but no magical 
ones to solve all problems without drawbacks.



  Face it. I (and the OP) are trying to use lilypond. It's not
making our lives easy, because it 

Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-10 Thread Wols Lists
On 10/07/17 14:58, Karlin High wrote:
> On 7/10/2017 8:41 AM, Wols Lists wrote:
>> given that they typically go up to a rehearsal mark somewhere near S or P, 
>> and I've known AA and beyond
> 
> This sounds like over 26 rehearsal marks. And elsewhere this thread says 
> the audience's ideal paper sizes are like A5 or half-letter? I have 
> trouble imagining. Or maybe those 2 conditions aren't often combined.

Sorry. Same musicians, different pieces :-)

But typical band/bandstand music. A5 for playing on the march, at most
two sides of A4 for playing on the bandstand. We do go to 3 or 4 on the
bandstand but it really isn't ideal ...

But it's band music, not orchestral.

Cheers,
Wol


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-10 Thread caagr98

E-ink displays are supposed to be just like normal paper, aren't they?

On 07/10/2017 03:43 PM, Wols Lists wrote:

On 10/07/17 14:28, Karlin High wrote:

On 7/9/2017 2:16 PM, Wols Lists wrote:

But out in the park, it was hard to stop the music blowing everywhere



That DOES sound like a problem. I've read of people using electronic
displays such as tablets or e-readers for displaying sheet music.
Ideally, page turns could be accomplished in one tap of the screen, or
even by foot pedals. Example here, GVIDO e-ink sheet music reader from
Japan: http://www.gvido.tokyo/ Looks good to me, even if the English
website needs translation help some places. And I'm sure there would be
technical concerns and device costs to consider - like $1,600 USD
multiplied by number of band members? Ouch.


Have you ever tried reading a mobile phone in bright sunlight :-)

(Yes I know you can apparently get screens that aren't hard ...)

Cheers,
Wol

___
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


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-10 Thread Wols Lists
On 10/07/17 14:28, Karlin High wrote:
> On 7/9/2017 2:16 PM, Wols Lists wrote:
>> But out in the park, it was hard to stop the music blowing everywhere

> That DOES sound like a problem. I've read of people using electronic 
> displays such as tablets or e-readers for displaying sheet music. 
> Ideally, page turns could be accomplished in one tap of the screen, or 
> even by foot pedals. Example here, GVIDO e-ink sheet music reader from 
> Japan: http://www.gvido.tokyo/ Looks good to me, even if the English 
> website needs translation help some places. And I'm sure there would be 
> technical concerns and device costs to consider - like $1,600 USD 
> multiplied by number of band members? Ouch.

Have you ever tried reading a mobile phone in bright sunlight :-)

(Yes I know you can apparently get screens that aren't hard ...)

Cheers,
Wol

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-10 Thread Wols Lists
On 09/07/17 21:20, Simon Albrecht wrote:
> On 09.07.2017 21:21, Wols Lists wrote:
>> On 09/07/17 20:06, Flaming Hakama by Elaine wrote:
>>>  > How can I move the texts to be next to the rehearsal mark
>>> (without
>>>  manual adjustments)?
>>>
>>> Well, you are asking for a manual change (due to a non-standard
>>> placement of tempo), so please expect all solutions will necessarily be
>>> manual.
>>>
>>> Since you want the tempo to appear over beat 2, you could try placing
>>> the tempo there, rather than at the downbeat.
>>>
>>> Your desired solution is non-semantic, so it's coding will reflect that.
>>>
>> Maybe, but placing all related marks one after the other is just as
>> semantically correct as placing them one on top of the other ...
> 
> That’s nonsense, and it is for the same reason that it’s not a trivial
> decision to loosen horizontal alignment in general.

Why's it nonsense? "semantics" to me means "meaning", and if I see a
bunch of marks grouped together, they mean (to me at least) that they
all apply together. The fact that they are sequential rather than
stacked is irrelevant.

 If you shift a tempo
> indication a tiny bit to the side, it makes no difference. But if it’s a
> slightly larger bit, such as the width of a quarter note, then the tempo
> change applies to a different moment. And preservation of semantic
> information (almost) always has to take precedence over elegant layout.
> 
>>> Finally, these two statements are contradictory:
>>>
>>>  A real engraver who wanted to stick to those conventions would
>>>  presumably shift the note to the right
>>>
>>>  wasted white space is high on my list of priorities
>>>
>> How come? Shifting the notes to the right wastes maybe one note-width of
>> one stave. Stacking marks on top of each other wastes an entire line of
>> text - bad enough in portrait music but appalling in landscape (where
>> saving space tends to be extremely important - the music is only A5 to
>> start with!)
> 
> It’s obvious that your use case is special in its extremely tight
> restrictions on paper size and page turns. So I’m afraid you have to
> lower your expectations as to how well Lily will cope with that special
> situation in difficult circumstances. I assume you’re aware of
> possibilities like
> 
> \paper {
>   page-count = 2
>   system-count = 10
>   systems-per-page = 5
> }
> 
> – your use case might take benefit from specifying _all three_ of these.
> 
And this would gain me what? Loads of wasted white space? On a bandstand
that's probably not *too* bad, but I was recently playing and a single
sheet of A4 was a nightmare!

Lilypond claims to be "a system for producing beautiful music". The
reality seems to be it's a system for producing standard orchestral
music. Fact is, there are a lot of traditions out there besides the
traditional western orchestra, and by default lilypond seems to have
great headaches handling what - to a lot of people - is perfectly normal
music typesetting.

Take for instance marks! I can't remember why I had the four marks that
I mentioned earlier, but a large minority of the pieces I play will have
three - a rehearsal mark, a tempo mark, and a melody name. Oh - and
given that they typically go up to a rehearsal mark somewhere near S or
P, and I've known AA and beyond, I don't think cramming them in to two
pages will work :-)

At the end of the day, people want to use lilypond to produce beautiful
music - like me! But to argue that the orchestral *tradition* is "the
final arbiter" of what is right or wrong is simply going to put peoples'
backs up. Face it. I (and the OP) are trying to use lilypond. It's not
making our lives easy, because it comes from a different tradition to
us. And to claim that we're wrong because we're experienced musicians
who've never seem music like you describe (and let's face it, I very
rarely see music like you describe) doesn't make you look good.

Different traditions, different expectations. I know lilypond is a
tricky tool if you don't work with its assumptions. But don't tell us
we're wrong just because we're different.

Cheers,
Wol

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread caagr98

On 07/09/2017 11:07 PM, Thomas Morley wrote:

Hi,

please always post an (minimal) example demonstrating the problem.
I wasted some minutes to reproduce your first problem. But I was
annoyed not being able to do so. Hence I decided to try solving the
problem instead of continuing finding an code-example triggering the
problem.
You could have done this.


Yeah, I forgot; sorry about that.




That said, how about:


That seems to work (though it seems a bit difficult if there are both a 
mark, tempo, and song name). I decided to use Edition Engraver, though, 
so I won't use that script. Thanks anyway.



Cheers,
   Harm



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Thomas Morley
2017-07-09 18:24 GMT+02:00  :
> As you can see on the screenshot, both texts are misaligned. The first one,
> a \tempo, is placed *under* the rehearsal mark instead of next to it. The
> second one, the name of a song, is too far too the right, since it's
> attached to the note instead of the barline (it's a <>^"").
>
> How can I move the texts to be next to the rehearsal mark (without manual
> adjustments)?
>
> And is there a version of <>^"" that is attached to a moment instead of a
> note, to be more semantically correct? I think \mark is supposed to do that,
> but it only supports one mark at a time.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

Hi,

please always post an (minimal) example demonstrating the problem.
I wasted some minutes to reproduce your first problem. But I was
annoyed not being able to do so. Hence I decided to try solving the
problem instead of continuing finding an code-example triggering the
problem.
You could have done this.

That said, how about:

\version "2.19.63"

#(define (combine-marks mrkup)
  (lambda (grob)
(let* ((default-stencil (ly:grob-property grob 'stencil))
   (mrkp-stencil (grob-interpret-markup grob mrkup))
   (new-stencil
 (ly:stencil-combine-at-edge
   (ly:stencil-aligned-to default-stencil Y CENTER)
   X
   RIGHT
   (ly:stencil-aligned-to mrkp-stencil Y CENTER)
   0.5 ;; padding
   ))
   (new-stencil-length
 (interval-length (ly:stencil-extent new-stencil X)))
   (default-stencil-length
 (interval-length (ly:stencil-extent default-stencil X

  (ly:grob-set-property! grob 'self-alignment-X
(/ (- new-stencil-length default-stencil-length)
   (* -1 new-stencil-length)))
  (ly:grob-set-property! grob 'stencil
new-stencil

rM =
#(define-music-function (mark mrkp)(ly:music? markup?)
  #{
\once \override Score.RehearsalMark #'before-line-breaking =
  #(combine-marks mrkp)
$mark
  #})

{
  R1*2
  \mark \default
  R
  \rM
  \mark \default \markup \bold \fontsize #-2 "Slightly Slower"
  R1*5
  \rM
  \mark \default \markup \fontsize #-2 "\"Come And Get Your Love\""
  R1*2
  \mark \default
  R1
}

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Simon Albrecht

On 09.07.2017 21:21, Wols Lists wrote:

On 09/07/17 20:06, Flaming Hakama by Elaine wrote:

 > How can I move the texts to be next to the rehearsal mark (without
 manual adjustments)?

Well, you are asking for a manual change (due to a non-standard
placement of tempo), so please expect all solutions will necessarily be
manual.

Since you want the tempo to appear over beat 2, you could try placing
the tempo there, rather than at the downbeat.

Your desired solution is non-semantic, so it's coding will reflect that.


Maybe, but placing all related marks one after the other is just as
semantically correct as placing them one on top of the other ...


That’s nonsense, and it is for the same reason that it’s not a trivial 
decision to loosen horizontal alignment in general. If you shift a tempo 
indication a tiny bit to the side, it makes no difference. But if it’s a 
slightly larger bit, such as the width of a quarter note, then the tempo 
change applies to a different moment. And preservation of semantic 
information (almost) always has to take precedence over elegant layout.



Finally, these two statements are contradictory:

 A real engraver who wanted to stick to those conventions would
 presumably shift the note to the right

 wasted white space is high on my list of priorities


How come? Shifting the notes to the right wastes maybe one note-width of
one stave. Stacking marks on top of each other wastes an entire line of
text - bad enough in portrait music but appalling in landscape (where
saving space tends to be extremely important - the music is only A5 to
start with!)


It’s obvious that your use case is special in its extremely tight 
restrictions on paper size and page turns. So I’m afraid you have to 
lower your expectations as to how well Lily will cope with that special 
situation in difficult circumstances. I assume you’re aware of 
possibilities like


\paper {
  page-count = 2
  system-count = 10
  systems-per-page = 5
}

– your use case might take benefit from specifying _all three_ of these.

Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread caagr98
I guess I'll just have to go with EditionEngraver. The main reason I 
didn't use it before was that I couldn't figure out how to install it, 
but I managed to figure that out.


On 07/09/2017 07:38 PM, Simon Albrecht wrote:

On 09.07.2017 18:24, caag...@gmail.com wrote:

As you can see on the screenshot, both texts are misaligned.


That’s your opinion.

The first one, a \tempo, is placed *under* the rehearsal mark instead 
of next to it.


Well, both are placed exactly according to standard conventions: the 
center of the RehearsalMark aligned to the bar line, and the left edge 
of the MetronomeMark aligned to the note at the same moment. And since 
the former has a higher outside-staff-priority (see 
) 
it is further away from the staff.


The second one, the name of a song, is too far too the right, since 
it's attached to the note instead of the barline (it's a <>^"").


Well, you explained that one yourself. I think it’s perfectly fine like 
that (except perhaps alignment should disregard the quotes for a more 
balanced look), but if you want the text to refer to the section instead 
of the notes, the question might be “How do I combine \mark\default and 
a custom text into a single RehearsalMark?”. I don’t know that off the 
top of my head…


How can I move the texts to be next to the rehearsal mark (without 
manual adjustments)?


Write an intelligent algorithm that decides when it makes sense to shift 
one of the objects? …
What’s so bad about having a manual adjustment? I’d rather Lily were 
cleverer in such situations, but this is asking _very_ much. Maybe you 
want to separate presentation and content, so using the edition engraver 
would be a good choice.


And is there a version of <>^"" that is attached to a moment instead 
of a note, to be more semantically correct?


TextScriptEvent 
 
is a post-event, not a rhythmic-event, so no, there isn’t. But the empty 
chord solution is pretty elegant for input, isn’t it?


Best, Simon


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Wols Lists
On 09/07/17 20:06, Flaming Hakama by Elaine wrote:
> 
> > Le 9 juil. 2017 à 18:24, caag...@gmail.com
>  a écrit :
> >
> > As you can see on the screenshot, both texts are misaligned. The
> first one, a \tempo, is placed *under* the rehearsal mark instead of
> next to it.
> 
> 
> Another perspective is that the tempo is placed at the point of the
> tempo change, rather than what you want, which is to place it at a point
> in time after that change is supposed to have occurred. 
> 
> > How can I move the texts to be next to the rehearsal mark (without
> manual adjustments)?
> 
> 
> Well, you are asking for a manual change (due to a non-standard
> placement of tempo), so please expect all solutions will necessarily be
> manual.
> 
> Since you want the tempo to appear over beat 2, you could try placing
> the tempo there, rather than at the downbeat.  
> 
> Your desired solution is non-semantic, so it's coding will reflect that.
> 
Maybe, but placing all related marks one after the other is just as
semantically correct as placing them one on top of the other ...
> 
> 
> Finally, these two statements are contradictory:
> 
> A real engraver who wanted to stick to those conventions would
> 
> presumably shift the note to the right 
> 
> 
> 
> wasted white space is high on my list of priorities
> 
How come? Shifting the notes to the right wastes maybe one note-width of
one stave. Stacking marks on top of each other wastes an entire line of
text - bad enough in portrait music but appalling in landscape (where
saving space tends to be extremely important - the music is only A5 to
start with!)

Cheers,
Wol

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread David Wright
On Sun 09 Jul 2017 at 12:06:05 (-0700), Flaming Hakama by Elaine wrote:
> > Le 9 juil. 2017 à 18:24, caag...@gmail.com a écrit :
> >
> > As you can see on the screenshot, both texts are misaligned. The first
> one, a \tempo, is placed *under* the rehearsal mark instead of next to it.
> 
> 
> Another perspective is that the tempo is placed at the point of the tempo
> change, rather than what you want, which is to place it at a point in time
> after that change is supposed to have occurred.
> 
> > How can I move the texts to be next to the rehearsal mark (without manual
> adjustments)?
> 
> 
> Well, you are asking for a manual change (due to a non-standard placement
> of tempo), so please expect all solutions will necessarily be manual.
> 
> Since you want the tempo to appear over beat 2, you could try placing the
> tempo there, rather than at the downbeat.
> 
> Your desired solution is non-semantic, so it's coding will reflect that.
> 
> 
> 
> Finally, these two statements are contradictory:
> 
> A real engraver who wanted to stick to those conventions would
> 
> presumably shift the note to the right
> 
> 
> 
> wasted white space is high on my list of priorities

Same as my previous post. It's vertical whitespace that's being
prioritised; a _little_ horizontal waste would be less critical.

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Wols Lists
On 09/07/17 19:28, Simon Albrecht wrote:
> On 09.07.2017 20:01, Wols Lists wrote:
>> On 09/07/17 18:38, Simon Albrecht wrote:
>>> On 09.07.2017 18:24, caag...@gmail.com wrote:
 As you can see on the screenshot, both texts are misaligned.
>>> That’s your opinion.
>> See below. The result can EASILY be unplayable music ...
> What an exaggeration.
 The first one, a \tempo, is placed *under* the rehearsal mark instead
 of next to it.
>>> Well, both are placed exactly according to standard conventions: the
>>> center of the RehearsalMark aligned to the bar line, and the left edge
>>> of the MetronomeMark aligned to the note at the same moment. And since
>>> the former has a higher outside-staff-priority (see
>>> )
>>>
>>> it is further away from the staff.
>> The problem with this is firstly, it's horribly ugly and no real (i.e. a
>> person) engraver would ever do this if he took any pride in his work,
>>
>> and secondly and far more importantly for me, it makes playing the music
>> hard-to-impossible. What's the point of having sheet music if it's
>> unplayable?
> 
> And why exactly would the effect be so disastrous? Because it gets a
> little more difficult to get good page turns?

No. Because a good page turn has nothing to do with having a convenient
place to do it, and everything to do with whether turning a page is
POSSIBLE, in a purely *practical* sense.
> 
>> A real engraver who wanted to stick to those conventions would
>> presumably shift the note to the right so it cleared the rehearsal mark
>> and let the metronome mark drop down.
> 
> A real engraver would probably have shifted everything just a little so
> it fell in place looking like he had done nothing extraordinary at all.
> There are many things to be desired in LilyPond whose implementation
> would require algorithms much more sophisticated than those we have now.
> And until a crew of such genius to do that comes about, we have to live
> with making manual adjustments. That’s the point I was trying to make.
> It’s not like this could be fixed by changing a few settings.
> 
I know it's a hard problem. I've moaned about it, and I understand the
difficulties.

But I'd love to see you make a quick page turn when your music is
clamped to the stand with four or five clothes pegs or magnetic clamps -
where you've got to hold your instrument with one hand, and unclamp,
turn, and reclamp it with the other, and you've only got one or two bars
to do it in. I've seen far too many sheets of music - my own included -
get whipped away by the wind when you try. THAT is what I mean by
unplayable - I don't have the luxury of playing in a nice building where
I can rely on my music staying (for the most part - I have known that
problem in a concert hall :-) where I put it.

Take today, I had a piece of music with turns between pages 1 & 2, and
between 3 & 4. Plenty of time with rests if I was giving a recital in a
hall or something, it only takes a couple of seconds per turn. But out
in the park, it was hard to stop the music blowing everywhere even
though it was clamped - I was trying to play my trombone one-handed
while also trying to make sure my music didn't take off.

Cheers,
Wol


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread David Wright
On Sun 09 Jul 2017 at 20:28:56 (+0200), Simon Albrecht wrote:
> On 09.07.2017 20:01, Wols Lists wrote:
> >On 09/07/17 18:38, Simon Albrecht wrote:
> >>On 09.07.2017 18:24, caag...@gmail.com wrote:
> >>>As you can see on the screenshot, both texts are misaligned.
> >>That’s your opinion.
> >See below. The result can EASILY be unplayable music ...
> What an exaggeration.
> >>>The first one, a \tempo, is placed *under* the rehearsal mark instead
> >>>of next to it.
> >>Well, both are placed exactly according to standard conventions: the
> >>center of the RehearsalMark aligned to the bar line, and the left edge
> >>of the MetronomeMark aligned to the note at the same moment. And since
> >>the former has a higher outside-staff-priority (see
> >>)
> >>it is further away from the staff.
> >The problem with this is firstly, it's horribly ugly and no real (i.e. a
> >person) engraver would ever do this if he took any pride in his work,
> >
> >and secondly and far more importantly for me, it makes playing the music
> >hard-to-impossible. What's the point of having sheet music if it's
> >unplayable?
> 
> And why exactly would the effect be so disastrous? Because it gets a
> little more difficult to get good page turns?

We've been here before, just over a year ago. Wols/Anthonys sets
band parts, where you expect there to be _no_ page turns; the music
might be in a plastic bag if it's raining. So it's a niche use of
the term "unplayable".

> >A real engraver who wanted to stick to those conventions would
> >presumably shift the note to the right so it cleared the rehearsal mark
> >and let the metronome mark drop down.
> 
> A real engraver would probably have shifted everything just a little
> so it fell in place looking like he had done nothing extraordinary
> at all. There are many things to be desired in LilyPond whose
> implementation would require algorithms much more sophisticated than
> those we have now. And until a crew of such genius to do that comes
> about, we have to live with making manual adjustments. That’s the
> point I was trying to make. It’s not like this could be fixed by
> changing a few settings.

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Simon Albrecht

On 09.07.2017 20:01, Wols Lists wrote:

On 09/07/17 18:38, Simon Albrecht wrote:

On 09.07.2017 18:24, caag...@gmail.com wrote:

As you can see on the screenshot, both texts are misaligned.

That’s your opinion.

See below. The result can EASILY be unplayable music ...

What an exaggeration.

The first one, a \tempo, is placed *under* the rehearsal mark instead
of next to it.

Well, both are placed exactly according to standard conventions: the
center of the RehearsalMark aligned to the bar line, and the left edge
of the MetronomeMark aligned to the note at the same moment. And since
the former has a higher outside-staff-priority (see
)
it is further away from the staff.

The problem with this is firstly, it's horribly ugly and no real (i.e. a
person) engraver would ever do this if he took any pride in his work,

and secondly and far more importantly for me, it makes playing the music
hard-to-impossible. What's the point of having sheet music if it's
unplayable?


And why exactly would the effect be so disastrous? Because it gets a 
little more difficult to get good page turns?



A real engraver who wanted to stick to those conventions would
presumably shift the note to the right so it cleared the rehearsal mark
and let the metronome mark drop down.


A real engraver would probably have shifted everything just a little so 
it fell in place looking like he had done nothing extraordinary at all. 
There are many things to be desired in LilyPond whose implementation 
would require algorithms much more sophisticated than those we have now. 
And until a crew of such genius to do that comes about, we have to live 
with making manual adjustments. That’s the point I was trying to make. 
It’s not like this could be fixed by changing a few settings.


Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Wols Lists
On 09/07/17 18:38, Simon Albrecht wrote:
> On 09.07.2017 18:24, caag...@gmail.com wrote:
>> As you can see on the screenshot, both texts are misaligned.
> 
> That’s your opinion.

See below. The result can EASILY be unplayable music ...
> 
>> The first one, a \tempo, is placed *under* the rehearsal mark instead
>> of next to it.
> 
> Well, both are placed exactly according to standard conventions: the
> center of the RehearsalMark aligned to the bar line, and the left edge
> of the MetronomeMark aligned to the note at the same moment. And since
> the former has a higher outside-staff-priority (see
> )
> it is further away from the staff.

The problem with this is firstly, it's horribly ugly and no real (ie a
person) engraver would ever do this if he took any pride in his work,

and secondly and far more importantly for me, it makes playing the music
hard-to-impossible. What's the point of having sheet music if it's
unplayable?

A real engraver who wanted to stick to those conventions would
presumably shift the note to the right so it cleared the rehearsal mark
and let the metronome mark drop down.

Personally I've engraved stuff with lily where I've ended up with up to
four different marks stacked vertically. The result is widely varying
inter-staff gaps so the music looks awful. And I've just come back from
giving a concert - one of the pieces was a nightmare to play because it
had page turns in it. Turning the page isn't the problem, trying not to
lose the piece as the wind tries to whip it off your stand is!

As you may remember from my previous missives to this list, eliminating
wasted white space is high on my list of priorities - from a purely
practical playability approach!

Cheers,
Wol

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Simon Albrecht

On 09.07.2017 18:24, caag...@gmail.com wrote:

As you can see on the screenshot, both texts are misaligned.


That’s your opinion.

The first one, a \tempo, is placed *under* the rehearsal mark instead 
of next to it.


Well, both are placed exactly according to standard conventions: the 
center of the RehearsalMark aligned to the bar line, and the left edge 
of the MetronomeMark aligned to the note at the same moment. And since 
the former has a higher outside-staff-priority (see 
) 
it is further away from the staff.


The second one, the name of a song, is too far too the right, since 
it's attached to the note instead of the barline (it's a <>^"").


Well, you explained that one yourself. I think it’s perfectly fine like 
that (except perhaps alignment should disregard the quotes for a more 
balanced look), but if you want the text to refer to the section instead 
of the notes, the question might be “How do I combine \mark\default and 
a custom text into a single RehearsalMark?”. I don’t know that off the 
top of my head…


How can I move the texts to be next to the rehearsal mark (without 
manual adjustments)?


Write an intelligent algorithm that decides when it makes sense to shift 
one of the objects? …
What’s so bad about having a manual adjustment? I’d rather Lily were 
cleverer in such situations, but this is asking _very_ much. Maybe you 
want to separate presentation and content, so using the edition engraver 
would be a good choice.


And is there a version of <>^"" that is attached to a moment instead 
of a note, to be more semantically correct?


TextScriptEvent 
 
is a post-event, not a rhythmic-event, so no, there isn’t. But the empty 
chord solution is pretty elegant for input, isn’t it?


Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread caagr98

On 07/09/2017 06:29 PM, Jacques Menu Muzhic wrote:
> Hello caagr98,
>
> The second score in the example below can help you solve the first issue.
>
> JM.

That makes them aligned vertically, which I'm not too bothered about. It 
doesn't help with horizontal alignment, though


On 07/09/2017 06:30 PM, Jacques Menu Muzhic wrote:
> And this one for the second issue:

That's exactly the kind of manual adjustment I'd prefer to avoid.

On 07/09/2017 06:32 PM, Wols Lists wrote:

It's a bodge rather than a true fix, but try putting spaces in front of
"Slightly slower". It should shift the text to the right, and then the
rehearsal mark will drop down into the space.

Cheers,
Wol


That's clever, but still too close to "manual adjustment" for me to be 
comfortable with it.


Maybe I should look up how hairpins do, since they act pretty much the 
way I want with dynamic texts.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Wols Lists
On 09/07/17 17:24, caag...@gmail.com wrote:
> As you can see on the screenshot, both texts are misaligned. The first
> one, a \tempo, is placed *under* the rehearsal mark instead of next to
> it. The second one, the name of a song, is too far too the right, since
> it's attached to the note instead of the barline (it's a <>^"").
> 
> How can I move the texts to be next to the rehearsal mark (without
> manual adjustments)?
> 
> And is there a version of <>^"" that is attached to a moment instead of
> a note, to be more semantically correct? I think \mark is supposed to do
> that, but it only supports one mark at a time.
> 
It's a bodge rather than a true fix, but try putting spaces in front of
"Slightly slower". It should shift the text to the right, and then the
rehearsal mark will drop down into the space.

Cheers,
Wol


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Jacques Menu Muzhic
And this one for the second issue:


\version "2.19.44"


\paper {
  % First page spacing after header
  markup-system-spacing.padding = #6

  % Subsequent page spacing after header
  top-system-spacing.minimum-distance = #18

  % Spacing in between systems
  system-system-spacing.minimum-distance = #12
}

\header {
  title = \markup { \fontsize #-0.5 \bold "Something"}
  poet = "Another thing"
}

\relative c' {
  \clef treble
  \key e \minor
  \time 3/4
  \tempo 4 = 200
  \set Score.markFormatter = #format-mark-box-alphabet

  % Introduction
  \mark #9
  \once \override TextScript.outside-staff-priority = #2000
  \once \override TextScript.extra-offset = #'(-4 . 3)
  r8^\markup { IABACA } b' d g b d |
  c8 b a g a g |
  c8 b a g a g |
  c8 b a g a g |
  c8 b a g a g |
}


JM


> Le 9 juil. 2017 à 18:29, Jacques Menu Muzhic  a écrit :
> 
> Hello caagr98,
> 
> The second score in the example below can help you solve the first issue.
> 
> JM.
> 
> 
> 
> 
> \version "2.17.19"
> 
> {
>  \markLengthOn
>  \mark\default
>  \tempo "This is a really long tempo mark"
>  c''4 d'' e'' f''
>  \mark\default \tempo 4=60
>  g'' 1
> }
> 
> 
> 
> \score {
>  <<
>\new MarkLine {
>  \mark \default
>  \tempo \markup "This is a really long long tempo mark"
>  s1
>  \mark \default
>  \tempo 4=60
>  s1
>}
>\new Staff {
>  c''4 d'' e'' f''
>  g'' 1
>}
>>> 
>  \layout {
>\context {
>  \name "MarkLine"
>  \type "Engraver_group"
>  \consists Axis_group_engraver
>  \consists Output_property_engraver
>  \consists Mark_engraver
>  \consists Metronome_mark_engraver
>  \consists Text_spanner_engraver
>  \consists Time_signature_engraver
>  \override TimeSignature #'stencil = #point-stencil
>  \override MetronomeMark #'Y-offset = #0
>  \override RehearsalMark #'Y-offset = #0
>  \override RehearsalMark #'extra-spacing-width = #'(0 . 0.5)
>  \override MetronomeMark #'extra-spacing-width = #'(0 . 1.5)
>  \override VerticalAxisGroup #'staff-staff-spacing = #'((padding . 1))
>}
>\context {
>  \Score
>  \remove Metronome_mark_engraver
>  \remove Mark_engraver
>  \accepts MarkLine
>}
>  }
> }
> 
> 
> 
>> Le 9 juil. 2017 à 18:24, caag...@gmail.com a écrit :
>> 
>> As you can see on the screenshot, both texts are misaligned. The first one, 
>> a \tempo, is placed *under* the rehearsal mark instead of next to it. The 
>> second one, the name of a song, is too far too the right, since it's 
>> attached to the note instead of the barline (it's a <>^"").
>> 
>> How can I move the texts to be next to the rehearsal mark (without manual 
>> adjustments)?
>> 
>> And is there a version of <>^"" that is attached to a moment instead of a 
>> note, to be more semantically correct? I think \mark is supposed to do that, 
>> but it only supports one mark at a time.
>> <2017-07-09_18-13-35.png>___
>> 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


Re: Place text next to rehearsal mark, or with left edge over barline if there is none

2017-07-09 Thread Jacques Menu Muzhic
Hello caagr98,

The second score in the example below can help you solve the first issue.

JM.




\version "2.17.19"

{
  \markLengthOn
  \mark\default
  \tempo "This is a really long tempo mark"
  c''4 d'' e'' f''
  \mark\default \tempo 4=60
  g'' 1
}



\score {
  <<
\new MarkLine {
  \mark \default
  \tempo \markup "This is a really long long tempo mark"
  s1
  \mark \default
  \tempo 4=60
  s1
}
\new Staff {
  c''4 d'' e'' f''
  g'' 1
}
  >>
  \layout {
\context {
  \name "MarkLine"
  \type "Engraver_group"
  \consists Axis_group_engraver
  \consists Output_property_engraver
  \consists Mark_engraver
  \consists Metronome_mark_engraver
  \consists Text_spanner_engraver
  \consists Time_signature_engraver
  \override TimeSignature #'stencil = #point-stencil
  \override MetronomeMark #'Y-offset = #0
  \override RehearsalMark #'Y-offset = #0
  \override RehearsalMark #'extra-spacing-width = #'(0 . 0.5)
  \override MetronomeMark #'extra-spacing-width = #'(0 . 1.5)
  \override VerticalAxisGroup #'staff-staff-spacing = #'((padding . 1))
}
\context {
  \Score
  \remove Metronome_mark_engraver
  \remove Mark_engraver
  \accepts MarkLine
}
  }
}



> Le 9 juil. 2017 à 18:24, caag...@gmail.com a écrit :
> 
> As you can see on the screenshot, both texts are misaligned. The first one, a 
> \tempo, is placed *under* the rehearsal mark instead of next to it. The 
> second one, the name of a song, is too far too the right, since it's attached 
> to the note instead of the barline (it's a <>^"").
> 
> How can I move the texts to be next to the rehearsal mark (without manual 
> adjustments)?
> 
> And is there a version of <>^"" that is attached to a moment instead of a 
> note, to be more semantically correct? I think \mark is supposed to do that, 
> but it only supports one mark at a time.
> <2017-07-09_18-13-35.png>___
> 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