[Top][All Lists]

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

Re: convert-ly produces invalid output for KeySignature.c0-position

From: Pavel Roskin
Subject: Re: convert-ly produces invalid output for KeySignature.c0-position
Date: Wed, 19 Jun 2013 03:45:47 -0400
User-agent: Internet Messaging Program (IMP) H3 (4.1.4)

Quoting David Kastrup <address@hidden>:

Small wonder.  I thought our default use of symbols matched our naming
rules, but that one's an exception.

We can make an exception for convert-ly here, but that's not a
satisfactorily final solution.

I propose renaming it.  Suggestions?

I'm fine with renaming. We have Staff.middleCPosition. Perhaps the same name could be used in KeySignature.

On the other hand, we don't care where the _middle_ C is positioned. We only need to know where _some_ C is positioned to decide how to print the key signature. Then "middle" could be dropped.

By the way, setting KeySignature.c0-position with \override doesn't work. I had to resort to setting it in Scheme:

\once \override Staff.KeySignature #'stencil =
  #(lambda (grob)
    (ly:grob-set-property! grob 'c0-position 6)
    (ly:key-signature-interface::print grob))

Full example here:

Perhaps c0-position can only be set together with other properties to have an effect. Or maybe it's not meant to be set. But I need to change it when I want the key signature to correspond to the staff clef that is not in effect on the first note (the staff clef is bass, and the first note is after the treble clef).

Pavel Roskin

reply via email to

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