lilypond-user
[Top][All Lists]
Advanced

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

Re: Moving /downbow & /upbow to the tablature


From: Jean Abou Samra
Subject: Re: Moving /downbow & /upbow to the tablature
Date: Thu, 30 Jun 2022 22:20:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0



Le 30/06/2022 à 22:11, Viktor Mastoridis a écrit :

    the reason for why you do not get these above the tablature is
    because the
    context definition for TabStaff (in ly/engraver-init.ly
    <http://engraver-init.ly/>) explicitely sets a few
    stencils to #f. So to get Scripts in your TabStaff you’d want to do

    melody = {c'2\downbow d'\upbow}
    <<
       \new Staff \melody
     \new TabStaff \with {
       \revert Script.stencil
     } \melody
     >>

    Cheers,
    Valentin

Ah, I was looking for that formula!
I tried '\undo \hide Script' and similar, but this is a bit above my paygrade:-)

Thank you so much, Valentin.
---
<https://patreon.com/mastoridis>Viktor


You were almost there!

\undo \omit Script

Since removing the scripts is done with the equivalent of \omit, you need to undo an \omit, not a \hide. See
https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objects#removing-the-stencil
for the difference. You can notice the stencil overrides at
https://lilypond.org/doc/v2.23/Documentation/internals/tabstaff

Best,
Jean





reply via email to

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