]> git.donarmstrong.com Git - lilypond.git/blob - lily/pitch-squash-engraver.cc
4851cee02cfdbd1faa72b28f081e62e4174b90e8
[lilypond.git] / lily / pitch-squash-engraver.cc
1 /*   
2   pitch-squash-grav.cc --  implement Pitch_squash_engraver
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #include "pitch-squash-engraver.hh"
11 #include "note-head.hh"
12
13 void
14 Pitch_squash_engraver::acknowledge_element (Score_element_info i)
15 {
16   if (i.elem_l_->is_type_b (Note_head::static_name ()))
17     {
18       Note_head * nl = (Note_head*)dynamic_cast <Item *> (i.elem_l_);
19       nl->position_i_  =0;
20     }
21 }
22
23 ADD_THIS_TRANSLATOR (Pitch_squash_engraver);
24 IMPLEMENT_IS_TYPE_B1(Pitch_squash_engraver, Engraver);
25