]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.22
authorfred <fred>
Sun, 24 Mar 2002 19:27:42 +0000 (19:27 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:27:42 +0000 (19:27 +0000)
init/table_sixteen.ini
maartje.ly
src/staffcommands.cc

index 2b719ecd88254d38c13e0335afa21cf5ec55f20a..5eb42dde18783ae671ce08f81696e05a9f978605 100644 (file)
@@ -14,12 +14,15 @@ symboltables {
            "fermata" "\fermata"                0pt  0pt        0pt 11.25pt
            "-fermata" "\ifermata"              0pt  0pt        -11.25pt 0pt
            "portato" "\portato"                0pt 0pt         0pt 0pt
-           "accent" "\maccent"                 -1pt 8pt        0pt 0pt
-           "marcato" "\marcato"                0pt  0pt        0pt 11.25pt
-           "-marcato" "\imarcato"              0pt  0pt        -11.25pt 0pt 
+           "-portato" "\iportato"              0pt 0pt         0pt 0pt
+           "tenuto" "\tenuto"                  0pt 0pt         0pt 0pt
+           "-tenuto" "\itenuto"                0pt 0pt         0pt 0pt
+           "sforzato" "\sforzato"              -0.8pt 4.8pt    -1.92pt 1.92pt
+           "marcato" "\marcato"                0pt  4.8pt      0pt 4pt
+           "-marcato" "\imarcato"              0pt  4.8pt      -4pt 0pt 
            "staccato" "\staccato"              0pt  0pt         0pt 5pt
            "staccatissimo" "\staccatissimo"    0pt 0pt         0pt 7.5pt
-           "istaccatissimo" "\staccatissimo"   0pt 0pt         -7.5pt 0pt
+           "-staccatissimo" "\istaccatissimo"  0pt 0pt         -7.5pt 0pt
            "upbow" "\upbow"                    -1pt 6pt        0pt 5pt
            "downbow" "\downbow"                0pt 5pt         0pt 7.5pt
     }
@@ -67,9 +70,13 @@ symboltables {
      }
 
      "bars" = table {
-            "empty"    "\emptybar"     0pt     0pt     0pt     0pt
-            "|"        "\maatstreep"   0pt     5pt     -12pt   12pt
-            "||"       "\finishbar"    0pt     2pt     -12pt   12pt
+       "empty" "\emptybar"     0pt     0pt     0pt     0pt
+       "|"     "\maatstreep"   0pt     5pt     -8pt    8pt
+       "||"    "\finishbar"    0pt     2pt     -8pt    8pt
+       ":|"    "\repeatbar"    -4pt    0pt     -8pt    8pt
+       "|:"    "\startrepeat"  0pt     4pt     -8pt    8pt
+       ":|:"   "\repeatbarstartrepeat" 0pt     8pt     -8pt    8pt
+
      }
 
      "rests" = table {
index 28d1d780409c3171ec07f40adde9bc94f2a4b2f1..f585c27b80800f09cd5c7cf42706f9f12f452c09 100644 (file)
@@ -47,7 +47,7 @@ c8
        $}
 
        commands {
-%      skip 0:0.125
+
        skip 3:0%BUG
        key $ fis cis gis $
        skip 2:0
@@ -67,8 +67,9 @@ score {
        commands {
                meter 4 4
                partial 8
-               skip 1:0
-               skip 2:0                
+               skip 1:2
+               bar ":|:"
+               skip 2:0
                meter 2 4
                skip 19:0
        }
index f1588ebe2368c5ab356b047528bd3542b80cb6af..f99a3d9726678920242fc4fd52ff103a475463c1 100644 (file)
@@ -1,6 +1,7 @@
 #include "staffcommands.hh"
 #include "debug.hh"
 #include "parseconstruct.hh"
+#include "getcommand.hh"
 
 Moment
 Staff_commands_at::when()
@@ -22,10 +23,12 @@ Staff_commands_at::print() const
 void
 Staff_commands_at::OK()const
 {
+#ifndef NDEBUG
     iter_top(*this,i);
     for (; i.ok() && (i+1).ok(); i++)
        if (!i->isbreak() && !(i+1)->isbreak())
            assert(i->priority >= (i+1)->priority);
+#endif
 }
 
 Staff_commands_at::Staff_commands_at(Time_description m)
@@ -48,7 +51,7 @@ Staff_commands_at::is_breakable()
 void
 Staff_commands_at::set_breakable()
 {
-    assert(!is_breakable());
+    if (is_breakable()) return;
     
     Command k;
     k.code = BREAK_PRE;
@@ -123,9 +126,11 @@ Staff_commands_at::add(Command c)
        Command typeset;        // kut met peren
        typeset.code = TYPESET;
        typeset.args = c.args;
-       if (c.args[0] == "BAR") {
-           typeset.priority = 100;
+       if (c.args[0] == "NEWMEASURE") {
+           add(get_defaultbar_command());
+       } else if (c.args[0] == "BAR") {
            add(typeset);
+           c.code= NOP;        // no INTERPRET (BAR) commands
        } else if (c.args[0] == "KEY") {
            typeset.priority = 70;
            add(typeset);
@@ -145,8 +150,8 @@ Staff_commands_at::add(Command c)
        if (c.args[0] == "BAR") {
            set_breakable();
            encapsulate = true;
-           mid = c;
-           pre = c;
+           split_bar_command(pre,mid,post, c.args[1]);
+
            { /* every line a currentkey. */
                Command kc;
                kc.code =TYPESET;
@@ -198,73 +203,3 @@ Staff_commands_at::add(Command c)
     }
 }
 
-
-/****************************************************************/
-
-void
-Staff_commands::OK() const
-{
-#ifndef NDEBUG
-    for (iter_top(*this,i); i.ok() && (i+1).ok(); i++) {
-       assert(i->tdescription_.when <= (i+1)->tdescription_.when);
-       i->OK();
-    }
-#endif
-}
-
-void
-Staff_commands::print() const
-{
-#ifndef NPRINT
-    for (iter_top(*this,i); i.ok() ; i++) {
-       i->print();
-    }
-#endif
-}
-
-Staff_commands_at*
-Staff_commands::find(Moment w)
-{
-    PCursor<Staff_commands_at*> i(bottom());
-    for (; i.ok() ; i--) {
-       if (i->tdescription_.when == w)
-           return i;
-       if (i->tdescription_.when < w)
-           break;
-    }
-    return 0;
-}
-
-void
-Staff_commands::add(Staff_commands_at*p)
-{
-    PCursor<Staff_commands_at*> i(bottom());
-    for (; i.ok() ; i--) {
-       if (i->tdescription_.when < p->tdescription_.when)
-           break;
-    }
-    if (!i.ok()) 
-       i.insert(p);
-    else {
-       i.add(p);
-       i++;
-    }
-}
-
-void
-Staff_commands::clean(Moment l)
-{
-    PCursor<Staff_commands_at*> i(bottom());
-    for (; i->tdescription_.when > l; i=bottom()) {
-       remove(i);
-    }
-    
-    Staff_commands_at*p = find(l);
-    if (!p) {
-       p = new Staff_commands_at(Time_description(l - i->when(), &i->tdescription_));
-       add(p);
-    }
-    if (!p->is_breakable()) {
-       p->set_breakable();
-    }
-}