diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-08-04 17:19:36 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-08-04 17:19:46 -0400 |
commit | 70def122decd4277ac81989ea57fd101ea9a1058 (patch) | |
tree | 3313d919fa0701293c12bf8f9aa712420ef342ae /tools/bb/gui.h | |
parent | cec84d242ded9b4bffb67edaf9b8b13d71f3ae7f (diff) |
new mini, standalone MIDI beatbox/live looper
This is for experiments with loop sequencing, MIDI region generation and superclock stuff
Diffstat (limited to 'tools/bb/gui.h')
-rw-r--r-- | tools/bb/gui.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tools/bb/gui.h b/tools/bb/gui.h new file mode 100644 index 0000000000..d3d9dc5e00 --- /dev/null +++ b/tools/bb/gui.h @@ -0,0 +1,43 @@ +#ifndef __bb_gui_h__ +#define __bb_gui_h__ + +#include <gtkmm.h> +#include <jack/jack.h> + +class BeatBox; + +class BBGUI { + public: + BBGUI (int*, char** [], jack_client_t* jack, BeatBox* bb); + ~BBGUI (); + + void run (); + + private: + jack_client_t* jack; + BeatBox* bbox; + Gtk::Main main; + Gtk::Window window; + + Gtk::RadioButtonGroup quantize_group; + Gtk::RadioButton quantize_off; + Gtk::RadioButton quantize_32nd; + Gtk::RadioButton quantize_16th; + Gtk::RadioButton quantize_8th; + Gtk::RadioButton quantize_quarter; + Gtk::RadioButton quantize_half; + Gtk::RadioButton quantize_whole; + + Gtk::ToggleButton play_button; + Gtk::Button clear_button; + + Gtk::VBox global_vbox; + Gtk::VBox quantize_button_box; + Gtk::HBox misc_button_box; + + void set_quantize (int divisor); + void toggle_play (); + void clear (); +}; + +#endif /* __bb_gui_h__ */ |