X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frest-engraver.cc;h=8a5622ce468d1db15a8dc27d41e48b3339012d91;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=95a8d10126e2c5cd2296e5d774d59363b7337f0c;hpb=68f8545bd6a0221ee1100336e4ad49399a7ffaa4;p=lilypond.git diff --git a/lily/rest-engraver.cc b/lily/rest-engraver.cc index 95a8d10126..8a5622ce46 100644 --- a/lily/rest-engraver.cc +++ b/lily/rest-engraver.cc @@ -1,9 +1,20 @@ /* - rest-engraver.cc -- implement Rest_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1997--2011 Han-Wen Nienhuys - (c) 1997--2006 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "engraver.hh" @@ -55,29 +66,8 @@ Rest_engraver::process_music () if (rest_event_ && !rest_) { rest_ = make_item ("Rest", rest_event_->self_scm ()); - - int durlog = unsmob_duration (rest_event_->get_property ("duration"))->duration_log (); - - rest_->set_property ("duration-log", - scm_from_int (durlog)); - - int dots = unsmob_duration (rest_event_->get_property ("duration"))->dot_count (); - - if (dots) - { - dot_ = make_item ("Dots", SCM_EOL); - - Rhythmic_head::set_dots (rest_, dot_); - dot_->set_parent (rest_, Y_AXIS); - dot_->set_property ("dot-count", scm_from_int (dots)); - } - Pitch *p = unsmob_pitch (rest_event_->get_property ("pitch")); - /* - This is ridiculous -- rests don't have pitch, but we act as if - our nose is bleeding. - */ if (p) { int pos = p->steps (); @@ -98,8 +88,15 @@ Rest_engraver::listen_rest (Stream_event *ev) } ADD_TRANSLATOR (Rest_engraver, - /* doc */ "", - /* create */ "Rest Dots", - /* accept */ "rest-event", - /* read */ "middleCPosition", - /* write */ ""); + /* doc */ + "Engrave rests.", + + /* create */ + "Rest ", + + /* read */ + "middleCPosition ", + + /* write */ + "" + );