Hallo Eugenio,
Ich merke, ich muss die Dokumentation (Kontexte) noch einmal genau anschauen. Da ist anscheinend eine Lücke
ich habe mal die gesamte Doku durchsucht.
Mir deucht die Lücke ist eher in der Doku!
"Normale" DokuIn der "normalen" Doku, d.h.: LM, NR, Snippets kommt
\new Score genau
einmal vor:
http://lilypond.org/doc/v2.17/Documentation/learning/creating-contexts.de.htmlIch zitiere (dt. Übersetzung):
Achtung: Der \new Score-Befehl sollte nicht benutzt werden, weil der Partitur-(Score)-Kontext der obersten Ebene normalerweise automatisch erstellt wird, wenn der musikalische Ausdruck innerhalb der score-Umgebung interpretiert wird. Standard-Werte von Kontexteigenschaften, die für einen bestimmten Score gelten sollen, können innerhalb der \layout-Umgebung definiert werden.
Einschränkungen wie "normalerweise" machen mich immer mißtrauisch.
LSRIm LSR gibt es acht Snippets die
\new Score verwenden.
In sechs davon sollte es besser durch
\score ersetzt werden.
In zweien wird es benutzt um
\with { ... } zu setzen. Hier wäre es sinnvoller die entsprechenden Setzungen ins
\layout zu transferieren.
Contributers Guide (CG)Hier kann man folgendes finden (in Diskussionsansätzen zur Weiterentwicklung der LilyPond-Syntax, "GLISS")
http://lilypond.org/doc/v2.17/Documentation/contributor/specific-gliss-issuesIch zitere (gibt's nur auf englisch)
- on \score vs. \new Score
But in the light of a consistent syntax and semantic, I see no reason (from the users POV) to disallow it. After all, the real top-level context is a \book {}, isn’t it, and I don’t see a point in disallowing a \new Score construct just like \new Staff.
From a syntactical POV, I see the following pros for \new Score: - You can write \with { ... } for every other context but \Score, which (for consistency) should also work with \new Score. - When there’s a \new Foo Bar, there’s also a \context Foo Bar, which makes the same as a parallel instantiation of all Bar’s. - [Quoting Rune from http://www.mail-archive.com/lilypond-devel@gnu.org/msg14713.html "I know that the \score-statement is a syntactical construct, but I think it would be nice to hide this fact from the users. I think we could make the use of score-block much more intuitive if changing the syntax to \new \Score and adding an implicit sequential-statement to the score."
- Discussion on http://code.google.com/p/lilypond/issues/detail?id=1322 about \new vs. \context.
Doku zum verwandten \context Score Gibt es nicht!
Einzige Erwähnung von
\context Score in der Release-Ankündigung für v2.2 im file Documentation/misc/announce-v2.2.html (ich weiß allerdings im Moment nicht wo man das online findet. Ich habe es in meinem git repository.)
Ich zitiere (auch wenn es hier nicht von besonderem Belang ist)
- Translators and contexts have been split. The result of this internal cleanup is that Score no longer is the top context; Score is contained in the Global context. Consequently, it is possible to tweak Score as follows:
\context Score \with {
...
}
ZusammenfassungDie Doku zu
\new Score bzw
\context Score gibt nicht viel bis gar nichts her.
Die Anmerkungen im CG sind sind nur das: Anmerkungen, Gedanken, Ansätze.
Wenn man
diesem link folgt, runter-scrollen bis "Kontexteigenschaften mit \context setzen", könnte man sogar vermuten, daß man
currentBarNumber = ... in
\layout setzen kann.
Ich hätte allerdings erwartet, daß
jeder Takt BarNumber 10 erhält.
Zu meiner großen Überraschung funktioniert es aber!!Und scheint mir tatsächlich die eleganteste Lösung zu sein.
\version "2.16.2"
\layout {
\context {
\Score
currentBarNumber = #10
}
}
\new Staff
\relative c' { \bar "" \repeat unfold 10 { c'1 \break } }Deine Beispiele, die ja mit
\grace anfangen, funktionieren ebenfalls.
Jetzt habe ich was gelernt!!
Viele Grüße,
Harm
P.S. Dokumentation von software
ist ein Problem:


