Re: Vertical clash of contents

2016-07-19 Thread Simon Albrecht

On 19.07.2016 11:17, Mojca Miklavec wrote:

I would really like all the buttons / fingers to be aligned
vertically, otherwise it looks horrible (I can post the example
again). But if someone can show me how to tweak the fingerings
properly to satisfy my needs, I'll gladly use those instead.

I don't think this will work according to your desires, namely providing
a semi-independently readable rendering of the button sequences.
"\\-" = #(define-event-function (m) (markup?)
#{ \tweak text \markup \normal-text #m -1 #})
\relative c' {   }

Thank you very much for the snippet and for teaching me a new
technique. This is in fact exactly the kind of input I would prefer to
make (at least until I find a way to translate between buttons and
pitches automatically).

But from what I understand one would have to extend lilypond's
functionality to vertically align that text.


Namely one would have to create a FingeringLineSpanner in analogy to 
DynamicLineSpanner.


Best, Simon

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


Re: Vertical clash of contents

2016-07-19 Thread Mojca Miklavec
On 18 July 2016 at 14:55, David Kastrup wrote:
> Mojca Miklavec writes:
>
>> I also totally agree that the fingerings are *the most sensible* place
>> where this information should be entered. (Placing the information
>> inside the lyrics is "kind-of horrible" idea, but I don't know how to
>> achieve the desired layout if I start from fingerings.)
>
> I thought that what made you go to lyrics etc was alignment: having
> everything appear at one height.

Indeed.

>> I would really like all the buttons / fingers to be aligned
>> vertically, otherwise it looks horrible (I can post the example
>> again). But if someone can show me how to tweak the fingerings
>> properly to satisfy my needs, I'll gladly use those instead.
>
> I don't think this will work according to your desires, namely providing
> a semi-independently readable rendering of the button sequences.

> "\\-" = #(define-event-function (m) (markup?)
> #{ \tweak text \markup \normal-text #m -1 #})
>
> \relative c' {   }

Thank you very much for the snippet and for teaching me a new
technique. This is in fact exactly the kind of input I would prefer to
make (at least until I find a way to translate between buttons and
pitches automatically).

But from what I understand one would have to extend lilypond's
functionality to vertically align that text.

Mojca

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


Re: Vertical clash of contents

2016-07-18 Thread David Kastrup
Mojca Miklavec  writes:

> On 18 July 2016 at 14:01, Andrew Bernard wrote:
>> Hi Mojca,
>>
>> Why can’t you simply use the lilypond fingering instruction? You can stack
>> fingerings as per your MWE, and they are easy to enter.
>
> 1.) I want to enter both finger number *and* button name. So something
> like "2 B4" (where 2 is the finger number and B4 is the button name).
> In addition it is usually helpful to have a bit more control about
> whether or not finger numbers are actually typeset, their style
> (potentially different from button name to be distinguishable with
> ease) and placement.
>
> I totally agree that fingerings alone are much easier to enter and I
> would prefer to be able to write something like
> 
> but as far as I understand this is currently not really supported.

Well, those are text scripts and not fingerings, but one may do
something akin to

"\\-" = #(define-event-function (m) (markup?)
	  #{ \tweak text \markup \normal-text #m -1 #})

{  }

> I also totally agree that the fingerings are *the most sensible* place
> where this information should be entered. (Placing the information
> inside the lyrics is "kind-of horrible" idea, but I don't know how to
> achieve the desired layout if I start from fingerings.)

I thought that what made you go to lyrics etc was alignment: having
everything appear at one height.
>
> 2.) Even if I somehow tweak this to work with some complex syntax, it
> will look like "drunken lyrics" because I have absolutely no control
> of the vertical placement.

Ah yes, you were coming to that.

> I would really like all the buttons / fingers to be aligned
> vertically, otherwise it looks horrible (I can post the example
> again). But if someone can show me how to tweak the fingerings
> properly to satisfy my needs, I'll gladly use those instead.

I don't think this will work according to your desires, namely providing
a semi-independently readable rendering of the button sequences.

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


Re: Vertical clash of contents

2016-07-18 Thread David Kastrup
Mojca Miklavec  writes:

> Hello,
>
> I'm experiencing a weird (ugly) vertical clash inside the scores and
> don't quite understand why.
>
> I'm "misusing" lyrics above the stave to add button names. (I
> initially tried with "^\markup{}", but didn't know how to vertically
> align it.)
>
> The same trick works if the line with lyrics is full, but as soon as I
> need to add the third annotation just every now and then (and need to
> start an almost empty third line), I get a clash.
>
> I prepared a "somewhat minimal" example in the attachment.
>
> Mojca
>
> PS: please CC me

As a general hint: for these kinds of collision problems it is sometimes
a good idea to figure out LilyPond's idea of the involved outlines.  For
that, running lilypond with the option -ddebug-skylines can be real
helpful (the outline info appears in the PDF itself).

In this particular case, it does not do much more than change "WTF?" to
"WTF?!?!?".  I'm not entirely sure here but I think Keith might have
been one of those people more actively recent with the skyline code so
maybe he has some idea here?  Both regarding what may be going on and/or
wrong and with regard to possible workarounds?

-- 
David Kastrup

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


Re: Vertical clash of contents

2016-07-18 Thread Mojca Miklavec
On 18 July 2016 at 14:01, Andrew Bernard wrote:
> Hi Mojca,
>
> Why can’t you simply use the lilypond fingering instruction? You can stack
> fingerings as per your MWE, and they are easy to enter.

1.) I want to enter both finger number *and* button name. So something
like "2 B4" (where 2 is the finger number and B4 is the button name).
In addition it is usually helpful to have a bit more control about
whether or not finger numbers are actually typeset, their style
(potentially different from button name to be distinguishable with
ease) and placement.

I totally agree that fingerings alone are much easier to enter and I
would prefer to be able to write something like

but as far as I understand this is currently not really supported.

I also totally agree that the fingerings are *the most sensible* place
where this information should be entered. (Placing the information
inside the lyrics is "kind-of horrible" idea, but I don't know how to
achieve the desired layout if I start from fingerings.)

2.) Even if I somehow tweak this to work with some complex syntax, it
will look like "drunken lyrics" because I have absolutely no control
of the vertical placement. I would really like all the buttons /
fingers to be aligned vertically, otherwise it looks horrible (I can
post the example again). But if someone can show me how to tweak the
fingerings properly to satisfy my needs, I'll gladly use those
instead.

> I am sorry I have not been following your accordion thread as this is an
> instrument I know nothing about, so I apologise if this idea has already
> been rejected for accordion specific reasons.

There are no "accordion-specific" reasons.

Mojca

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


Re: Vertical clash of contents

2016-07-18 Thread Andrew Bernard
Hi Mojca,

Why can’t you simply use the lilypond fingering instruction? You can stack
fingerings as per your MWE, and they are easy to enter. It would seem to be
a fine solution.

I am sorry I have not been following your accordion thread as this is an
instrument I know nothing about, so I apologise if this idea has already
been rejected for accordion specific reasons.

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


Vertical clash of contents

2016-07-18 Thread Mojca Miklavec
Hello,

I'm experiencing a weird (ugly) vertical clash inside the scores and
don't quite understand why.

I'm "misusing" lyrics above the stave to add button names. (I
initially tried with "^\markup{}", but didn't know how to vertically
align it.)

The same trick works if the line with lyrics is full, but as soon as I
need to add the third annotation just every now and then (and need to
start an almost empty third line), I get a clash.

I prepared a "somewhat minimal" example in the attachment.

Mojca

PS: please CC me


vertical-clash.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user