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: Simon Albrecht
Subject: Re: How to avoid a collision?
Date: Thu, 21 May 2015 20:45:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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

reply via email to

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