]> git.donarmstrong.com Git - lilypond.git/commitdiff
* input/regression/bar-number.ly: remove unnecessary old-relative
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 26 Aug 2003 11:38:23 +0000 (11:38 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 26 Aug 2003 11:38:23 +0000 (11:38 +0000)
options.

* Documentation/user/internals.itely (Creating contexts): document
\newcontext

* lily/parser.yy (Composite_music): add \newcontext

* Documentation/user/refman.itely (MIDI block): add note about
dotted tempos.

* lily/my-lily-lexer.cc (start_main_input): define input-file-name
as Scheme variable.

100 files changed:
ChangeLog
Documentation/topdocs/NEWS.texi
Documentation/user/cheatsheet.itely
Documentation/user/internals.itely
Documentation/user/refman.itely
Documentation/user/tutorial.itely
input/regression/accidental-placement.ly
input/regression/accidental-single-double.ly
input/regression/accidental-unbroken-tie-spacing.ly
input/regression/accidental.ly
input/regression/ambitus.ly
input/regression/apply-context.ly
input/regression/apply-output.ly
input/regression/arpeggio.ly
input/regression/auto-beam-bar.ly
input/regression/auto-beam-triplet.ly
input/regression/auto-beam-tuplets.ly
input/regression/auto-beam.ly
input/regression/auto-change.ly
input/regression/bar-number.ly
input/regression/beam-auto-knee.ly
input/regression/beam-break.ly
input/regression/beam-center-slope.ly
input/regression/beam-concave.ly
input/regression/beam-cross-staff-auto-knee.ly
input/regression/beam-cross-staff.ly
input/regression/beam-damp.ly
input/regression/beam-default-lengths.ly
input/regression/beam-extreme.ly
input/regression/beam-french.ly
input/regression/beam-funky-beamlet.ly
input/regression/beam-funky.ly
input/regression/beam-knee-symmetry.ly
input/regression/beam-length.ly
input/regression/beam-manual-beaming.ly
input/regression/beam-manual.ly
input/regression/beam-over-barline.ly
input/regression/beam-position.ly
input/regression/beam-postfix-notation.ly
input/regression/beam-quanting-horizontal.ly
input/regression/beam-quarter.ly
input/regression/beam-rest.ly
input/regression/beam-second.ly
input/regression/beam-shortened-lengths.ly
input/regression/beamed-chord.ly
input/regression/beaming-ternary-metrum.ly
input/regression/beaming.ly
input/regression/beams.ly
input/regression/between-systems.ly
input/regression/break.ly
input/regression/chord-scripts.ly
input/regression/cluster.ly
input/regression/completion-heads.ly
input/regression/dot-flag-collision.ly
input/regression/dynamics-broken-hairpin.ly
input/regression/dynamics-glyphs.ly
input/regression/dynamics-line.ly
input/regression/finger-chords.ly
input/regression/fingering.ly
input/regression/follow-voice-break.ly
input/regression/font-magnification.ly
input/regression/generic-output-property.ly
input/regression/grace-auto-beam.ly
input/regression/grace-bar-line.ly
input/regression/grace-bar-number.ly
input/regression/grace-beam.ly
input/regression/grace-dynamic.ly
input/regression/grace-end.ly
input/regression/grace-nest5.ly
input/regression/grace-part-combine.ly
input/regression/grace-start.ly
input/regression/grace-stems.ly
input/regression/grace.ly
input/regression/hairpin-ending.ly
input/regression/instrument-name-partial.ly
input/regression/key-clefs.ly
input/regression/key-signature-scordatura.ly
input/regression/keys.ly
input/regression/lyric-align.ly
input/regression/lyric-combine.ly
input/regression/lyric-phrasing.ly
input/regression/lyrics-melisma-beam.ly
input/regression/lyrics-multi-stanza.ly
input/regression/measure-grouping.ly
input/regression/metronome-marking.ly
input/regression/mm-rests2.ly
input/regression/molecule-hacking.ly
input/regression/non-empty-text.ly
input/regression/note-group-bracket.ly
input/regression/note-head-chord.ly
input/regression/number-staff-lines.ly
input/regression/ottava-broken.ly
input/regression/ottava.ly
input/regression/output-property.ly
input/regression/pc-mmrest.ly
input/test/beam-rest.ly
lily/my-lily-lexer.cc
lily/parser.yy
lily/scm-option.cc
ly/init.ly

index fa4c77b406d02eef9a4e92eda52143cd5db102ca..d0604419e6ca82baca88fbb286288ec79e77c027 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2003-08-26  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
+       * input/regression/bar-number.ly: remove unnecessary old-relative
+       options.
+       
+       * Documentation/user/internals.itely (Creating contexts): document
+       \newcontext
+
+       * lily/parser.yy (Composite_music): add \newcontext
+
        * Documentation/user/refman.itely (MIDI block): add note about
        dotted tempos.
 
index 6c207e4ba08a7086c303cafd45b97f44436952ca..ccdb2e4dc7cf107b0fafa1de882f3784f4af9bb0 100644 (file)
@@ -9,6 +9,21 @@
 
 @itemize
 
+@item
+The @code{\newcontext} command will create a context with a unique
+name automatically. Hence, for multi-staff scores, it is no longer
+necessary to invent arbitrary context names. For example, a two-staff
+score may be created by
+
+@example
+  \simultaneous @{
+    \newcontext Staff @{ @var{notes for 1st staff} @}
+    \newcontext Staff @{ @var{notes for 2nd staff} @}
+  @}
+@end example
+
+
+
 @item
 Octave checks make octave errors easier to correct.
 The syntax is 
index 528b015e0489bbb3561998516acc9b7d62876e5a..277f49c7974cdaa9d4548acc957d504c67931aaa 100644 (file)
@@ -149,12 +149,12 @@ a8-[ b-]
 @end lilypond
 
 
-@item @code{< \context Staff ... >}
+@item @code{< \newcontext Staff ... >}
 @tab more staves
 @tab
 @lilypond[fragment]
-< \context Staff = SA { c'1 }
-  \context Staff = SB { c'1 } >
+< \newcontext Staff { c'1 }
+  \newcontext Staff { c'1 } >
 @end lilypond
 
   
index c66013c6c0ca6eb75a557a40fff7be42036b3523..cfadcc9ac0f49094aa554c242c85795aeb21a7f2 100644 (file)
@@ -74,10 +74,11 @@ performance contexts can be found in @file{ly/engraver-init.ly} and
 @cindex @code{\context}
 @cindex context selection
 
-Contexts for a music expression can be selected manually, using the
-following music expression:
+Contexts for a music expression can be selected manually, using one of
+the following music expressions:
 
 @example
+\newcontext @var{contexttype} @var{musicexpr}
 \context @var{contexttype} [= @var{contextname}] @var{musicexpr}
 @end example
 
@@ -102,6 +103,15 @@ Within @code{another}, a (default) Voice context is created for the
 @code{e4}.  A context is ended when when all music referring it has
 finished, so after the third quarter, @code{another} is removed.
 
+The @code{\newcontext} construction creates a context with a
+generated, unique @var{contextname}. An expression with
+@code{\newcontext} always leads to a new context. This is convenient
+for creating multiple staffs, multiple lyric lines, etc.
+
+When using automatic staff changes, automatic phrasing, etc., the
+context names have special meanings, so @code{\newcontext} cannot be
+used.
+
 
 @node Default contexts
 @subsection Default contexts
index 9030b57be8b4165f8e97a112af2b380e3ba2efcc..ae561b2f2284a188ac1d0d24a5f90aaf07a0cf27 100644 (file)
@@ -1103,11 +1103,11 @@ connected between different staves of a @internalsref{StaffGroup}:
 @c
 @lilypond[fragment, verbatim]
 < \context StaffGroup <
-  \context Staff = up { e'4 d'
+  \newcontext Staff { e'4 d'
      \bar "||"
      f' e' }
-  \context Staff = down { \clef bass c4 g e g } >
-\context Staff = pedal { \clef bass c2 c2 } >
+  \newcontext Staff { \clef bass c4 g e g } >
+\newcontext Staff { \clef bass c2 c2 } >
 @end lilypond
 
 
@@ -1158,7 +1158,7 @@ is to split chords using the separator @code{\\}.  You can use it for
 small, short-lived voices or for single chords:
 
 @lilypond[verbatim,fragment]
-\context Voice = VA \relative c'' {
+\context Staff \relative c'' {
  c4 < { f d e  } \\ { b c2 } > c4 < g' \\ b, \\  f' \\ d >
 }
 @end lilypond
@@ -1176,9 +1176,9 @@ a stem directions and horizontal shift for each part:
 
 @lilypond[singleline, verbatim]
 \relative c''
-\context Staff < \context Voice = VA { \voiceOne cis2 b  }
-  \context Voice = VB { \voiceThree b4 ais ~ ais4 gis4 } 
-  \context Voice = VC { \voiceTwo fis4~  fis4 f ~ f  } >
+\context Staff < \newcontext Voice { \voiceOne cis2 b  }
+  \newcontext Voice { \voiceThree b4 ais ~ ais4 gis4 } 
+  \newcontext Voice { \voiceTwo fis4~  fis4 f ~ f  } >
 @end lilypond
 
 Normally, note heads with a different number of dots are not merged, but
@@ -1517,26 +1517,26 @@ creation of the piano staff:
 @example
 \score @{
     \notes \relative c'' <
-        \context Staff = sa @{ cis4 d e2 @}
+        \newcontext Staff @{ cis4 d e2 @}
         \context GrandStaff <
             \pianoAccidentals
-            \context Staff = sb @{ cis4 d e2 @}
-            \context Staff = sc @{ es2 c @}
+            \newcontext Staff @{ cis4 d e2 @}
+            \newcontext Staff @{ es2 c @}
         >
-        \context Staff = sd @{ es2 c @}
+        \newcontext Staff @{ es2 c @}
     >
 @}
 @end example
 @lilypond[singleline]
 \score {
     \notes \relative c'' <
-        \context Staff = sa { cis4 d e2 }
+        \newcontext Staff { cis4 d e2 }
         \context GrandStaff <
             \pianoAccidentals
-            \context Staff = sb { cis4 d e2 }
-            \context Staff = sc { es2 c }
+            \newcontext Staff { cis4 d e2 }
+            \newcontext Staff { es2 c }
         >
-        \context Staff = sd { es2 c }
+        \newcontext Staff { es2 c }
     >
     \paper {
         \translator {
@@ -2182,8 +2182,8 @@ In the following example, there are two sixteenth graces notes for
 every eighth grace note:
 
 @lilypond[relative=2,verbatim,fragment] 
-< \context Staff = SA { e4 \grace { c16[ d e f] } e4 }
-  \context Staff = SB { c'4 \grace { g8[ b] } c4 } >
+< \newcontext Staff { e4 \grace { c16[ d e f] } e4 }
+  \newcontext Staff { c'4 \grace { g8[ b] } c4 } >
 @end lilypond
 
 
@@ -2274,8 +2274,8 @@ such as key signatures, barlines, etc. are also synchronized. Take
 care when you mix staves with grace notes and staves without, for example,
 
 @lilypond[relative=2,verbatim,fragment]
-< \context Staff = SA { e4 \bar "|:" \grace c16 d4 }
-  \context Staff = SB { c4 \bar "|:"  d4 } >
+< \newcontext Staff { e4 \bar "|:" \grace c16 d4 }
+  \newcontext Staff { c4 \bar "|:"  d4 } >
 @end lilypond
 
 Grace sections should only be used within sequential music
@@ -2720,8 +2720,8 @@ down = \notes { bassdrum4 snare8 bd r bd sn4 }
 \score {
     \apply #(drums->paper 'drums) \context Staff <
         \clef percussion
-        \context Voice = up { \voiceOne \up }
-        \context Voice = down { \voiceTwo \down }
+        \newcontext Voice { \voiceOne \up }
+        \newcontext Voice { \voiceTwo \down }
     >
 }
 
@@ -2911,8 +2911,8 @@ down = \notes { bd4 sn bd toml8 toml }
 \score {    
     \apply #(drums->paper 'mydrums) \context Staff <
         \clef percussion
-        \context Voice = up { \voiceOne \up }
-        \context Voice = down { \voiceTwo \down }
+        \newcontext Voice { \voiceOne \up }
+        \newcontext Voice { \voiceTwo \down }
     >
 }
 @end lilypond
@@ -2940,12 +2940,12 @@ down = \notes { bassdrum4 snare8 bd r bd sn4 }
 bass = \notes \transpose c c,, { a4. e8 r e g e }
 \score {
     <
-        \apply #(drums->paper 'drums) \context Staff = drums <
+        \apply #(drums->paper 'drums) \newcontext Staff <
             \clef percussion
-            \context Voice = up { \voiceOne \up }
-            \context Voice = down { \voiceTwo \down }
+            \newcontext Voice { \voiceOne \up }
+            \newcontext Voice { \voiceTwo \down }
         >
-        \context Staff = bass { \clef "F_8" \bass }
+        \newcontext Staff { \clef "F_8" \bass }
     >
 }
 @end lilypond
@@ -3030,7 +3030,10 @@ Voices can switch automatically between the top and the bottom
 staff. The syntax for this is
 @example
   \autochange Staff \context Voice @{ @dots{}@var{music}@dots{} @}
-@end example        
+@end example
+The two staffs of the piano staff must be named @code{up} and
+@code{down}.
+
 The autochanger switches on basis of pitch (central C is the turning
 point), and it looks ahead skipping over rests to switch in
 advance. Here is a practical example:
@@ -3166,8 +3169,8 @@ in both staves, and set
 @lilypond[fragment,relative,verbatim]
   \context PianoStaff <
     \property PianoStaff.connectArpeggios = ##t
-    \context Voice = one  { <<c' e g c>>-\arpeggio }
-    \context Voice = other { \clef bass  <<c,, e g>>-\arpeggio }
+    \newcontext Staff  { <<c' e g c>>-\arpeggio }
+    \newcontext Staff { \clef bass  <<c,, e g>>-\arpeggio }
   >
 @end lilypond
 
@@ -3374,24 +3377,24 @@ more complex orderings, the best way is to setup the hierarchy of
 staves and lyrics first, e.g.
 @example
 \context ChoirStaff \notes <
-  \context Lyrics = LA @{ s1 @}
-  \context Staff = SA @{ s1 @}
-  \context Lyrics = LB @{ s1 @}
-  \context Staff = SB @{ s1 @}
+  \newcontext Lyrics @{ s1 @}
+  \newcontext Staff @{ s1 @}
+  \newcontext Lyrics @{ s1 @}
+  \newcontext Staff @{ s1 @}
 >
 @end example
 and then combine the appropriate melodies and lyric lines:
 @example
   \addlyrics
-    \context Staff = SA @emph{the music}
-    \context Lyrics = LA @emph{the lyrics}
+    \newcontext Staff @emph{the music}
+    \newcontext Lyrics @emph{the lyrics}
 @end example
 
 putting both together, you would get
 @example
 \context ChoirStaff \notes <
-  \context Lyrics = LA @dots{}
-  \context Staff = SB @dots{}
+  \newcontext Lyrics @dots{}
+  \newcontext Staff @dots{}
   \addlyrics @dots{}
 >
 @end example
@@ -3548,8 +3551,8 @@ lower = \notes \relative c {
 \score {
   \context ChoirStaff {
     <
-      \context Staff = one { \upper }
-      \context Staff = three { \lower }
+      \newcontext Staff { \upper }
+      \newcontext Staff { \lower }
     >
   }
   \paper {
@@ -4117,7 +4120,7 @@ You can also use markup texts to construct more complicated instrument
 names:
 
 @lilypond[fragment,verbatim,singleline]
-  \notes \context Staff = treble {
+  \notes {
     \property Staff.instrument = \markup {
         \column << "Clarinetti"
           { "in B"
@@ -4389,8 +4392,8 @@ in this example disappears in the second line:
 @lilypond[verbatim]
 \score  {
   \notes \relative c' <
-    \context Staff = SA { e4 f g a \break c1 }
-    \context Staff = SB { c4 d e f \break R1 }
+    \newcontext Staff { e4 f g a \break c1 }
+    \newcontext Staff { c4 d e f \break R1 }
   >
   \paper {
     linewidth = 6.\cm 
index e48471365654bf504a1418cb5406411ede3cae6a..8c90864b2e8d75a424cada7a5694331d70395785 100644 (file)
@@ -655,8 +655,8 @@ staff is marked by adding @code{\context Staff} before it.  These
 @quotation
 @lilypond[fragment,verbatim]
 \simultaneous {
-  \context Staff = staffA { \clef violin c'' }
-  \context Staff = staffB { \clef bass c }
+  \newcontext Staff { \clef violin c'' }
+  \newcontext Staff { \clef bass c }
 }
 @end lilypond
 @end quotation
@@ -696,14 +696,14 @@ We can now typeset a melody with two staves:
 @lilypond[verbatim,singleline]
 \score {
   \notes 
-  < \context Staff = staffA {
+  < \newcontext Staff {
       \time 3/4
       \clef violin
       \relative c'' {
         e2( d4 c2 b4 a8[ a]
         b[ b] g[ g] a2.) }  
     }
-    \context Staff = staffB {
+    \newcontext Staff {
        \clef bass
        c2 e4  g2.
        f4 e d c2.
@@ -1273,11 +1273,11 @@ Again, these expressions can be nested arbitrarily:
 
 @lilypond[fragment]
 <
- \context Staff = staffA 
+ \newcontext Staff 
   \relative c''
     < { a4 g2 f4-~ f4 } \\
       { s4 g4 f2 f4 } >
- \context Staff = staffB 
+ \newcontext Staff 
   <  { \clef bass <<c g>>1  } \\
      { f4 d e2 }
   >
@@ -1299,8 +1299,8 @@ Piano music is always typeset in two staves connected by a brace.
 Printing such a staff is done similar to the polyphonic example in
 @ref{Combining music into compound expressions}:
 @example
- < \context Staff = up @{ @dots{} @}
-   \context Staff = down @{ @dots{} @}
+ < \newcontext Staff @{ @dots{} @}
+   \newcontext Staff @{ @dots{} @}
  >
 @end example
 but now this entire expression must be interpreted as a
@@ -1313,9 +1313,9 @@ Here is a full-fledged example:
 
 @lilypond[relative 0,fragment]
 \context PianoStaff
- < \context Staff = up { \time 2/4
+ < \newcontext Staff { \time 2/4
      c4 c g' g  }
-   \context Staff = down {
+   \newcontext Staff {
      \clef bass c,, c' e c }
  >
 @end lilypond
@@ -1652,8 +1652,8 @@ file @file{bassoon-music.ly}:
 
 \score @{
   \simultaneous @{
-    \context Staff = hornStaff \hornNotes
-    \context Staff = bsnStaff \bassoonNotes
+    \newcontext Staff \hornNotes
+    \newcontext Staff \bassoonNotes
   @} @}
 @end example
 
@@ -1662,10 +1662,10 @@ This would lead to the simple score depicted below:
 @lilypond[singleline]
 \score {
   \notes \relative c \simultaneous {
-    \context Staff = hornStaff { \time 2/4
+    \newcontext Staff { \time 2/4
         R2*3
     r4 f8 a cis4 f e d }
-    \context Staff = fagStaff { \clef bass
+    \newcontext Staff { \clef bass
       r4 d,8 f | gis4 c |  b bes |
       a8 e f4 |  g d | gis f }
   } }
index f7a45c064c0b8a804653658065d364ca0381b81f..a424618789fbf9a4c87272872a307b2d9297d1be 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index 4391992306c892f13e03a38c5806559652ee0cde..7e96efe590640a53d26ca30b8c1e2e1f8b1f1dd6 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc="
index 53f95b30688e318c0526c154ba5075835f392385..9587d656d4fa02f1e320b1929f45e36ba63d7136 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header {
 texidoc = "Tied accidentaled notes (which cause reminder accidentals) don't wreak havoc in
 the spacing when unbroken."
index 0fed2637baefb0e631faa70fb9aba8ca7ea2e683..83468c0b007be7a944a643012f6ab5c56c75849d 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index d136f82ff88da0daca26b2331da996853c29e6cb..fb38cd23e0fffd50c55a340c9394417c4478185d 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header {
     texidoc = "Ambituses indicate pitch ranges for voices.
 
index 9e6320ef62cb4d290141cc3398973b1bc62f3dbb..0b9c57712cc64210c4acea3b131991ba110c7c08 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 
index cd4bf3728c03d712b8a108eb6dae1cd3704ba8e1..88e9b7045f3e37cd6b4032dcad9935c467350762 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1" 
 \header {
 
index 303c8dd9a943eafb924d2a7c4d93bb0539a76093..277b308961452b67a190583ab06c797f611205d8 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc="
index e864261f78b73ef5da6e3016ac176603faf50365..5364837395bbfbaf03772b84de87f81c2bd2e563 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index d2ecfcb2ebba69fa31e4419202751f8cd9e68fdf..3f3a0306d5fbae8a6f39001f0e7bd7acbdb2a577 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header
 {
 texidoc = "Automatic beaming is also done on tuplets."
index 9656496596463c7df6178f86e5036e9ce8c0ba1c..c0d9aea33b89d03877ae8878bff4a8a8d65c2ec6 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index 8848aadda3d4c38bd0bc4cf7db8ebeeb9c1d766e..234cfe44873b83ba03a7caae62cccc4c7d61f92e 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header {
 
 texidoc="Test automatic beamer: the last measure should have a single beam."
index 5585613c218a8e0d201803e3ef262f5b86e7bd46..01567777e71948dc96e420a089b9b8641cd92157 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index 4ea24600ed75385d3d85ab6fe6ed558645c53e27..2e595a9de79a81f0228d2349cd1d16c1a240fa55 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index d8211f9739fc08f372644599a4839eab8ecd762b..8d4c5ec1f323a37a2466d25b287fe760690fd0e0 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{ texidoc="Automatic kneeing. A knee is made when a horizontal
index f66a5c34a7c6f975b61aa40b3d32e1fec8227f59..fceb8c164f90f39da2487a12e26d50d6687a2a28 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header {
     texidoc = "Beams can be printed across line breaks if forced.
 "
index 2221ca2b07e86bb2608a7eab7789bf82c35d4d72..4e642b01be971cf6d295bb88e6bfd7835094b415 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 
 \version "1.9.1"
 \header{
index 46be76e827f2b42fab2daf55dc1990e05ca627d4..1d52cadeed3fc7f729da78d716843b2519530ba5 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 
index 2c17f6e8186d9a0c649d38d8f44eb1736493cb68..7da8577341c49f7d605351677fd36b9d5c792782 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 00a13bb8a7eeba4fa181ecc9d8867db47d86ea4a..2f4c6e2982a082084966735315612b92d343e1a0 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc="
index ec90c22ac087bca8ceb2c13b20262df253138dc1..f98aef042467fbd3ff362a3142e37ace7d6152f5 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header { texidoc = "@cindex Beam Damp
 Beams are less steep than the notes they encompass. " }
index 01a82fc6b401502700b987efc08c832f8cae0c26..a6db3c9fbbe0eab9a9931c195d620fe6e08a6701 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 61b2a09c60517eac7a381fc8eb469436c96e14eb..5cae7ef76bec2a0d5f98ce3df3e79e08de0d5abe 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc="
index 120f7d1e3197a4804659ab987be6e4669e848a59..d4027f6c3e9a5612afdb0fb89fca60634072dab9 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index 640a74f69733f0fe79de8f9eefba979ac6f2f716..20282b72f119cb4753fbd6a29938fde302012519 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index 91c7fd06c0b0b70ff5e3eb5585462b4294dbe57a..609408c1c2b3be93eae46e55e12c13d750ca24c1 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
     
index 0160d0b03d64344d79393fa08d3499c0f1e7c554..030f19f331ccddbad5a30700d25a3be6412e185f 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index e7c51165a56f9f49e5f7613853cffea9e8782d5d..d3242c0352908af8b749b8b127e44bb67d626a06 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 5903482718563c3300245589275f25b842b1826c..ed73fd86355d64bcefaf088d620c651f530495ff 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 
index 6e0cfea60e4fa866fc539ff025f57b1fc3d67751..9a75c064a7839c37ca236924c569f17daf5347bd 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index 497f1ff1933b08a48fa12598cce3af558fe74adf..bba4a7cf220adcb91b0a994c75857bcf6413ec96 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 texidoc = "Explicit beams may cross barlines. "
index fac9615d9fbcf1064aceaeb64170216744f20e78..21ff0b99198d889f0d489260be095f9bea749e5c 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc="
index 4075beab9f969558282a879dab48a9582430acc5..218f693a9acbb2c956fa18cf776310c4e32d2d98 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index 984d20a91ecf816a73aca1c535a46fb39b0803fc..320cf2b942fad49e075b5dfd3dfebfb2b880716d 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 174120e42a983712a32075f6da474c66cd75cbec..3925765d0f40486fdd5e7fdffa1c1d1f04376d01 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header
 {
index 34ff1d904199af5333c7fa37fb76569ca1d49d48..d33bfc99fff2b3d5ace4e43fea97bb0e7ebf697c 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header {
  texidoc = "The number of beams doesn't change on a rest."
 }
index 1dd2cdf73c01cd30af6cc10b0b0fb5b51c50ab9e..c47e38287ff64b5151acccd4555222b0f1748025 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
   texidoc="
index a06f2c0e3d656bc72351be2f58890b4033ddf64b..c95d984695fcc1e01fdf95af508378d34adee0e0 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 3596817c7eca1be1596351e0e51807c8661d32f5..929ecda4d1d96071ae6c646ba21302300449785b 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index cced3839bcf90e4d2cd77e9677ba2538535bbe2a..3e5003b5e5a76769f786d7ad392612e1444e8230 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 texidoc = "Automatic beaming works also in ternary time sigs."
index 94815dcfdef9c073562b7484bfe30ecfb60228c4..ee46ce285984b17d9d3500871cc28262556b1989 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 4aff48da6cd2897794acf1a2984ba372a87f4e0c..0a1b930e8c80771046aa22dd1855e20307aaf6af 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
     texidoc = "Beams (simple)."
index e496a421254a49a08a544ccb37b37b901721d5e1..2d332bfc108f52d807976a23c20c4afc6e5ab8f0 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index a166c8aa0eabc9f2807ad2a633c43fa2cccee85b..0a77a285594afe197de6bfa63347ef1b95372c42 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 6a785c4c8b5421a8ffebccc99725967e13f63500..6fff693ebd59b68637be58bfa593f2cc4f02f695 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index a68deb71873e47c68919168f648615ca281bd279..9ca98bc43793e6ba180d4413ed4476a5e9102a19 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
     texidoc = "Clusters are a device to denote that a complete range of
index 4111eb0ffaf6b73835e83b1139c246a86aaea386..54b7692b02f580046e4916f22dcb170b904d6325 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index b8f6387ad852cf99ba8970d287c706d9bd575dfa..17193d48c980e2640335f030bf9537e2c4ec6830 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
     texidoc = "Dots move to the right when a collision with the (up)flag happens."
index 0e38c38c39af4dd1ba6b3c691453f9a0a139cad3..5cfdf800f7be117567ac8594e29fa36b6aed52db 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc = "Broken crescendi should be open on one side."
index 1c5dc497b90627863c6b3141b2dec94dfea866c3..03d508af63c865e28d956cd3ed7dc8a6e8559748 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {texidoc = "Dynamic letters are kerned, and their weight
index 6c65940d74e16c0e597dc160275872481e7d12ce..7e0a8921156553a248f1c7f04a3481b21e3c8f09 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc=" Dynamics appear below or above the staff.  If multiple
index bb6f10d66a17b34026da4b22c96682098d17920c..04ba72932c48385beb7d7a6541fbca3a4f7030c9 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index 92c23287fcd18a050c564abd49882281d92e72bc..4c37ce99388232d4c1aadce03f709414a9ae692d 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index 4a168aa3ad41b6c12015d3de5536874a73341605..2cebbb19972831aeb81c8a5d2aacd99f36459080 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
        texidoc = "
index 3e739b36f6056da6cf545f5d1cf639f2294bd86e..b4dbfbfeced90ab746a51fde28092253580baec8 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header { texidoc = "The magnification can be set for any font. Note
 that this doesn't change variable symbols such as beams or slurs. " }
index 87a03e5c622303826e13a24dd76ef4872ea1197f..f1d757fc738009561bd116dcb01f99b78bd31ef3 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 6a429f8b02507d52f11b48c3d041b8076e2dbc30..8b81abbbefd3b8de9695f56fe66b0549e5e8f1fe 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header
 {
index 6214f60f4c3d3d3298785acdd8fd7c7b0a24b67f..39cf0665f6304c08fbc135f90c464d47f0fee59d 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 texidoc = "Bar line should come before the grace note."
index 8a7ebc0d9f4325f8094223ea0764418e8b10a155..7fedb2816ccef885a2122154a54e557aabab5d47 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index c97d17fd4c3f4406acb8b39d0b435c7281443138..8a51accbc9f31653b535643e2c294aa1e2e144ae 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header
 {
 texidoc = "Grace beams and normal beams may occur simultaneously.
index 22bc88bffa13681a35731c3bc6185a755c1f428f..b73ccae4e4de8e9e1b72faa39c0f30cd5b61c0b6 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
  % ?
index 34e5247230adf0cb31ba355002b4b90abab9fcd1..b1c572f64a4059631e35a3e246e245b90edc7c12 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index 362994ec24b0cb02faae63c1fe210b94620ad4cd..ef991e9df39ed76223fbfce11d5bc0b6b285d1a1 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
     texidoc = "Another nested grace situation."
index e6bd449b7b86c8ce59113e8a0fdff9aeec985cbd..43e8dd3c2fbd6f0146c2f546420760fbad43e951 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
     texidoc = "Partcombiner and grace notes can go together."
index f9ed41ccbed0245a935722abac78bca6ec439355..23ec247bbbb117669472ed17b7899cf5bc2f9092 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 texidoc = "Pieces may begin with grace notes."
index e5d32c2b800ed46c26b52ade59e1186a1ac0ff94..2ed71f6d1f1d57f3b041f2d4f3c95e58cfc737fe 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc = "Here startGraceMusic should set no-stem-extend to true;
index 8a719937bca2d76ef9e6dacd78b32291099093e7..5304ed0f8040fbe4c2a18752604aab3d26f6f21e 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index b9e8fc7c7da7c03b3ca0d22f9e34c69ca1926d8c..715f8f51d05a0697d4840c849422adf1304e9f19 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index d301d9ead8702f4081d553979cd3867e9f3caa1f..ccabed02052fa3ab361a09859436c9baa72d3b06 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
     texidoc = "Instrument names are also printed on  partial starting measures."
index 288077a50d741cb46bb8d90c8e6ae40bf1a5c97b..893744602c7b1846b09691df9c67793254912616 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header { texidoc = "Tests placement of accidentals in every clef. " }
 
index 27bb6bda644aa65b63b04667347b2f3c04df48cd..e34bb8ca540dafd01786c1648eb9e8c3c65c077c 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header { texidoc = "Key signatures can be set per pitch
index 86b207e0d1b8288e85d3f97434c7dfea4b205442..b9eb85cb29e752c47047baf0e0ef6fb2ee9848e3 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
 texidoc="
index 41e1f3f52895bb6221f6ae2b8051c32de9f4da90..696a7b034f8e5d9dc5e6e5d3cf47d470d95e9ce1 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
   texidoc="
index 0708d90f5ee7c73adc19c62b3db978a628d68b27..a4cb15f50c454f3f12988394fbe07128bf33afe1 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index f66d2b5a7f70041bab5e63dd7c712196903b98b9..a66dcc5e41ced035c4ac564829c75f718f3a8a75 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header{
   texidoc="Lyric phrasing
index e45346316e1702c4294da9d5a530e8503b4bf979..7720dfc9355bf48560394b85aa60d7d3e4c6baf3 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header
 {
index 8de8ed6a912924cbade3213c76bef0ee62fa9d3e..2ab13a4e30edecd0c9013c3633a7f75975646b90 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 
index 70c1baf8fa48ce84b01fbf1e58fda3de6979b39a..45fd1db9ed8f2ff53bd91b456118b771cd0ec213 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header
 {
 
index 8e4a5bff79cbb98374a452c977a14d3f8b6dce4e..d1a14521125abd905af4b3fd3fa10174addb237f 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 
 \header {
 
index 10415956f2bc8763ae281dbcdaf2dea39939d1f8..fafe8c9ef1599ca042ee455d574cf8c26e5ff3d5 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index 9ff04511611060712ee90a446e6631e35b0c3e06..f12a480740fc90671df79351a1502e6826fca907 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header { texidoc=" You can write molecule callbacks in Scheme, thus
index bc7ea185149317e3811c9c71a651b2acfaf61d4c..71bc0debe9299551456d1761e3bd1bc6ed032051 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index c45b80de07813780fa4cad50d4427672bd39eabc..f9ac6ef38b8bae70ffd5d54be8c04c066dc6d199 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index 2d3e03611aa992ab50b01de77cca09792534fe0a..df002efdf89754d9988519dda26e050da46df52a 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header {
index 9b03a38842fb89ffb5d907aa2ac60bc3bcd92d07..9e65db846df84c4e4f9c899fe370128b82df8a43 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index c0f8b176d46d934f2bf6aac5a6e9e9483a1bbcb4..7579bc7e3ea10963851f5c1d4fdc4bdcf8fc101a 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 
 \header
 {
index 272d23f75bcd906aacd7e372585291f79e3eeeb7..115ff532956d2274c0b78fc11b62b4fe4e04f3e0 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header
 {
 texidoc = "Ottava brackets are supported, through the
index c21b5d8a301560217ed69757ff1ed6d47ce0768d..09af5dbee8d8eaf6af5a85acce1e51532f69a21b 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \header { texidoc = "
 
 Setting @code{\outputproperty} is a clumsy and deprecated way of changing
index 4a638d47d962b88311d5dd9fb716f07ab16fcd18..40c9544e923aa35f3ddc341185ba47c74ea2921b 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 \header {
 texidoc="Multi measure rests of second voice should not disappear."
index d8dbce206bdb19b01428551d92fd941c0bc4df45..2f4a68dbfb7a8daa02f8818e8d4ddb641124cd85 100644 (file)
@@ -1,4 +1,4 @@
-#(ly:set-option 'old-relative)
+
 \version "1.9.1"
 
 \header{
index d84f6f4e52a520d5b5afc366765d589da5ef1dda..c1fe8e04b3a86aeb4c3dabf8e0debe87da71c44d 100644 (file)
@@ -56,6 +56,7 @@ static Keyword_ent the_key_tab[]={
   {"markup", MARKUP},
   {"midi", MIDI},
   {"name", NAME},
+  {"newcontext", NEWCONTEXT},
   {"notes", NOTES},
   {"octave", OCTAVE},
   {"once", ONCE},
index 9d9ff455e32718d49214b91e45920c951129484e..239b8f68f18446b0a09517a9e8568040c35bc4da 100644 (file)
@@ -210,72 +210,73 @@ yylex (YYSTYPE *s,  void * v)
 
 %pure_parser
 
-/* tokens which are not keywords */
-%token AUTOCHANGE
+
+%token ACCEPTS
+%token ADDLYRICS
 %token ALIAS
+%token ALTERNATIVE
+%token APPLY
 %token APPLYCONTEXT
 %token APPLYOUTPUT
-%token APPLY
-%token ACCEPTS
-%token ALTERNATIVE
+%token AUTOCHANGE
 %token BAR
 %token BREATHE
 %token CHORDMODIFIERS  
 %token CHORDS
+%token CHORD_CLOSE
+%token CHORD_OPEN
 %token CLEF
+%token COMMANDSPANREQUEST
 %token CONSISTS
-%token DURATION
-%token SEQUENTIAL
-%token GROBDESCRIPTIONS
-%token SIMULTANEOUS
 %token CONSISTSEND
+%token CONTEXT
+%token DEFAULT
 %token DENIES
 %token DESCRIPTION
+%token DURATION
 %token EXTENDER
 %token FIGURES FIGURE_OPEN FIGURE_CLOSE
 %token FIGURE_BRACKET_CLOSE FIGURE_BRACKET_OPEN
 %token GRACE 
+%token GROBDESCRIPTIONS
 %token HEADER
 %token HYPHEN
 %token INVALID
 %token KEY
 %token LYRICS
 %token MARK
-%token MULTI_MEASURE_REST
 %token MIDI
-%token PITCH
-%token DEFAULT
+%token MULTI_MEASURE_REST
 %token NAME
-%token PITCHNAMES
+%token NEWCONTEXT
 %token NOTES
+%token OCTAVE
 %token ONCE
+%token OUTPUTPROPERTY
+%token OVERRIDE SET REVERT 
 %token PAPER
+%token PARTCOMBINE
 %token PARTIAL
+%token PITCH
+%token PITCHNAMES
 %token PROPERTY
-%token OVERRIDE SET REVERT 
 %token RELATIVE
 %token REMOVE
 %token REPEAT
-%token ADDLYRICS
-%token PARTCOMBINE
+%token REST
 %token SCM_T
 %token SCORE
+%token SEQUENTIAL
+%token SIMULTANEOUS
 %token SKIP
 %token SPANREQUEST
-%token COMMANDSPANREQUEST
 %token TEMPO
-%token OUTPUTPROPERTY
-%token OCTAVE
-%token TIME_T
 %token TIMES
+%token TIME_T
 %token TRANSLATOR
 %token TRANSPOSE
 %token TYPE
 %token UNSET
-%token CONTEXT
-%token REST
-%token CHORD_OPEN
-%token CHORD_CLOSE
 
 
 /* escaped */
@@ -966,6 +967,21 @@ Composite_music:
 
                $$ = csm;
        }
+       | NEWCONTEXT string Music {
+               static int new_context_count;
+
+               Music * csm = MY_MAKE_MUSIC("ContextSpeccedMusic");
+
+               csm->set_mus_property ("element", $3->self_scm ());
+               scm_gc_unprotect_object ($3->self_scm ());
+
+               csm->set_mus_property ("context-type", $2);
+
+               SCM new_id = scm_number_to_string (gh_int2scm (new_context_count ++),
+                                       gh_int2scm (10));
+               csm->set_mus_property ("context-id", new_id);
+               $$ = csm;
+       }
        | TIMES {
                THIS->push_spot ();
        }
index 3b5de500c13df0b9a85cf987615cfde7119bb697..ffa343dc53c289e8d5144a9fe27d49f70559aa31 100644 (file)
@@ -37,7 +37,7 @@ int testing_level_global;
 /*
   Backwards compatibility.
  */
-bool lily_1_8_relative = true;
+bool lily_1_8_relative = false;
 bool lily_1_8_compatibility_used = false;
 
 /*
index ce58a26a4d3e301541b9653e60094a98921cd2c3..4608c01120ab40f777d3879e0d8fcbb78ede81d7 100644 (file)
@@ -9,7 +9,7 @@
 
 \include "declarations-init.ly"
 
-#(ly:set-option 'old-relative #t)
+#(ly:set-option 'new-relative)
 #(ly:set-point-and-click #f)
 
 \maininput