Yes - just to confirm that the tags were exactly what I needed. Here's
the sort of thing I wanted to do:
highClef =
{
\tag #'cello { \clef "tenor" }
\tag #'gamba { \clef "alto" }
}
dots = \relative c
{
\clef "bass"
g'4 a b r
\highClef
d4 cis d r
\clef "bass"
g,1
}
\book
{
\score { \keepWithTag #'gamba \dots }
\score { \keepWithTag #'cello \dots }
}
It works like a charm. Big thank-you from me.
/Christopher/.
On 2012-05-16 09:30, Christopher Webster wrote:
Thank you! Of your three proposed solutions, the one with tags looks
like the winner. I didn't know about tags - they look ideally suited.
A feature of your first solution which I would have hoped to avoid is
that you do seem to have duplicated notation - the "s1*3" and the
"s1*2" - in the source. Or did I misunderstand what you were suggesting?
And the feature of the third solution which I would have hoped to
avoid is that I would need to edit and re-process the input to get the
output with the other set of clefs. I was looking for a solution in
which one input, processed once, would produce both outputs.
But the tags - they look just right! I'll try those.
Many thanks again
/Christopher/.
On 2012-05-16 09:04, Janek Warchoł wrote:
On Wed, May 16, 2012 at 8:53 AM, Christopher Webster
<[email protected]> wrote:
What's the most elegant way in which I can enter the notes just once, but
generate two output scores - one with bass and tenor clefs, the other with
bass and alto clefs?
what about separate voices for clefs? something like:
<<
{ music }
{ \clef bass s1*3 \clef alto s1*2 }
%{ \clef bass s1*3 \clef tenor s1*2 }
you could also try tags
http://lilypond.org/doc/v2.14/Documentation/notation/different-editions-from-one-source#using-tags
Or simply store the clef in a variable - that's probably the simplest method:
myclef = { \clef alto } % or \clef tenor
{ \clef bass c c \myclef f' f' }
hope this helps,
Janek
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user