%{
The main issue here is that you are using \relative in a lax way.
Which is to say, in your example,
the overall _expression_ uses relative,
but you don't specify an octave.
This means you are using the default.
Which may be fine, but it can help to be explicit,
and this also gives you a way to fix octaves quickly.
Next, the _expression_ you are trying to transpose
is also not clearly defined what octave it is in.
You are relying on it matching the octave of the
previous _expression_.
Best practice for anything being sent to a function
is to define the octave of the music _expression_,
and likewise the duration of the first note.
So, this:
\relative {
c'4 d e f g a b c
\transpose as bf
{cs, ds es fs gs as bs cs}
}
Would be more carefully notated as:
\relative c' {
c4 d e f g a b c
\transpose as bf \relative c' {
cs4 ds es fs gs as bs cs
}
}
The problem goes away when you follow this practice.
This will also fix many other oddities when using \relative in other contexts.
%}
\version "2.22.0"
\language "english"
\relative c' {
c4 d e f g a b c
\mark "original without transpose"
{
cs, ds es fs gs as bs cs
}
}
\relative c' {
c4 d e f g a b c
\mark "best practice without transpose"
\relative c' {
cs4 ds es fs gs as bs cs4
}
}
\relative c' {
c4 d e f g a b c
\mark "original, with tranpose"
\transpose as bf {
cs, ds es fs gs as bs cs
}
}
\relative c' {
c4 d e f g a b c
\mark "best practice with transpose"
\transpose as bf \relative c' {
cs4 ds es fs gs as bs cs
}
}
Elaine Alt
415 . 341 .4954 "Confusion is highly underrated"
elaine@flaminghakama.com-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-