On Mon 11 May 2026 at 13:59:01 (+0200), David Kastrup wrote:
> Walt North <[email protected]> writes:
> 
> > I have a case where at times I want the notes to go up one octave and
> > other times not.  I was thinking I could use tags to accomplish this. 
> > But the tag seems to be ignored. The result always jumps an octave.
> >
> > I have tried the following combinations but I haven't hit on the right
> > way to do this.

> You are confused about the order of operations it would seem.  \relative
> converts the contained music to absolute music, taking note of things
> like \resetRelativeOctave and other stuff inside.
> 
> \keepWithTag removes some of the contained music.
> 
> Obviously you want to _first_ remove the tags you are not using, _then_
> convert the resulting relative music to absolute music.

Would it be worth adding a small example like this to the
Known issues and warnings   section of §22.2.2 Using tags,
because the first paragraph already there only warns
/against/ applying \relative after tagging.

\resetRelativeOctave has very little documentation, and
what there is doesn't suggest your use in a sequence of
"unanchored" pitches, ie mus = { … }.

  \resetRelativeOctave pitch (pitch) ⇒ music
    Set the octave inside a \relative section to pitch.

Cheers,
David.

Reply via email to