[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tablature.ly - please test and comment
From: |
Marc Hohl |
Subject: |
Re: tablature.ly - please test and comment |
Date: |
Thu, 28 May 2009 21:58:45 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090318) |
Julian schrieb:
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
Wow, great!
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...
Try
chordNoteDeadNote =
#(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)
it works exactly as your tweaks, within normal and tab staff.
test = \relative c {
< a-0 e'-2 a-3 c-1 e-0 >8
< a \chordNoteDeadNote e' \chordNoteDeadNote a \chordNoteDeadNote
c e >
< a e' a c e >
< a \chordNoteDeadNote e' \chordNoteDeadNote a \chordNoteDeadNote c e >
< a e' a c e>
< a \chordNoteDeadNote e' \chordNoteDeadNote a \chordNoteDeadNote c e >
< a e' a c e>
< a \chordNoteDeadNote e' \chordNoteDeadNote a \chordNoteDeadNote c e >
< a e' a c e >1
}
\score {
<< \new Staff { \clef "G_8" \test }
\new TabStaff {\clef "moderntab" \test }
>>
}
I am not sure about the name - I think it should represent the fact that
these functions
are to be used inside a chord construct < ... >.
Greetings
Marc
however it don't matters, now we know that it is possible to show X in tab too
by notes instead of chord.
Thanks for your patience.
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
- Re: tablature.ly - please test and comment, (continued)
Re: tablature.ly - please test and comment, Julian, 2009/05/25
- Re: tablature.ly - please test and comment, Carl D. Sorensen, 2009/05/25
- Re: tablature.ly - please test and comment, Julian, 2009/05/26
- Re: tablature.ly - please test and comment, Marc Hohl, 2009/05/27
- Re: tablature.ly - please test and comment, Julian, 2009/05/27
- Re: tablature.ly - please test and comment, Marc Hohl, 2009/05/27
- Re: tablature.ly - please test and comment, Julian, 2009/05/28
- Re: tablature.ly - please test and comment,
Marc Hohl <=
- Re: tablature.ly - please test and comment, Julian, 2009/05/28
- Re: tablature.ly - please test and comment, Carl D. Sorensen, 2009/05/28
- Re: tablature.ly - please test and comment, David Stocker, 2009/05/28
- Re: tablature.ly - please test and comment, Carl D. Sorensen, 2009/05/28
- Re: tablature.ly - please test and comment, Marc Hohl, 2009/05/29
- Re: tablature.ly - please test and comment, Carl D. Sorensen, 2009/05/29
- Re: tablature.ly - please test and comment, Marc Hohl, 2009/05/29
Re: tablature.ly - please test and comment, Grammostola Rosea, 2009/05/29
Re: tablature.ly - please test and comment, Julian, 2009/05/28
Re: tablature.ly - please test and comment, Marc Hohl, 2009/05/29