From 084dda86a7c4391aba4e9f37f752af4846ded15d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 15 Sep 2010 18:54:04 +0000 Subject: when there is a chord at the beginning of a note selection, play the whole chord during drags, not just the first note. seems to be able to send a bank swap message - probably an existingbug git-svn-id: svn://localhost/ardour2/branches/3.0@7784 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/note_player.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 gtk2_ardour/note_player.h (limited to 'gtk2_ardour/note_player.h') diff --git a/gtk2_ardour/note_player.h b/gtk2_ardour/note_player.h new file mode 100644 index 0000000000..7df4af4445 --- /dev/null +++ b/gtk2_ardour/note_player.h @@ -0,0 +1,34 @@ +#ifndef __gtk2_ardour_note_player_h__ +#define __gtk2_ardour_note_player_h__ + +#include +#include +#include + +#include "evoral/Note.hpp" + +namespace ARDOUR { + class MidiTrack; +} + +class NotePlayer : public sigc::trackable { + public: + typedef Evoral::Note NoteType; + + NotePlayer (boost::shared_ptr); + ~NotePlayer () {} + + void add (boost::shared_ptr); + void play (); + void off (); + + static bool _off (NotePlayer*); + + private: + typedef std::vector > NoteList; + + boost::shared_ptr track; + NoteList notes; +}; + +#endif /* __gtk2_ardour_note_player_h__ */ -- cgit v1.2.3