lilypond-user
[Top][All Lists]
Advanced

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

Re: alternate notes within a part


From: Valentin Petzel
Subject: Re: alternate notes within a part
Date: Sun, 09 Jan 2022 23:36:41 +0100

Hello David,

Much of what you’re describing should not happen. \keepWithTag and 
\removeWithTag remove the music before it is parsed.

It is true that using tags with relative music can be a bit messy, as 
depending on which part you remove the following music will change. You can 
circumvent this by putting your tagged music in absolute mode.

Can you send us an example of your problems to see where it may come from?

Cheers,
Valentin

Am Sonntag, 9. Jänner 2022, 23:05:15 CET schrieb David Zelinsky:
> I'm engraving a part that can be played either on cello or bassoon, but
> with several differennces for short sections:  e.g. a clef change for
> one and not the other; a different octave for a few measures; double
> stops or not.
> 
> I want to have just one version of the source, assigned to a variable
> (e.g. cello-bassoon-notes = {...} ), with the differences indicated by
> short tagged sections (like \tag #'cello {...} \tag #'bassoon {...} ),
> so that I can produce output for each instrument seperately from the
> same source.
> 
> There seem to be a couple of problems using tags like this.  First, it's
> kludgy because when the notes are parsed, Lilypond includes all notes
> from both tagged parts, and complains about bar check failures.  That
> doesn't really matter, since when the notes are used (as say
> \keepWithTag #'cello) it all comes out right.  And I can avoid the
> warnings if I tag full measures only.  But as I said, it's kludgy.
> 
> Worse is that a clef change in one tagged part affects all the
> subsequent music.  And similarly, in \relative mode, the tags are
> ignored when Lilypond determines the octave of following notes.
> 
> Is there a better way to accomplish what I'm trying to do?  Or do I
> really just need to maintain completely separate versions for the two
> instruments?
> 
> -David

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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