lilypond-1.1.45
[lilypond.git] / src / accidental.cc
blobeb3ca7c7e3fef6e04c55e0db3390705a838a0236
1 #include "accidental.hh"
2 #include "debug.hh"
3 #include "molecule.hh"
4 #include "paper.hh"
5 #include "lookup.hh"
7 Accidental::Accidental(int t, int p)
9 type = t;
10 pos = p;
13 void
14 Accidental::preprocess()
16 brew_molecole();
19 void
20 Accidental::brew_molecole()
22 Symbol s =paper()->lookup_->accidental(type);
23 output = new Molecule(Atom(s));
24 output->translate(Offset(0, pos * paper()->interline()/2));
27 void
28 Accidental::print()const
30 mtor << "Accidental "<<type;
31 Item::print();