Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_key.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
11#ifndef __GUI_WIDGETS_CHORD_KEY_H__
12#define __GUI_WIDGETS_CHORD_KEY_H__
13
14#include <gtk/gtk.h>
15
16#define CHORD_KEY_WIDGET_TYPE (chord_key_widget_get_type ())
17G_DECLARE_FINAL_TYPE (ChordKeyWidget, chord_key_widget, Z, CHORD_KEY_WIDGET, GtkGrid)
18
19typedef struct _PianoKeyboardWidget PianoKeyboardWidget;
20
31typedef struct _ChordKeyWidget
32{
33 GtkGrid parent_instance;
34
37
38 GtkLabel * chord_lbl;
39 GtkBox * piano_box;
40 PianoKeyboardWidget * piano;
41 GtkBox * btn_box;
42 GtkButton * choose_chord_btn;
43 GtkButton * invert_prev_btn;
44 GtkButton * invert_next_btn;
45
46 GtkGestureClick * multipress;
48
49void
50chord_key_widget_refresh (ChordKeyWidget * self);
51
58
63#endif
ChordKeyWidget * chord_key_widget_new(int idx)
Creates a ChordKeyWidget for the given MIDI note descriptor.
Piano roll note widget to be shown on the left side of the piano roll (128 of these).
Definition chord_key.h:32
int chord_idx
The chord this widget is for.
Definition chord_key.h:36
Piano Keyboard widget.