lilypond-user
[Top][All Lists]
Advanced

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

Re: Stem.note-collision-threshold


From: Jean Abou Samra
Subject: Re: Stem.note-collision-threshold
Date: Sun, 13 Mar 2022 00:05:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Hi Robert,


Le 11/03/2022 à 18:05, Robert Mengual a écrit :
Hello everyone,

I am developing a custom music notation in which distance between notes is different from the standard one. Instead of the tipical distance from C to D of 1, in mine for example this distance is 2/3.

This of course causes notes in the same chord that are 1 tone away to overlap. I wanted to fix this by overriding Stem.note-collision-threshold to 1.5 (which would solve it). However, it won't allow to pass float numbers. My question is, shouldn't it allow them? Why not?


Comparing floats is hazardous due to decimal precision issues. On the other hand, it might be possible to make it accept rational numbers like #3/2.


In any case, does anyone know how might I approach this challenge in a different way? I tried setting a different StaffSpacing but I was unsuccessful as well.

Could you give a code example? It's not clear to me what different coordinate systems are being used.

Thanks,
Jean




reply via email to

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