2009/7/3 Marc Hohl <m...@hohlart.de>: > 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]
Hmm, some rather poor formatting for this programming error: the context string is further down the log since it's not part of the error string. > 1) Apparently I made some mistakes, but I don't understand the error > messages. The error comes from the Voice context in your snippet, since it can't find a TabVoice to apply the setting to. Try this instead: #(add-grace-property 'Voice 'TabNoteHead 'font-size -4) Because TabVoice is an alias of Voice, the 'font-size setting will be applied correctly, but ignored in any Voice contexts. > 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. You can't put functions inside a context definition. I'd suggest making this part of the default grace settings by adding the override directly to graceSettings and make-voice-props-set. Regards, Neil _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user