[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Transparency issue with TabStaff ?
From:       Steve Moreau <moreau.steve () gmail ! com>
Date:       2020-04-27 15:48:13
Message-ID: CAD9K4eB=q4K4uNno6xg2BdB0VSm5knzBa7DUoeO9i4ptOFofJg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Awesome, thanks Pierre! It worked.
Here is where I put it in my .ly file if anyone needs it:

\layout {
...
  \context {
    \TabStaff
    \clef moderntab
...
    \override TabNoteHead.whiteout = ##f
  }
}

Have a nice day,
Steve


Le lun. 27 avr. 2020 Ã  17:25, Pierre Perol-Schneider <
pierre.schneider.paris@gmail.com> a écrit :

> Hi Steve and welcome to the Pond.
> \override TabStaff.TabNoteHead.whiteout = ##f
> should do th trick.
> See for more details:
> http://lilypond.org/doc/v2.19/Documentation/internals/tabnotehead
> HTH, cheers,
> Pierre
>
>
> Le lun. 27 avr. 2020 Ã  17:13, Steve Moreau <moreau.steve@gmail.com> a
> écrit :
>
>> Hi,
>>
>> I'm new to the list, so first thanks for the good job :)
>> I tried to export a .ly file to a transparent PNG.
>> Everything seems fine except for the tab number of the TabStaff (which
>> has a white background, see the image below):
>>
>> [image: image.png]
>>
>> Is it a wrong configuration on my side or a limit of the current code?
>> I'm still digging to change the font as well, so maybe I'll find it in
>> the documentation later.
>> But just in case nobody notices it.
>> Have a nice day
>>
>> $ lilypond --version
>> GNU LilyPond 2.20.0
>>
>> $ lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts
>> -dpixmap-format=pngalpha --png test.ly
>>
>> As for the ly file it is one the sample of the documentation, adapted a
>> bass.
>> I guess the relevant part are
>>
>> mynotes = {
>>   e f g c' | \noBreak
>>   e'4 g' b' c'' | \break
>>   e
>> }
>> \new TabStaff {
>>   #(define custom-tuning #{ \stringTuning <e, a d' g'> #})
>>   \set Staff.stringTunings = #custom-tuning
>>   \mynotes
>> }
>>
>>
>>

[Attachment #5 (text/html)]

<div dir="ltr"><div>Awesome, thanks Pierre! It worked.</div><div>Here is where I put \
it in my .ly file if anyone needs it: <br></div><div><pre \
style="background-color:rgb(43,43,43);color:rgb(169,183,198)">\layout {<br>...<br>  \
\context {<br>    \TabStaff<br>    \clef moderntab<br>...<br>    \override \
TabNoteHead.whiteout = ##f<br>  }<br>}</pre></div><div></div><div>Have a nice \
day,</div><div>Steve</div><div><br></div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">Le  lun. 27 avr. 2020 Ã   17:25, Pierre Perol-Schneider \
&lt;<a href="mailto:pierre.schneider.paris@gmail.com">pierre.schneider.paris@gmail.com</a>&gt; \
a écrit  :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi \
Steve and welcome to the Pond.</div><div>\override TabStaff.TabNoteHead.whiteout = \
##f</div><div>should do th trick.</div><div>See for more details: <a \
href="http://lilypond.org/doc/v2.19/Documentation/internals/tabnotehead" \
target="_blank">http://lilypond.org/doc/v2.19/Documentation/internals/tabnotehead</a></div><div>HTH, \
cheers,</div><div>Pierre<br></div><div><br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">Le  lun. 27 avr. 2020 Ã   \
17:13, Steve Moreau &lt;<a href="mailto:moreau.steve@gmail.com" \
target="_blank">moreau.steve@gmail.com</a>&gt; a écrit  :<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div \
dir="ltr"><div>Hi,</div><div><br></div><div>I&#39;m new to the list, so first thanks \
for the good job :)<br></div><div>I tried to export a .ly file to a transparent \
PNG.</div><div>Everything seems fine except for the tab number of the TabStaff (which \
has a white background, see the image below):</div><div><br></div><div><img \
src="cid:ii_k9ilzu5f0" alt="image.png" width="262" \
height="45"></div><div><br></div><div>Is it a wrong configuration on my side or a \
limit of the current code?</div><div>I&#39;m still digging to change the font as \
well, so maybe I&#39;ll find it in the documentation later.</div><div>But just in \
case nobody notices it.</div><div>Have a nice day<br></div><div><br></div><div><span \
style="font-family:monospace">$ lilypond --version<br>GNU LilyPond \
2.20.0</span></div><div><span \
style="font-family:monospace"><br></span></div><div><span \
style="font-family:monospace">$ lilypond -dbackend=eps -dno-gs-load-fonts \
-dinclude-eps-fonts -dpixmap-format=pngalpha --png <a href="http://test.ly" \
target="_blank">test.ly</a></span></div><div><br></div><div>As for the ly file it is \
one the sample of the documentation, adapted a bass.<br></div><div>I guess the \
relevant part are</div><div><br></div><div><pre \
style="background-color:rgb(43,43,43);color:rgb(169,183,198)">mynotes = {<br>  e f g \
c&#39; | \noBreak<br>  e&#39;4 g&#39; b&#39; c&#39;&#39; | \break<br>  e<br>}<br>\new \
TabStaff {<br>  #(define custom-tuning #{ \stringTuning &lt;e, a d&#39; g&#39;&gt; \
#})<br>  \set Staff.stringTunings = #custom-tuning<br>  \
\mynotes<br>}</pre></div><div><br></div></div> </blockquote></div>
</blockquote></div>


["image.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic