source file of the GNU LilyPond music typesetter
- (c) 2000--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 2000--2006 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "performer.hh"
protected:
virtual bool try_music (Music *);
virtual void acknowledge_audio_element (Audio_element_info);
- virtual void process_music ();
- virtual void stop_translation_timestep ();
+ void process_music ();
+ void stop_translation_timestep ();
private:
Audio_dynamic *audio_;
Span_dynamic_performer::acknowledge_audio_element (Audio_element_info i)
{
if (Audio_dynamic *d = dynamic_cast<Audio_dynamic *> (i.elem_))
- {
- last_volume_ = d->volume_;
- }
+ last_volume_ = d->volume_;
}
void
}
if (span_events_[STOP])
- {
- finished_dynamic_tuples_.top ().audio_->volume_ = last_volume_;
- }
+ finished_dynamic_tuples_.top ().audio_->volume_ = last_volume_;
if (span_events_[START])
- {
- dynamic_tuples_[0].audio_->volume_ = last_volume_;
- }
+ dynamic_tuples_[0].audio_->volume_ = last_volume_;
span_events_[START] = 0;
span_events_[STOP] = 0;
}
return false;
}
+#include "translator.icc"
+
ADD_TRANSLATOR (Span_dynamic_performer,
"", "",
"crescendo-event decrescendo-event",
- "", "", "");
+ "", "");