From 3965e077f0c78e21dca7f92a3f65578d20762ee9 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sun, 6 Feb 2005 11:00:43 +0000 Subject: [PATCH] *** empty log message *** --- lily/drum-note-performer.cc | 27 --------------------------- lily/include/audio-item.hh | 2 -- lily/note-performer.cc | 27 --------------------------- 3 files changed, 56 deletions(-) diff --git a/lily/drum-note-performer.cc b/lily/drum-note-performer.cc index d1b38e4b77..e2f8c697ed 100644 --- a/lily/drum-note-performer.cc +++ b/lily/drum-note-performer.cc @@ -24,7 +24,6 @@ protected: private: Link_array note_evs_; Link_array notes_; - Link_array delayeds_; }; void @@ -60,21 +59,6 @@ Drum_note_performer::stop_translation_timestep () { // why don't grace notes show up here? // --> grace notes effectively do not get delayed - Global_context * global = get_global_context (); - for (int i = 0; i < notes_.size (); i++) - { - Audio_note* n = notes_[i]; - Moment m = n->delayed_until_mom_; - if (m.to_bool ()) - { - global->add_moment_to_process (m); - delayeds_.push (n); - notes_[i] = 0; - notes_.del (i); - i--; - } - } - Moment now = now_mom (); for (int i = 0; i < notes_.size (); i++) { @@ -82,17 +66,6 @@ Drum_note_performer::stop_translation_timestep () } notes_.clear (); note_evs_.clear (); - for (int i = 0; i < delayeds_.size (); i++) - { - Audio_note* n = delayeds_[i]; - if (n->delayed_until_mom_ <= now) - { - play_element (n); - delayeds_[i] = 0; - delayeds_.del (i); - i--; - } - } } bool diff --git a/lily/include/audio-item.hh b/lily/include/audio-item.hh index 84cdcdada2..2dae497bdc 100644 --- a/lily/include/audio-item.hh +++ b/lily/include/audio-item.hh @@ -61,8 +61,6 @@ public: Pitch pitch_; Moment length_mom_; - Moment delayed_mom_; - Moment delayed_until_mom_; int transposing_; Audio_note* tied_; }; diff --git a/lily/note-performer.cc b/lily/note-performer.cc index 98cdbff874..531b4788d6 100644 --- a/lily/note-performer.cc +++ b/lily/note-performer.cc @@ -28,7 +28,6 @@ protected: private: Link_array note_evs_; Link_array notes_; - Link_array delayeds_; }; void @@ -65,21 +64,6 @@ Note_performer::stop_translation_timestep () { // why don't grace notes show up here? // --> grace notes effectively do not get delayed - Global_context * global = get_global_context (); - for (int i = 0; i < notes_.size (); i++) - { - Audio_note* n = notes_[i]; - Moment m = n->delayed_until_mom_; - if (m.to_bool ()) - { - global->add_moment_to_process (m); - delayeds_.push (n); - notes_[i] = 0; - notes_.del (i); - i--; - } - } - Moment now = now_mom (); for (int i = 0; i < notes_.size (); i++) { @@ -87,17 +71,6 @@ Note_performer::stop_translation_timestep () } notes_.clear (); note_evs_.clear (); - for (int i = 0; i < delayeds_.size (); i++) - { - Audio_note* n = delayeds_[i]; - if (n->delayed_until_mom_ <= now) - { - play_element (n); - delayeds_[i] = 0; - delayeds_.del (i); - i--; - } - } } bool -- 2.39.5