lilypond-user
[Top][All Lists]
Advanced

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

Re: How to avoid a collision?


From: Larry Kent
Subject: Re: How to avoid a collision?
Date: Thu, 21 May 2015 15:02:17 -0400

As a relative newcomer myself, I have also found it useful to grab the code that people post here - like this discussion - and dropping it into Frescobaldi and seeing how far I can get in solving the problem, or modifying a good solution to see what happens when I make small changes to perfectly good code.

Larry Kent
Tampa, FL


On Thu, May 21, 2015 at 2:45 PM, Simon Albrecht <address@hidden> wrote:
Am 21.05.2015 um 15:21 schrieb Olivier Vogel:

2015-05-21 13:54 GMT+01:00 Kieren MacMillan <address@hidden>:

May I ask why you’re not using Lilypond’s built-in (and generallly excellent) voice-handling? e.g. In the modified snippet (below), I’m using \voiceOne, \voiceTwo, etc., which eliminates the need for \stemUp, \tieDown, etc., and appears (to my eye) to eliminate all note collisions.

Simply because, I'm learning Lilypond since only a few days.

Your solution avoids the collision at the third measure, but introduces an horizontal shift at the fourth measure, which I'd like to prevent. Is it possible?
 

p.s. Also note that I abstracted your note code from your score code — it is so much easier to read and debug this way, in my opinion, and it keeps the score block as clean and simple as possible.

Thank you very much for your advice. As a beginner, where can I learn how to write a better code?
1. Learning by doing – and by trying yourself how you might improve it, so that it’s more flexible, easy to type and read.
2. Use the templates of Frescobaldi <http://frescobaldi.org>, which besides is extremely recommendable anyway.
3. Learn from others – look at code examples from experienced users like in the LSR, like on this list, or elsewhere on the web (but there are all sorts of code around, including less elegant or outdated ones…)

HTH and keep going :-),
Simon

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



reply via email to

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