20 #ifndef _PIANO_KEYBOARD_H_
21 #define _PIANO_KEYBOARD_H_
void draw_note(cairo_t *cr, int note) const
int get_note_for_xy(int x, int y) const
void queue_note_draw(int note)
void set_note_on(int note)
sigc::signal< void > Rest
sigc::signal< void, bool > SustainChanged
void release_key(int key)
sigc::signal< void, int > NoteOff
sigc::signal< void, bool > SwitchOctave
void set_grand_piano_highlight(bool enabled)
int _note_being_pressed_using_mouse
bool on_key_release_event(GdkEventKey *)
This is a default handler for the signal signal_key_release_event().
void set_annotate_layout(bool enabled)
void on_size_request(Gtk::Requisition *)
This is a default handler for the signal signal_size_request().
void annotate_note(cairo_t *cr, int note) const
void recompute_dimensions()
sigc::signal< void, int > SetVelocity
void set_octave_range(int octave_range)
std::map< std::string, int > _note_stack
void stop_sustained_notes()
void set_octave(int octave)
PangoFontDescription * _font_cue
double black_key_left_shift(int key) const
int is_black(int key) const
sigc::signal< void, int, int > NoteOn
void set_velocities(int min_vel, int max_vel, int key_vel)
bool handle_fixed_keys(GdkEventKey *)
bool on_button_press_event(GdkEventButton *)
This is a default handler for the signal signal_button_press_event().
bool on_key_press_event(GdkEventKey *)
This is a default handler for the signal signal_key_press_event().
void stop_unsustained_notes()
bool _highlight_grand_piano_range
bool on_expose_event(GdkEventExpose *)
This is a default handler for the signal signal_expose_event().
void set_monophonic(bool monophonic)
void on_size_allocate(Gtk::Allocation &)
This is a default handler for the signal signal_size_allocate().
void set_note_off(int note)
sigc::signal< void, int, bool > PitchBend
bool on_motion_notify_event(GdkEventMotion *)
This is a default handler for the signal signal_motion_notify_event().
PangoFontDescription * _font_octave
void set_annotate_octave(bool enabled)
void annotate_layout(cairo_t *cr, int note) const
void press_key(int key, int vel)
void set_keyboard_layout(PianoKeyBindings::Layout layout)
int get_velocity_for_note_at_y(int note, int y) const
PianoKeyBindings _keyboard_layout
bool on_button_release_event(GdkEventButton *)
This is a default handler for the signal signal_button_release_event().