#include <gtkmm/adjustment.h>
#include <gtkmm2ext/bindings.h>
-#include "ardour_dialog.h"
+#include "ardour_window.h"
#include "gtk_pianokeyboard.h"
class StepEditor;
-class StepEntry : public ArdourDialog
+class StepEntry : public ArdourWindow
{
public:
StepEntry (StepEditor&);
Evoral::MusicalTime note_length();
uint8_t note_velocity() const;
uint8_t note_channel() const;
-
+
int current_octave () const { return (int) floor (octave_adjustment.get_value()); }
-
+
private:
Evoral::MusicalTime _current_note_length;
uint8_t _current_note_velocity;
void insert_fsharp ();
void insert_g ();
void insert_gsharp ();
-
+
void note_length_change (GtkAction*);
void note_velocity_change (GtkAction*);
void prev_octave ();
void octave_n (int n);
+ void octave_0 () { octave_n (0); }
void octave_1 () { octave_n (1); }
void octave_2 () { octave_n (2); }
void octave_3 () { octave_n (3); }
void octave_8 () { octave_n (8); }
void octave_9 () { octave_n (9); }
void octave_10 () { octave_n (10); }
- void octave_11 () { octave_n (11); }
void dot_change (GtkAction*);
void dot_value_change ();
void toggle_triplet();
void toggle_chord();
-
+
void do_sustain ();
void back();
void sync_to_edit_point ();