Karl Hammar <[EMAIL PROTECTED]> writes:
> Why not make a global.ly with:
> %clefae = { \clef "treble_8" }
> clefae = { \clef bass }
>
> And in the score you do something like Score.01.ly:
> ...
> \include "global.ly"
> \include "Music.01.ly"
> ...
> \new Lyrics \lyricsto vspAA \lspAA
> \new Staff \context Voice = vaeAA {
> \set Staff.instrument = \markup { "Aeneas" }
> \set Staff.instr = \markup { "Ae" }
> { \keyAA \clefae \aeAA }
> }
> ...
I've indeed done something like that. I defined a music function per
character, setting the clef and a possible transposition, depending on a
state variable.
tolomeo = #(def-music-function (parser location music) (ly:music?)
(if (*tolomeo-baryton*)
#{ \clef bass \notemode { \transpose c c, $music } #}
#{ \clef alto $music #}))
cornelia = #(def-music-function (parser location music) (ly:music?)
(if (*cornelia-g-clef*)
#{ \clef treble $music #}
#{ \clef alto $music #}))
nicolas
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user