[Top][All Lists]
[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
- Re: Invisible notes, Scheme contexts, (continued)
- Re: Invisible notes, Scheme contexts, Han-Wen Nienhuys, 2005/12/13
- Re: Invisible notes, Scheme contexts, Nicolas Sceaux, 2005/12/13
- Re: Invisible notes, Scheme contexts, Erik Sandberg, 2005/12/14
- Re: Invisible notes, Scheme contexts, Trevor Bača, 2005/12/14
- Music function arguments, Han-Wen Nienhuys, 2005/12/14
- Re: Music function arguments, Trevor Bača, 2005/12/14
- Re: Invisible notes, Scheme contexts, Henrik Frisk, 2005/12/15
- Re: Invisible notes, Scheme contexts, Mats Bengtsson, 2005/12/15
- Re: Invisible notes, Scheme contexts, Nicolas Sceaux, 2005/12/15
- Re: Invisible notes, Scheme contexts, Karl Hammar, 2005/12/16
- Re: Invisible notes, Scheme contexts,
Nicolas Sceaux <=
- Re: Invisible notes, Scheme contexts, Syntax, Arno Waschk, 2005/12/15
- Re: Invisible notes, Scheme contexts, Jonatan Liljedahl, 2005/12/13
- Re: Invisible notes, Scheme contexts, Mats Bengtsson, 2005/12/14
- Re: Invisible notes, Scheme contexts, Andrzej Kopec, 2005/12/14