[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Snippets in doc compile different from stand-alone
From: |
Carl Sorensen |
Subject: |
Re: Snippets in doc compile different from stand-alone |
Date: |
Fri, 10 Jul 2009 15:58:29 -0600 |
On 7/10/09 3:43 PM, "Graham Percival" <address@hidden> wrote:
> On Fri, Jul 10, 2009 at 03:37:36PM -0600, Carl Sorensen wrote:
>> Is there a different version of LilyPond called when make doc is running? I
>> can't figure out what the story is. Any clues would be appreciated.
>
> There's different formatting options.
It's not the different fomratting options that I'm wondering about.
Let me give you an example of what I mean.
The following snippet is in rhythms.itely:
When multiple voices are used the @code{Staff} context must be
specified if the beaming is to be applied to all voices in the
staff:
@lilypond[quote,verbatim,relative=2]
\time 7/8
% rhythm 3-1-1-2
% Context not specified - does not work correctly
% Because of autogenerated voices, all beating will
% be at beatLength (1 . 8)
\overrideBeamSettings #'Voice #'(7 . 8) #'end #'((* . (3 1 1 2)))
<< {a8 a a a16 a a a a8 a} \\ {f4. f8 f f f} >>
% Works correctly with context specified
\overrideBeamSettings #'Staff #'(7 . 8) #'end #'((* . (3 1 1 2)))
<< {a8 a a a16 a a a a8 a} \\ {f4. f8 f f f} >>
@end lilypond
The output is attached as from-docs.png
The snippet was then copied to a .ly file:
\relative c''{
\time 7/8
% rhythm 3-1-1-2
% Context not specified - does not work correctly
% Because of autogenerated voices, all beating will
% be at beatLength (1 . 8)
\overrideBeamSettings #'Voice #'(7 . 8) #'end #'((* . (3 1 1 2)))
<< {a8 a a a16 a a a a8 a} \\ {f4. f8 f f f} >>
% Works correctly with context specified
\overrideBeamSettings #'Staff #'(7 . 8) #'end #'((* . (3 1 1 2)))
<< {a8 a a a16 a a a a8 a} \\ {f4. f8 f f f} >>
}
When run from the command line, the output that results is attached as
FromCommandLine.png.
Note that the beaming in the second measure is different, which is the point
of the snippet. The one in the docs is wrong; the one from the command line
is correct. And I have no idea why they're different.
Thanks,
Carl
from-docs.png
Description: from-docs.png
FromCommandLine.png
Description: FromCommandLine.png
- Snippets in doc compile different from stand-alone, Carl Sorensen, 2009/07/10
- Re: Snippets in doc compile different from stand-alone, Graham Percival, 2009/07/10
- Re: Snippets in doc compile different from stand-alone,
Carl Sorensen <=
- Re: Snippets in doc compile different from stand-alone, Carl Sorensen, 2009/07/10
- Re: Snippets in doc compile different from stand-alone, John Mandereau, 2009/07/10
- Re: Snippets in doc compile different from stand-alone, Carl Sorensen, 2009/07/10
- Re: Snippets in doc compile different from stand-alone, John Mandereau, 2009/07/10
- Re: Snippets in doc compile different from stand-alone, Graham Percival, 2009/07/10
- Re: Snippets in doc compile different from stand-alone, John Mandereau, 2009/07/10
- Re: Snippets in doc compile different from stand-alone, Carl Sorensen, 2009/07/11
- Re: Snippets in doc compile different from stand-alone, Graham Percival, 2009/07/10
- Re: Snippets in doc compile different from stand-alone, Carl Sorensen, 2009/07/10
Re: Snippets in doc compile different from stand-alone, Neil Puttock, 2009/07/10