Quoting Graham Percival <[EMAIL PROTECTED]>:

> Quick question -- how can I have multiple translations on the same context?

\translator {
  \VoiceContext
  Fingering \override #'padding = #2.0
  Fingering \override #'font-relative-size = #1
}


> The following snippet only applies the second \translation.
> 
> ----
> \paper{
>       \translator { \VoiceContext Fingering \override #'padding = #2.0
> }
> \translator {
>               \VoiceContext Fingering \override #'font-relative-size = #1 }
> }

Yes - each translatordescription describes a new context - and if it has the
same name as a previous one then the previous is never seen.

> \translation {
>       \VoiceContext blah blah
>       \VocieContext blah blah
> }
> I get "error: parse error, unexpected TRANSLATOR_IDENTIFIER:"

Yes, \VoiceContext is defined in ly/engraver-init.ly.
Hopefully the definition should make it clear that it is a bad idea to repeat
\VoiceContext twice.

Generally it is a good idea to check definitions of the lilypond
macros/variables when you are in doubt of how to use them.

-Rune



_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user

Reply via email to