remove timebar canvas item from markers
[ardour.git] / gtk2_ardour / step_editor.h
index 00be7890a3412a158464c2d6d1956189c1f27213..82df7430170da25a8bbf4542d12e8ab381b45db0 100644 (file)
@@ -1,3 +1,22 @@
+/*
+    Copyright (C) 2012 Paul Davis 
+
+    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
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
 #ifndef __pbd__step_editor_h__
 #define __pbd__step_editor_h__
 
@@ -31,7 +50,7 @@ class StepEditor : public PBD::ScopedConnectionList, public sigc::trackable
         void step_edit_bar_sync ();
         int  step_add_bank_change (uint8_t channel, uint8_t bank);
         int  step_add_program_change (uint8_t channel, uint8_t program);
-        int  step_add_note (uint8_t channel, uint8_t pitch, uint8_t velocity, 
+        int  step_add_note (uint8_t channel, uint8_t pitch, uint8_t velocity,
                             Evoral::MusicalTime beat_duration);
         void step_edit_sustain (Evoral::MusicalTime beats);
         bool step_edit_within_triplet () const;
@@ -61,6 +80,8 @@ class StepEditor : public PBD::ScopedConnectionList, public sigc::trackable
         boost::shared_ptr<ARDOUR::MidiTrack> _track;
         StepEntry*                            step_editor;
         MidiTimeAxisView&                    _mtv;
+        int8_t                                last_added_pitch;
+        Evoral::MusicalTime                   last_added_end;
 
         void region_removed (boost::weak_ptr<ARDOUR::Region>);
         void playlist_changed ();