Re: [tablatures] hammer on and pull off |
[ Thread Index |
Date Index
| More lilynet.net/tablatures Archives
]
- To: tablatures@xxxxxxxxxxx
- Subject: Re: [tablatures] hammer on and pull off
- From: Marc Hohl <marc@xxxxxxxxxx>
- Date: Thu, 27 Aug 2009 16:22:40 +0200
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1251382962; l=2051; s=domk; d=hohlart.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Subject:To:MIME-Version:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=PYSAsJfpHD4g0kbXIh2ofoZom2s=; b=L+MTa4A56nEDbRx+IS51Y/NtMxlGe3bLgcrJWkPLuo9axmvx83humUHTy1JSabYNL4E OoZ5g+XJ6nnMc9DzCYKifDJ+vJBQUMTAY86q7JkIr7bbelCazDl8Y/hBotWnZj6HY++j8 b6je7Yp0CfzI0oopkg5NwnnGLalfeBpNaXY=
Federico Bruni schrieb:
Marc Hohl wrote:
Federico Bruni schrieb:
[...]
I suggest you to add in the example two hammeron/pulloff happening
at the same time in two different voices.
In this case, I think slurs in the upper voice should point up (i.e.
over the numbers) and slurs in lower voice point down (under the
numbers).
I don't know if LilyPond is able to adjust this automatically or if
you have to add some code to fix this behaviour..
Have you some examples where this would be needed? It is easier for
me to adapt real-life situations
than to think of all possible situations that may come across...
You find attached an example file.
I've done something wrong because even in the first bar - where the
music is monophonic - slurs are far from the numbers.
No, you did everything correctly. The main problem here is that you use
in your file
the commands \voiceOne and \voiceTwo. These commmands override the stem and
slur directions which are set suitable before. (The stems are invisible,
but still there,
so the slurs are drawn /over/ the stems and are therefore too far apart).
\new TabStaff = "tab" <<
\context TabVoice = "upper tab" { \clef "moderntab" \voiceOne \upper }
\context TabVoice = "lower tab" { \clef "moderntab" \voiceTwo \lower }
>>
You can use
\new TabStaff = "tab" <<
\context TabVoice = "upper tab" { \clef "moderntab" \voiceOne \stemDown \slurUp \upper }
\context TabVoice = "lower tab" { \clef "moderntab" \voiceTwo \stemUp \slurDown \lower }
>>
as a workaround; the slurs arching under are now too far away; my first attempt isn't aware
of the direction of the slur; I'll try to fix that soon - afterwards, I will try to find a solution for
the \voiceOne / \voiceTwo settings to get rid of the \stem... \slur... commands.
Thank you for your investigations!
Marc
How can I fix that?
Thanks in advance
------------------------------------------------------------------------