1 #include "localkeyitem.hh"
7 Local_key_item::Local_key_item(int i)
13 Local_key_item::add (int o, int p , int a,Notehead*head_p)
21 dependencies.add(head_p);
25 Local_key_item::do_pre_processing()
27 accs.sort(Local_acc::compare);
30 Local_key_item::brew_molecule_p()const
33 Molecule* output = new Molecule;
36 for (int i = 0; i < accs.size(); i++) {
37 if (accs[i].octave != lastoct) {
39 Real dy =lastoct*7*paper()->interline()/2;
40 octmol->translate(Offset(0, dy));
46 lastoct = accs[i].octave;
47 Symbol s =paper()->lookup_p_->accidental(accs[i].acc);
49 Real dy = (accs[i].name + c0_position) * paper()->interline()/2;
50 a.translate(Offset(0,dy));
56 Real dy =lastoct*7*paper()->interline()/2;
57 octmol->translate(Offset(0, dy));
65 Local_acc::compare(Local_acc&a, Local_acc&b)
67 if (a.octave - b.octave)
68 return a.octave - b.octave;
70 return a.name - b.name;