From: fred Date: Tue, 19 Nov 1996 00:03:24 +0000 (+0000) Subject: lilypond-0.0.11 X-Git-Tag: release/1.5.59~6781 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=12110295109d9dc59e3ed246a90b7273643e5686;p=lilypond.git lilypond-0.0.11 --- diff --git a/src/key.cc b/src/key.cc index 303bf10beb..542549ddf9 100644 --- a/src/key.cc +++ b/src/key.cc @@ -41,7 +41,9 @@ svec Key::read(svec s) { svec newkey; - + for (int j = 0; j < 7; j++) + accidentals[j] = 0; + for (int i=0; i < s.sz(); i++) { int large, small; lookup_notename(large, small, s[i]); diff --git a/src/keyitem.cc b/src/keyitem.cc index d02ed700af..607e144f1a 100644 --- a/src/keyitem.cc +++ b/src/keyitem.cc @@ -43,7 +43,7 @@ Keyitem::brew_molecole() for (int i =0; i < pitch.sz(); i++) { Symbol s= paper()->lookup_->accidental(acc[i]); Atom a(s); - a.translate(Offset(0,c_position + pitch[i] * inter)); + a.translate(Offset(0,(c_position + pitch[i]) * inter)); Molecule m(a); output->add_right(m); } diff --git a/src/melodicstaff.cc b/src/melodicstaff.cc index fc7ccbb8fb..712ffb7e5f 100644 --- a/src/melodicstaff.cc +++ b/src/melodicstaff.cc @@ -38,7 +38,7 @@ Item * Melodic_staff::get_TYPESET_item(Command*com) { if (com->args[0] == "KEY") { - return new Keyitem(NO_LINES); // urgh. + return new Keyitem(NO_LINES); // urgh. depends on clef. } else return Simple_staff::get_TYPESET_item(com); }