[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Showing instrument name and correct clef with cue notes
From: |
Simon Bailey |
Subject: |
Re: Showing instrument name and correct clef with cue notes |
Date: |
Fri, 15 Feb 2008 13:31:33 +0100 |
hi,
i remembered that there was an instrumentCueName property defined at
some point, and have extended the solution a bit more.
On Feb 15, 2008, at 9:57 AM, Simon Bailey wrote:
<<<
tec = { \once \override Staff.Clef #'font-size = #-3 \clef tenor }
bc = { \once \override Staff.Clef #'font-size = #-3 \clef bass }
%% Trombone 3 preQuote setup
tIIIpq = {
\set fontSize = #-3
\bc
\set Voice.instrumentCueName = "Trbn. III"
}
second = \relative c' {
[...]
\tag #'cued { \cueDuring #"trbnIIIquote" #1
{ \tIIIpq R1*3 \tec }}
\tag #'uncued { R1*3 }
[...]
}
trbnIIscore = \keepWithTag #'uncued \second
trbnII = \simultaneous {
\new Voice = "cue" { \voiceOne \smaller \skip 1*58 }
\new Voice \keepWithTag #'cued \second
}
>>>
the rest stays the same.
you could probably create a scheme function that takes 4 parameters,
quoteClef, originalClef, instrumentCueName and music and just use that
in the music block of the \cueDuring command, resulting in something
like:
\tag #'cued { \cueDuring #"trbnIIIquote" #1 { \quoteMe #"bass"
#"tenor" #"Trbn. 3" {R1*3} } }
\tage #'uncued { R1*3 }
which would mean you wouldn't have to define a preQuote command for
each instrument you're using.
hope that helps, regards,
sb
--
Simon Bailey
Systems Administrator
Institut fuer Informatik
Universitaet Innsbruck
Technikerstrasse 21a/2
A-6020 Innsbruck
Tel: +43 (0) 512 507 - 6433
Mob: +43 (0) 664 812 5267
Fax: +43 (0) 512 507 - 2887
http://informatik.uibk.ac.at/