[frogs] Re: Why are book blocks objects but not contexts in Lilypond? |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Ian Hulin <ian@xxxxxxxxxxxx>
- Subject: [frogs] Re: Why are book blocks objects but not contexts in Lilypond?
- From: Han-Wen Nienhuys <hanwenn@xxxxxxxxx>
- Date: Mon, 28 Sep 2009 10:46:39 -0300
- Cc: Lilypond Frogs List <frogs@xxxxxxxxxxx>, "lilypond-devel@xxxxxxx" <lilypond-devel@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=UqafsOh6Szb7YrwrxyZrdMWe9Qd6wMOEMfnoTDtGvgs=; b=XsUkb/9c5/RaKM+mrg0kn9F0mv5qZj+kLDHC/NhRHIGAagsp0dt7Z4uxjS2TmiXDMN JkLmSTOrNAiER1WHH4aRt8jBQgtO3K+PGe7GYB6wdYxFy6FNxy/vIcwt8wp30OhOlPvK HRVycIPfzTvUuNRxbQ5fe9mHGDrTUjvlbgQLE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=Mh3ln0QaI/w9BVLkp0fV8ippW7eWxJbVrWkErLiOJVt7uEQfzYdxYEvyj3NAgaEJMA L3rqDSy8ku+W4EhLK4JTsXAhsCrxolMVpWphR8XoHI2/SEHihgJlbS1d/8/PUWHJrqrC N7jM4ogCkwj9kEHJelDedXg1bpqVsYRJZYIJk=
On Sun, Sep 27, 2009 at 6:16 PM, Ian Hulin <ian@xxxxxxxxxxxx> wrote:
> I'm looking at this in terms of design inconsistencies rather than
> documentation issues.
>
> I've been looking around at the code and documentation regarding contexts
> and noted these statements:
>
> LM 3.3.2 says
>
> "Note that there is no \new Score command;
> the single top-level Score context is introduced
> with \score."
This is not correct, technically. The \score construct groups a music
expression together with an output def (either \midi or \layout).
Score contexts are created implicitly when the interpretation of that
music expression starts.
> So, is the top-level block in a lilypond input file implicitly a book or a
> score?
> Which is right, and do all places in the code make the correct assumption
> consistently?
The behavior of this is softcoded in the function
default-toplevel-score-handler.
I think the default is to collect all scores together and join them in a \book.
--
Han-Wen Nienhuys - hanwen@xxxxxxxxx - http://www.xs4all.nl/~hanwen
---
----
Join the Frogs!