[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NEWS source typo: \override NoteHead #'duration-log = 1
From: |
Trevor Bača |
Subject: |
Re: NEWS source typo: \override NoteHead #'duration-log = 1 |
Date: |
Sun, 19 Nov 2006 09:27:53 -0600 |
On 11/19/06, John Mandereau <address@hidden> wrote:
Trevor Bača wrote:
> Minor point that the NEWS source for the feature reads
>
> \override NoteHead #'duration-log = 1
>
> and should instead read
>
> \override NoteHead #'duration-log = #1
Hi Trevor,
I've just tested the snippet both with and without a hash before the
"1". In fact, the hash isn't required here before the number, so that's
not a typo. Someone who knows more about the parser than me may tell you
why.
Hi John,
Well this is odd. Take a look at this one:
%%% BEGIN %%%
\version "2.10.0"
\new Staff \with {
\override NoteHead #'duration-log = 1
} {
c'4
}
%%% END %%%
GNU LilyPond 2.10.0
Processing `349.ly'
Parsing...
349.ly:4:44: error: syntax error, unexpected UNSIGNED, expecting
SCM_IDENTIFIER or SCM_TOKEN
\override NoteHead #'duration-log =
1
349.ly:5:10: error: errors found, ignoring music expression
}
{
error: failed files: "349.ly"
The syntax error goes away iff we put the hash back in.
But the hash can safely go away outside the \with block:
%%% BEGIN %%%
\version "2.10.0"
\new Staff {
\override NoteHead #'duration-log = 1
c'4
}
%%% END %%%
That one works perfectly.
How odd. Must be something about the parser being less tolerant inside
the \with block or something ...
Erik?
--
Trevor Bača
address@hidden