lilypond-user
[Top][All Lists]
Advanced

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

Understanding how \tag works in \relative pitched music


From: Guy Stalnaker
Subject: Understanding how \tag works in \relative pitched music
Date: Fri, 4 Aug 2017 15:41:34 -0500

All,

Why is this output being created? I would expect to get exactly the same pitches on all three staffs, but since not, my expectations are obviously wrong.

%% SNIPPET %%
​straightMusic = \relative c' {
  a2 _\markup { no tag, relative pitch } cis4 e |
  fis1 |
}

clarinetOneMusic = \relative c' {
  \set Score.markFormatter = #format-mark-box-numbers
  \tag #'mark { \mark \default a2 _\markup { tag mark, relative pitch } cis4 e | }
  \tag #'no-mark { a2 _\markup { tag no-mark, relative pitch } cis4 e | }
  fis1 |
}

\score {
  <<
    \new Staff {
      \transpose bes c' \straightMusic
    }
    \new Staff {
      \keepWithTag #'mark
      \transpose bes c' \clarinetOneMusic
    }
    \new Staff {
      \keepWithTag #'no-mark
      \transpose bes c' \clarinetOneMusic
    }
  >>
  \layout { }
}
%% SNIPPET %%​

Inline image 1


Guy Stalnaker
address@hidden

reply via email to

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