lilypond-user
[Top][All Lists]
Advanced

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

Re: Enharmonically override key signature


From: Craig Dabelstein
Subject: Re: Enharmonically override key signature
Date: Tue, 30 Mar 2021 09:42:33 +1000

Thanks Kieren. That worked for my over-simplified MWE. But here's my real-world problem with multiple key changes. There are only some that need to be over-ridden enharmonically. See bar 2 of the Alto Sax where I'd like to override this key signature without changing the whole global setup. Is this possible?

All the best,

Craig

%%%%%%%%%%%

\version "2.20.00"
\language "english"

\include "enharmonic.ly"

fluteNotes = { \repeat unfold 3 { c'4 d' e' f' } }

altosaxNotes = \transpose c' ef
{ \repeat unfold 3 { c'4 d' e' f' } }

global = {
  \key bf \major
  s1
  \key b \major
  s1
  \key ef \major
  s1
}

\score {
  <<
    \new Staff {
      \set Staff.instrumentName = "Flute"
      <<
        \global
        \fluteNotes
      >>
    }
    \new Staff {
      \set Staff.instrumentName = "Alto Sax"
      \transpose ef c'    
      <<
        \global
        \altosaxNotes
      >>
      }
  >>
}

%%%%%%

 
Craig Dabelstein
Owner, Maxime's Music
19 Twelfth Ave, Kedron QLD 4031
Maxime's Music arrow

On Tue, 30 Mar 2021 at 09:23, Kieren MacMillan <kieren_macmillan@sympatico.ca> wrote:
Hi Craig,

> In this snippet, how can I override the Alto Sax key signature so it displays as A-flat major instead of G-sharp major?

\transpose ds c'

But then you’ll probably want the old “naturalize notes” snippet (wherever that is…).

Hope that helps!
Kieren.
________________________________

Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kieren@kierenmacmillan.info


reply via email to

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