void
Audio_column::add_audio_item (Audio_item* l)
{
- audio_item_l_list_.bottom().add (l);
+ audio_item_l_arr_.push (l);
l->audio_column_l_ = this;
}
#ifndef NPRINT
DOUT << "Audio_column {";
DOUT << "at: " << at_mom_ << ". Contains:";
- for (PCursor<Audio_item*> i (audio_item_l_list_.top ()); i.ok (); i++)
- DOUT << classname (i.ptr ()) << ", ";
+ for (int i =0; i < audio_item_l_arr_.size (); i++)
+ DOUT << classname (audio_item_l_arr_[i]) << ", ";
DOUT << "\n}\n";
#endif
}
#define AUDIO_COLUMN_HH
#include "proto.hh"
-#include "plist.hh"
#include "lily-proto.hh"
#include "moment.hh"
-#include "pcursor.hh"
+#include "parray.hh"
#include "audio-element.hh"
/**
Moment at_mom() const;
void print() const;
- Link_list<Audio_item *> audio_item_l_list_;
+ Link_array<Audio_item> audio_item_l_arr_;
Performance * performance_l_;
private:
Performance ();
~Performance ();
- void add_column (Audio_column*);
- void add_staff (Audio_staff* l);
void add_element (Audio_element*p);
-
void output (Midi_stream& midi_stream_r);
void output_header_track (Midi_stream& midi_stream_r);
{
audio_column_l_->add_audio_item (i);
}
- else if (Audio_staff*s=dynamic_cast<Audio_staff *> (p))
- {
- performance_p_->add_staff (s);
- }
performance_p_->add_element (p);
}
{
Global_translator::prepare (m);
audio_column_l_ = new Audio_column (m);
- performance_p_->add_column (audio_column_l_);
+ play (audio_column_l_);
post_move_processing ();
}