Re: can I force the KeySignature to display when a new clef requires it?

2015-05-06 Thread Kieren MacMillan
Hi Klaus,

> I don't know if there is an easier/better way […]
> \once \override Score.KeySignature.break-visibility = #'#(#f #t #t)

That’s perfect, all by itself!
And I can do this using the edition-engraver, which was my hope.

I was certain I had tried this before, but apparently not.
(Maybe later I will write a wrapper function to combine the \clef command with 
this forced visibility.)

Sorry for the noise. Thanks for the answer.

Cheers,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: can I force the KeySignature to display when a new clef requires it?

2015-05-06 Thread Klaus Blum
Hi Kieren, 

I don't know if there is an easier/better way, but you could try:

% -
\version "2.18.2"

showKey = {
  % Define the order of barline, clef, key signature etc.:
  \once \override Score.BreakAlignment #'break-align-orders =
  #'  #((left-edge   cue-end-clef   breathing-sign   staff-bar   clef
  cue-clef   key-cancellation   key-signature   ambitus
  time-signature   custos)
(left-edge   staff-bar   cue-end-clef   breathing-signclef
  cue-clef   key-cancellation   key-signature   ambitus
  time-signature   custos)
(left-edge   breathing-sign   staff-bar   clef   key-cancellation
  key-signature   ambitus   time-signature   cue-clef   custos))
  % make key signature visible:
  \once \override Score.KeySignature.break-visibility = #'#(#f #t #t)
}

\relative c' {
  \key d \major
  d2 d
  \clef percussion
  d2 d
  \clef treble
  \showKey
  d2 d
  \clef percussion
  d2 d
}
% -

Maybe it's even possible to change the spacing, similar to this:
http://www.lilypond.org/doc/v2.18/Documentation/notation-big-page.de.html#manual-repeat-marks

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/can-I-force-the-KeySignature-to-display-when-a-new-clef-requires-it-tp176130p176228.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


can I force the KeySignature to display when a new clef requires it?

2015-05-05 Thread Kieren MacMillan
Hi all,

Yet another situation (see thread 
http://lists.gnu.org/archive/html/lilypond-user/2015-04/msg00274.html) where I 
want to force a grob to appear, but can’t seem to find a way to do it…

I have a percussion staff containing music for a single player who switches 
between pitched and unpitched instruments. Gould confirms my intuition/desire 
in this case: “A key signature must be added if a treble or bass clef is 
introduced for a new instrument after a non-pitched percussion clef” (pg. 276).

However, while I can easily \hide (or \omit) the KeySignature when the 
instrument is unpitched, I can’t seem to force the KeySignature to appear when 
the clef changes to a “pitched clef”. As with the thread mentioned above, I’d 
rather not add a \key \default to the content, since this is a 
presentation-layer issue that I would, if possible, prefer to solve in the 
presentation (edition-engraver) layer.

Any hints on how I can do this would be appreciated.

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user