, quantize_whole (quantize_group, "Whole")
, play_button ("Run")
, clear_button ("Clear")
+ , tempo_adjustment (bb->tempo(), 1, 300, 1, 10)
+ , tempo_spinner (tempo_adjustment)
{
quantize_off.signal_toggled().connect (sigc::bind (sigc::mem_fun (*this, &BBGUI::set_quantize), 0));
quantize_32nd.signal_toggled().connect (sigc::bind (sigc::mem_fun (*this, &BBGUI::set_quantize), 32));
misc_button_box.pack_start (play_button);
misc_button_box.pack_start (clear_button);
+ tempo_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &BBGUI::tempo_changed));
+
+ misc_button_box.pack_start (tempo_spinner);
+
global_vbox.pack_start (misc_button_box);
global_vbox.pack_start (quantize_button_box, true, true);
window.add (global_vbox);
main.run ();
}
+void
+BBGUI::tempo_changed ()
+{
+ float t = tempo_adjustment.get_value();
+ bbox->set_tempo (t);
+}
+
void
BBGUI::set_quantize (int divisor)
{