[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enhancement request: point-and-click for clefs
From: |
David Kastrup |
Subject: |
Re: Enhancement request: point-and-click for clefs |
Date: |
Tue, 13 Sep 2016 07:24:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Paul <address@hidden> writes:
> On 09/10/2016 07:54 PM, Simon Albrecht wrote:
>
>> Then I’d like if we don’t take that obstacle for granted. Why don’t
>> we have an event? I can imagine the reason: because the clef or bar
>> line isn’t actually a musical event, but only an element of
>> visualisation… as for the clef also because it mainly changes some
>> context properties… But either we be so pragmatic and make them be
>> Events nevertheless (maybe such as aren’t carried into Midi, or are
>> they?), or we need to ask: why does it need an event for
>> point-and-click?
>
> It always seemed odd to me that there wasn't a clef event. It would
> be nice to have point-and-click for clefs, but I can't claim to
> understand the larger implementation implications one way or another.
Clefs are incidental. If you have
phrase = { \clef "bass" ... }
<<
\new Staff { \clef "treble" ... \phrase \clef "treble" ... }
\new Staff { \clef "bass" ... \phrase \clef "bass" ... }
>>
then the second insertion of \phrase does not show repeated clefs. They
appear when at least one of a set of properties changes. Such changes
are detected at a time where the property-changing command itself is no
longer available.
I think that we did something for \time which is implemented in a
somewhat similar way.
--
David Kastrup