From: fred Date: Fri, 6 Dec 1996 22:18:09 +0000 (+0000) Subject: lilypond-0.0.15 X-Git-Tag: release/1.5.59~6644 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=61dc19d3a01792b157a5a98c5aabc017aea8fb09;p=lilypond.git lilypond-0.0.15 --- diff --git a/hdr/inputcommand.hh b/hdr/inputcommand.hh index aeec3b8ad3..21aeaeacb4 100644 --- a/hdr/inputcommand.hh +++ b/hdr/inputcommand.hh @@ -10,7 +10,6 @@ #include "scalar.hh" #include "vray.hh" - struct Input_command { Real when; @@ -28,6 +27,7 @@ Input_command* get_clef_interpret_command(String w); Input_command *get_reset_command(); Input_command *get_partial_command(Real u); Input_command* get_skip_command( int,Real); +Input_command* get_grouping_command( svec); void interpret_meter(Input_command *c, int &beats_per_meas, int& one_beat, diff --git a/src/getcommands.cc b/src/getcommands.cc index 5b12009ff9..8a133bdd5c 100644 --- a/src/getcommands.cc +++ b/src/getcommands.cc @@ -40,18 +40,4 @@ get_meter_command(Real w, int n, int m) c->priority = 40; return c; } -#if 0 -Command* -get_bar_command(Real w) -{ - Command*c = new Command; - c->when = w; - c->code = INTERPRET; - c->args.add( "BAR"); - c->args.add( "|"); - c->priority = 170; - return c; -} - -#endif diff --git a/src/inputcommand.cc b/src/inputcommand.cc index c0bdb96919..121271e4f0 100644 --- a/src/inputcommand.cc +++ b/src/inputcommand.cc @@ -21,7 +21,7 @@ Input_command::operator Command() c.code = INTERPRET; String s = args[0]; - int p; + int p=0; if (s == "KEY") p = 200; else if (s=="CLEF") @@ -30,6 +30,8 @@ Input_command::operator Command() p = 180; else if (s == "BAR") p = 170; + else if (s == "GROUPING") + p = 160; c.priority = p; c.args = args; @@ -47,6 +49,17 @@ get_partial_command(Real u) return c; } +Input_command* +get_grouping_command(sveca ) +{ + Input_command*c = new Input_command; + c->args.add("GROUPING"); + for (int i=0; i < a.sz(); i ++) + c->args.add(a[i]); + + return c; +} + Input_command* get_key_interpret_command(sveca ) {