Prefer testing the session instead of using a global variable
[ardour.git] / gtk2_ardour / note_player.h
index c39d352dd6aa350d5068d9f42e5d296f2009e309..76eced31d6c46fb3311e9c552defc914c9f40519 100644 (file)
@@ -31,13 +31,14 @@ namespace ARDOUR {
 
 class NotePlayer : public sigc::trackable {
 public:
-       typedef Evoral::Note<Evoral::MusicalTime> NoteType;
+       typedef Evoral::Note<Temporal::Beats> NoteType;
 
        NotePlayer (boost::shared_ptr<ARDOUR::MidiTrack>);
-       ~NotePlayer () {}
+       ~NotePlayer ();
 
        void add (boost::shared_ptr<NoteType>);
        void play ();
+       void on ();
        void off ();
        void clear ();