lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exact stem length?


From: Piaras Hoban
Subject: Re: Exact stem length?
Date: Wed, 26 Mar 2014 11:10:09 +0000

Hi Urs,

(sent this last night but I seem to have issues getting my messages to the list...)

It should do what you want in terms of generating stems. 

It's a work in progress and still needs to be able to handle slurs, dynamics, articulations, different stem patterns etc...

best wishes,

piaras




On 26 March 2014 08:38, Urs Liska <address@hidden> wrote:
Am 25.03.2014 13:45, schrieb Fredrik Wallberg:

...a way to override the distance between notehead and stem...

\override Stem.Y-offset = 2

(Sorry about the typos in my last message -- I wrote "beam lenghts"; I
meant "stem lengths of beamed notes".)



This works basically.
The attached image is the result of manually offsetting the stem for every second note (i.e. any repeated pitch) by 0.25.

Of course that's an inacceptable amount of manual work for a general solution. I think for a function it would be better to

- print the initial pitch
- print the last note at its pitch (without notehead of course)
- repeat the initial pitch for all intermediate events and
- calculate the offsets as a linear function.

Urs

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


Attachment: repeat-stems.ly
Description: Binary data

Attachment: repeat-stems.preview.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]