David Kastrup <[email protected]> schrieb:
>Urs Liska <[email protected]> writes:
>
>> David Kastrup <[email protected]> schrieb:
>>>Colin Tennyson <[email protected]> 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
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>
>>>Also, if you have something like
>>>
>>>\new StaffGroup
>>>{
>>>   << \key c\major { c' c' c' c' } >>
>>>}
>>>
>>>you'll likely be surprised by the results...
>>
>> Colin, your example works because you have exactly one music
>> expression inside the angled brackets.
>
>\addKey \staffOneNotes are _two_ music expressions.  I used exactly the
>same template for demonstrating things that don't work.
>
>> These let you enter multiple expressions that are interpreted in
>> parallel. And if there is just one expression inside it just does
>> nothing.
>
>But that's not what we had here.

Ok, sorry for not having looked close enough.


-- 
Urs Liska
openlilylib.org

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to