tracks build ... backends are hard-coded
[ardour.git] / gtk2_ardour / gtk_pianokeyboard.h
index 9241caf89472d7da6e81bb18860d44c74257752c..73b7781dbf131f4b0040de27b6850ebc94b3ebb6 100644 (file)
@@ -40,7 +40,7 @@ typedef struct        _PianoKeyboardClass             PianoKeyboardClass;
 #define OCTAVE_MIN     -1
 #define OCTAVE_MAX     7
 
-struct Note {
+struct PKNote {
        int                     pressed;                /* 1 if key is in pressed down state. */
        int                     sustained;              /* 1 if note is sustained. */
        int                     x;                      /* Distance between the left edge of the key
@@ -59,7 +59,9 @@ struct _PianoKeyboard
        int                     octave;
        int                     widget_margin;
        int                     note_being_pressed_using_mouse;
-       volatile struct Note    notes[NNOTES];
+       int         last_key;
+       gboolean    monophonic;
+       volatile struct PKNote  notes[NNOTES];
        /* Table used to translate from PC keyboard character to MIDI note number. */
        GHashTable              *key_bindings;
 };
@@ -76,6 +78,7 @@ void          piano_keyboard_sustain_release  (PianoKeyboard *pk);
 void           piano_keyboard_set_note_on      (PianoKeyboard *pk, int note);
 void           piano_keyboard_set_note_off     (PianoKeyboard *pk, int note);
 void           piano_keyboard_set_keyboard_cue (PianoKeyboard *pk, int enabled);
+void           piano_keyboard_set_monophonic (PianoKeyboard *pk, gboolean monophonic);
 void           piano_keyboard_set_octave (PianoKeyboard *pk, int octave);
 gboolean       piano_keyboard_set_keyboard_layout (PianoKeyboard *pk, const char *layout);