[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
add-grace-properties in TabVoice context
From: |
Marc Hohl |
Subject: |
add-grace-properties in TabVoice context |
Date: |
Fri, 03 Jul 2009 10:13:25 +0200 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090608) |
Hello,
I tried to make grace notes in tablature smaller and found the
function add-grace-properties in the lsr.
I tried the following:
[snip]
\version "2.13.1"
example = \relative c {
\grace e8 c4 d e f
\appoggiatura e8 c4 d e f
\acciaccatura e8 c4 d e f
}
\score {
<<
\new Staff {
\new Voice {
\clef "G_8"
\example
}
}
\new TabStaff {
#(add-grace-property 'TabVoice 'TabNoteHead 'font-size -4)
\new TabVoice {
\clef tab
\example
}
}
>>
}
[snip]
and it seems to work, but lilypond complains with
Programmierfehler: cannot find context:
Fortsetzung, die Daumen drücken
TabVoiceProgrammierfehler: cannot find context:
Fortsetzung, die Daumen drücken
TabVoiceVorverarbeitung der grafischen Elemente...
Solving 1 page-breaking chunks...[1: 1 pages]
The output is ok.
Now I have two questions:
1) Apparently I made some mistakes, but I don't understand the error
messages.
2) Can I automatize the function call so that the user doesn't have to call
add-grace-property in every new TabVoice?
I tried to put this in a layout block, but
\layout {
\context {
\TabStaff
#(add-grace-property 'TabVoice 'TabNoteHead 'font-size -4)
}
}
gives an error message.
Thank you in advance.
Marc
- add-grace-properties in TabVoice context,
Marc Hohl <=