On 5/28/09 7:22 AM, "Julian" <jul...@casadesus.com.ar> wrote:

>> But still not within the tablature staff
>> At the moment, I don't know how to manage this.
> 
> I found it,
> 
> <
>    % Dead Note
>    \tweak #'stencil #ly:note-head::print
>    \tweak #'glyph-name #"2cross"
>    \tweak #'style #'special
>    f'\1
>    % End of Dead Note
>    f\4
>> 4
> 
> Dead note is applied only to "f'\1" as we expect, and "X" is displayed on
> both,
> staff and tabStaff.
> 
> Now i don't have idea how to make it in a lilypond function :) to use
> \chordNoteDead instead of add all tweaks lines...
> however it don't matters, now we know that it is possible to show X in tab too
> by notes instead of chord.


Here's one way to do it:

deadNote =
#(define-music-function (parser location note) (ly:music?)
    (set! (ly:music-property note 'tweaks)
          (acons 'stencil ly:note-head::print
           (acons 'glyph-name "2cross"
            (acons 'style 'special (ly:music-property note 'tweaks)))))
    note)

{
  <f\4 \deadNote f'\1>
}


Marc, feel free to add this to tablature.ly if you want to.


HTH,

Carl




> 
> Thanks for your patience.
> 
> 
> 
> 



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to