X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fmidi_playlist.h;h=ccadb39e92ee4c8db6e8813050c2561388807b33;hb=baacf1c7b44773cc46ac2e11839502c5ae23f8ac;hp=11c1288e92d907ebee801e651f02ba298204bb41;hpb=bb9cc45cd22af67ac275a5e73accbe14fee664d8;p=ardour.git diff --git a/libs/ardour/ardour/midi_playlist.h b/libs/ardour/ardour/midi_playlist.h index 11c1288e92..ccadb39e92 100644 --- a/libs/ardour/ardour/midi_playlist.h +++ b/libs/ardour/ardour/midi_playlist.h @@ -1,6 +1,6 @@ /* Copyright (C) 2006 Paul Davis - Written by Dave Robillard, 2006 + Written by Dave Robillard, 2006 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,6 +25,7 @@ #include "ardour/ardour.h" #include "ardour/playlist.h" +#include "ardour/midi_state_tracker.h" #include "evoral/Parameter.hpp" namespace ARDOUR @@ -50,7 +51,7 @@ public: nframes_t read (MidiRingBuffer& buf, nframes_t start, nframes_t cnt, uint32_t chan_n=0); - int set_state (const XMLNode&); + int set_state (const XMLNode&, int version); bool destroy_region (boost::shared_ptr); @@ -58,6 +59,8 @@ public: std::set contained_automation(); + void clear_note_trackers (); + protected: /* playlist "callbacks" */ @@ -71,9 +74,13 @@ protected: private: void dump () const; - bool region_changed (Change, boost::shared_ptr); + bool region_changed (const PBD::PropertyChange&, boost::shared_ptr); NoteMode _note_mode; + + typedef std::map NoteTrackers; + NoteTrackers _note_trackers; + }; } /* namespace ARDOUR */