From e6a4d0a6745c1aba795ffd5c6adbb68ece3259fe Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 20 Dec 1996 13:27:26 +0000 Subject: [PATCH] lilypond-0.0.19 --- hdr/notehead.hh | 5 +++-- src/notehead.cc | 11 ++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hdr/notehead.hh b/hdr/notehead.hh index 3137a1e558..317d74cc3e 100644 --- a/hdr/notehead.hh +++ b/hdr/notehead.hh @@ -17,7 +17,8 @@ struct Notehead : public Item int staff_size; int dots; int balltype; - + int x_dir; + /****************/ void preprocess(); @@ -28,7 +29,7 @@ struct Notehead : public Item */ void print()const; - + static int compare(Notehead*&a, Notehead*&b) ; private: void brew_molecole(); }; diff --git a/src/notehead.cc b/src/notehead.cc index fcbd6745eb..88cb621181 100644 --- a/src/notehead.cc +++ b/src/notehead.cc @@ -8,6 +8,7 @@ Notehead::Notehead(int ss) { + x_dir = 0; staff_size=ss; position = 0; balltype = 0; @@ -18,7 +19,8 @@ void Notehead::print()const { #ifndef NPRINT - mtor << "Head "<position - b->position; +} + void Notehead::brew_molecole() { @@ -49,6 +57,7 @@ Notehead::brew_molecole() dm.translate(Offset(0,dy)); output->add_right(dm); } + output->translate(Offset(x_dir * p->note_width(),0)); bool streepjes = (position<-1)||(position > staff_size+1); if (streepjes) { int dir = sgn(position); -- 2.39.5