From: fred Date: Sun, 24 Mar 2002 19:27:42 +0000 (+0000) Subject: lilypond-0.0.22 X-Git-Tag: release/1.5.59~5622 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=79d1f58d8ceb71c9726108f31f373adf18f3046c;p=lilypond.git lilypond-0.0.22 --- diff --git a/init/table_sixteen.ini b/init/table_sixteen.ini index 2b719ecd88..5eb42dde18 100644 --- a/init/table_sixteen.ini +++ b/init/table_sixteen.ini @@ -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 { diff --git a/maartje.ly b/maartje.ly index 28d1d78040..f585c27b80 100644 --- a/maartje.ly +++ b/maartje.ly @@ -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 } diff --git a/src/staffcommands.cc b/src/staffcommands.cc index f1588ebe23..f99a3d9726 100644 --- a/src/staffcommands.cc +++ b/src/staffcommands.cc @@ -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 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 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 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(); - } -}