X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpitch-squash-engraver.cc;h=e8f3b5335d335b53350aa1af9473195618eb1db6;hb=0c6341b5bb688413b10a18b68b68542b411b3999;hp=fa00090e9b8f514dae91709a9baaacf1442fae6c;hpb=c7a23c5c727ce283c5a2e9fc44382d22c7728905;p=lilypond.git diff --git a/lily/pitch-squash-engraver.cc b/lily/pitch-squash-engraver.cc index fa00090e9b..e8f3b5335d 100644 --- a/lily/pitch-squash-engraver.cc +++ b/lily/pitch-squash-engraver.cc @@ -3,18 +3,21 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2005 Han-Wen Nienhuys + (c) 1997--2007 Han-Wen Nienhuys */ + +#include "engraver.hh" + #include "staff-symbol-referencer.hh" #include "note-head.hh" #include "rhythmic-head.hh" -#include "engraver.hh" +#include "grob.hh" class Pitch_squash_engraver : public Engraver { public: TRANSLATOR_DECLARATIONS (Pitch_squash_engraver); - DECLARE_ACKNOWLEDGER(note_head); + DECLARE_ACKNOWLEDGER (note_head); }; void @@ -22,9 +25,7 @@ Pitch_squash_engraver::acknowledge_note_head (Grob_info i) { SCM newpos = get_property ("squashedPosition"); if (scm_is_number (newpos)) - { - i.grob ()->set_property ("staff-position", newpos); - } + i.grob ()->set_property ("staff-position", newpos); } Pitch_squash_engraver::Pitch_squash_engraver () @@ -32,17 +33,20 @@ Pitch_squash_engraver::Pitch_squash_engraver () } #include "translator.icc" -ADD_ACKNOWLEDGER(Pitch_squash_engraver,note_head); +ADD_ACKNOWLEDGER (Pitch_squash_engraver, note_head); ADD_TRANSLATOR (Pitch_squash_engraver, - /* descr */ - "Set the vertical position of noteheads to " - "@code{squashedPosition}, if that " - "property is set. " - "This can be used to make a single line staff " - "demonstrating the rhythm of a melody.", - - /* creats*/ "", - /* accepts */ "", - /* acks */ "", - /* reads */ "squashedPosition", - /* write */ ""); + /* doc */ + "Set the vertical position of note heads to" + " @code{squashedPosition}, if that property is set. This can" + " be used to make a single-line staff demonstrating the" + " rhythm of a melody.", + + /* create */ + "", + + /* read */ + "squashedPosition ", + + /* write */ + "" + );