[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Switcing accidental style doesn't always work
From: |
Dmytro O. Redchuk |
Subject: |
Re: Switcing accidental style doesn't always work |
Date: |
Thu, 7 Jul 2011 08:54:20 +0300 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon 04 Jul 2011, 18:20 Ole Vedel Villumsen wrote:
> > I'm not top posting.
>
> In a piano composition I chose #(set-accidental-style 'piano-cautionary), but
> a
> few of the reminders (cautionary accidentals) seemed more confusing than
> helpful. I thought I could switch to 'default. I could, it worked; but then I
> couldn't switch back to 'piano-cautionary again.
>
> Example:
>
> \version "2.14.1"
>
> \relative c' {
> \time 4/4
>
> #(set-accidental-style 'piano-cautionary)
> gis'1 g % gives natural in brackets as expected
> #(set-accidental-style 'default)
> dis d % no accidental before d; as expected
> #(set-accidental-style 'piano-cautionary)
> ais' a % expected natural in brackets before a, didn't get
> }
This way it works:
\relative c' {
\time 4/4
#(set-accidental-style 'piano-cautionary 'Staff)
gis'1 g
#(set-accidental-style 'default 'Staff)
dis d
#(set-accidental-style 'piano-cautionary 'Staff)
ais' a
}
And it seems to me, it should work exactly this way?
NR says:
% -----------------8<----------------------
This function is called as follows:
\new Staff <<
#(set-accidental-style 'voice)
{ … }
>>
The accidental style applies to the current Staff by default [...]
% -----------------8<----------------------
So, it it called "at Staff level", or so.
I don't know why it works with 'default in your sample, thought.
I can be wrong; let's discuss more before submitting an issue report.
--
Dmytro O. Redchuk
Bug Squad
"Easy to use" is easy to say.
--Jeff Garbers