#include "edit_note_dialog.h"
#include "canvas-note-event.h"
#include "midi_region_view.h"
+#include "i18n.h"
using namespace Gtk;
return r;
}
+ /* These calls mean that if a value is entered using the keyboard
+ it will be returned by the get_value_as_int()s below.
+ */
+ _channel.update ();
+ _pitch.update ();
+ _velocity.update ();
+
_region_view->start_note_diff_command (_("edit note"));
-
+
bool had_change = false;
if (_channel.get_value_as_int() - 1 != _event->note()->channel()) {
}
double const t = _region_view->time_converter().from (_time_clock.current_time ());
-
+
if (t != _event->note()->time()) {
_region_view->change_note_time (_event, t);
had_change = true;
_region_view->apply_diff ();
- _event->set_selected (_event->selected()); // change color
-
+ _event->set_selected (_event->selected()); // change color
+
return r;
}