summaryrefslogtreecommitdiff
path: root/rhythmstaff.cc
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@xs4all.nl>1996-11-28 12:02:01 +0100
committerHan-Wen Nienhuys <hanwen@xs4all.nl>1996-11-28 12:02:01 +0100
commitfc22f69328fd2d5030bb1feff8d0f6da37e8217d (patch)
tree9e9c59c8c0c104cf4388f728b19f0e9be7b6991d /rhythmstaff.cc
parentc3fe80ddeb9acfcf5d569fcef1caaef6ef7a01fb (diff)
release: 0.0.8
Diffstat (limited to 'rhythmstaff.cc')
-rw-r--r--rhythmstaff.cc18
1 files changed, 13 insertions, 5 deletions
diff --git a/rhythmstaff.cc b/rhythmstaff.cc
index 7e2706e02d..98d17d522c 100644
--- a/rhythmstaff.cc
+++ b/rhythmstaff.cc
@@ -1,4 +1,5 @@
#include "molecule.hh"
+#include "notehead.hh"
#include "stem.hh"
#include "linestaff.hh"
#include "rhythmstaff.hh"
@@ -28,9 +29,18 @@ Rhythmic_column::typeset_command(Command *com, int breakst)
void
Rhythmic_column::typeset_req(Request *rq)
{
- Item *i =new Item;
- Molecule*m=create_req_mol(rq);
- i->output=m;
+ Item *i ;
+ if (rq->note()) {
+ Notehead *n =new Notehead(1);
+ n->balltype = rq->rhythmic()->balltype;
+ n->dots = rq->rhythmic()->dots;
+ n->position = 0;
+ i = n;
+ } else if (rq->rest()) {
+ i =new Item;
+ Molecule*m=create_req_mol(rq);
+ i->output=m;
+ }
typeset_item(i);
}
@@ -40,9 +50,7 @@ Rhythmic_column::typeset_stem(Stem_req*rq)
Stem * s = new Stem(0);
s->minnote = s->maxnote = 0;
s->flag = rq->stem_number;
- s->calculate();
typeset_item(s);
- s->brew_molecole();
}
/*