lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisible notes, Scheme contexts


From: Nicolas Sceaux
Subject: Re: Invisible notes, Scheme contexts
Date: Fri, 16 Dec 2005 18:28:31 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

Karl Hammar <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]