Re: [tablatures] hp.ly and slurs on Staff |
[ Thread Index |
Date Index
| More lilynet.net/tablatures Archives
]
Marc Hohl wrote:
Federico Bruni schrieb:
I have a question about the behaviour of hp.ly
I'm very satisfied with the way slurs are drawn in TabStaff. In fact,
as far as I can see, hammeron/pulloff in VoiceOne have the slur over
the numbers while in VoiceTwo are under. And that's exactly what I want.
But the slurs in Staff don't look nice, in particular VoiceOne.
Slurs connect stems instead of heads, so they don't look good (see
attached file).
I am not very familiar about the rules for slurs, so lilypond has surely
some reasons to behave like this.
I've made some tests and I guess the good reason is polyphonic music.
If you enter monophonic music, LilyPond will use stemDown-slurUp for
higher notes and stemUp-slurDown for lower notes.
This looks beautiful, because the slurs connect the heads in all of
these cases.
The problem comes with polyphonic music.
In this case, stem direction must change to avoid collisions.
So stemDown for voiceTwo, stemUp for voiceOne. This is perfect.
What about slurs?
slurUp for voiceOne, slurDown for voiceTwo
I like this in TabStaff, but I don't like in Staff *usually*.
The default behaviour in Staff is necessary when I have slurs
happening at the same time in the two voices.
So, if I don't have such a thing, I can put this in \score safely:
voiceOne \slurDown \upper
voiceTwo \slurUp \lower
[sorry for the confused explanation, read below and see attached images]
When slurs and stems point in the same direction, this would look not
very pleasant, I think, so
the slurs are moved over the stems.
Mmmmh...
The attached images explain better what I'm trying to achieve:
normal.png is the default behaviour
slurdown.png is what I'd like generally (but you can see the problem
of multiple slurs on two voices in the last bar of Staff.. in this
case I should use other settings, I think I know which ones)
In all the manuals I've checked slurs connect always note heads (not
stems).
There's a way to fix it?
You can insert \slurDown *after* \voiceOne in the normal staff, then
everything will be fine.
thanks, this works perfect
I should have remembered it... :-)
--
Federico Bruni | http://www.gnurag.net/blog/
LibrePlanet Italia
http://groups.fsf.org/wiki/LibrePlanetItalia