#include <glibmm/main.h>
#include "ardour/midi_track.h"
-#include "ardour/session.h"
#include "note_player.h"
{
}
+NotePlayer::~NotePlayer ()
+{
+ clear ();
+}
+
void
NotePlayer::add (boost::shared_ptr<NoteType> note)
{
}
void
-NotePlayer::play ()
+NotePlayer::on ()
{
for (Notes::iterator n = notes.begin(); n != notes.end(); ++n) {
track->write_immediate_event ((*n)->on_event().size(), (*n)->on_event().buffer());
}
+}
+
+void
+NotePlayer::play ()
+{
+ on ();
/* note: if there is more than 1 note, we will silence them all at the same time
*/