[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Learning LilyPond, comments invited
From: |
David Kastrup |
Subject: |
Re: Learning LilyPond, comments invited |
Date: |
Fri, 03 Jan 2014 11:49:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Colin Tennyson <address@hidden> writes:
> The LillyPond parser accepts this, there is no error, and the score _is
> rendered correctly_.
> But as you point out:
> this:
> << \addKey \staffOneNotes >>
> is better written as:
> { \addKey \staffOneNotes }
>
>
> While the { ... } notation is better, LilyPond accepts both: { \addKey
> \staffTwoNotes } and << \addKey \staffTwoNotes >>. In this case both are
> rendered the same.
But that's not a given. Take, for example, the output of
addKey = { \key g \major \time 4/4 }
staffOneNotes = { \grace { d'16 g' b' } d''8 8 8 8 fis'8 8 g'4 }
\score {
\new StaffGroup <<
\new Staff \new Voice = "staffOne" << \addKey \staffOneNotes >>
\new Staff \new Voice = "staffOne" { \addKey \staffOneNotes }
>>
}
Also, if you have something like
\new StaffGroup
{
<< \key c\major { c' c' c' c' } >>
}
you'll likely be surprised by the results...
--
David Kastrup
- Re: Learning LilyPond, comments invited, (continued)
- Re: Learning LilyPond, comments invited, Carl Sorensen, 2014/01/02
- Re: Learning LilyPond, comments invited, Colin Tennyson, 2014/01/03
- Re: Learning LilyPond, comments invited, Urs Liska, 2014/01/03
- Re: Learning LilyPond, comments invited, Alex Loomis, 2014/01/03
- Re: Learning LilyPond, comments invited, Colin Tennyson, 2014/01/03
- Re: Learning LilyPond, comments invited, Noeck, 2014/01/03
- Re: Learning LilyPond, comments invited, karl, 2014/01/04
- Re: Learning LilyPond, comments invited, Colin Tennyson, 2014/01/03
- Re: Learning LilyPond, comments invited,
David Kastrup <=
- Re: Learning LilyPond, comments invited, Urs Liska, 2014/01/03
- Re: Learning LilyPond, comments invited, David Kastrup, 2014/01/03
- Re: Learning LilyPond, comments invited, Urs Liska, 2014/01/03
- Re: Learning LilyPond, comments invited, Colin Tennyson, 2014/01/03
- Re: Learning LilyPond, comments invited, Eluze, 2014/01/03
- Re: Learning LilyPond, comments invited, David Kastrup, 2014/01/03