* added MIDI panic button (http://tracker.ardour.org/view.php?id=2118)
* bugfix: moving notes above midi 127 or below 0 does not wrap around anymore
* bugfix: deadlock on editing notes after playback (http://tracker.ardour.org/view.php?id=2140) due to unbalanced lock acquire/release
* bugfix: First note off lost in playback (http://tracker.ardour.org/view.php?id=2132)
* bugfix: Last note off lost in saving MIDI files (http://tracker.ardour.org/view.php?id=2132)
* bandaid fix for http://tracker.ardour.org/view.php?id=1985 (Cannot reopen session because jack ports are not unregistered on session close)
* bandaid fix: replaced conf.CheckPKGExists ('\"slv2 >= 0.6.0\"') by conf.CheckPKGExists ('slv2') in SConstruct, because the former would fail, 
  even if SLV 0.6.0 was installed
* added/enabled debugging output for debugging MIDI model (might be removed later)


git-svn-id: svn://localhost/ardour2/branches/3.0@3211 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2008-04-03 21:47:47 +00:00
parent 6554200e66
commit fbfe9a7983
22 changed files with 332 additions and 57 deletions

View file

@ -21,6 +21,7 @@
#define __gtk_ardour_canvas_midi_event_h__
#include "simplerect.h"
#include <libgnomecanvasmm/text.h>
#include <ardour/midi_model.h>
class Editor;
@ -48,13 +49,18 @@ public:
Item* item,
const boost::shared_ptr<ARDOUR::Note> note = boost::shared_ptr<ARDOUR::Note>());
virtual ~CanvasMidiEvent() {}
virtual ~CanvasMidiEvent() { if(_text) delete _text; }
bool on_event(GdkEvent* ev);
bool selected() const { return _selected; }
void selected(bool yn);
void move_event(double dx, double dy);
void show_velocity();
void hide_velocity();
virtual void set_outline_color(uint32_t c) = 0;
virtual void set_fill_color(uint32_t c) = 0;
@ -63,9 +69,6 @@ public:
virtual double x2() = 0;
virtual double y2() = 0;
const Item* item() const { return _item; }
Item* item() { return _item; }
const boost::shared_ptr<ARDOUR::Note> note() { return _note; }
protected:
@ -73,6 +76,7 @@ protected:
MidiRegionView& _region;
Item* const _item;
Text* _text;
State _state;
const boost::shared_ptr<ARDOUR::Note> _note;
bool _own_note;