mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-26 06:58:22 +01:00
start of beatbox export to region
This commit is contained in:
parent
ab0bbd62a2
commit
86a41641ae
2 changed files with 22 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ BBGUI::BBGUI (boost::shared_ptr<BeatBox> bb)
|
|||
, step_sequencer_tab_button (_("Steps"))
|
||||
, pad_tab_button (_("Pads"))
|
||||
, roll_tab_button (_("Roll"))
|
||||
, export_as_region_button (_(">Region"))
|
||||
, quantize_off (quantize_group, "None")
|
||||
, quantize_32nd (quantize_group, "ThirtySecond")
|
||||
, quantize_16th (quantize_group, "Sixteenth")
|
||||
|
|
@ -95,6 +96,10 @@ BBGUI::BBGUI (boost::shared_ptr<BeatBox> bb)
|
|||
get_vbox()->pack_start (tabs, true, true);
|
||||
get_vbox()->pack_start (quantize_button_box, true, true);
|
||||
|
||||
|
||||
export_as_region_button.signal_clicked.connect (sigc::mem_fun (*this, &BBGUI::export_as_region));
|
||||
get_action_area()->pack_end (export_as_region_button);
|
||||
|
||||
show_all ();
|
||||
}
|
||||
|
||||
|
|
@ -517,3 +522,17 @@ BBGUI::toggle_play ()
|
|||
bbox->start ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
BBGUI::export_as_region ()
|
||||
{
|
||||
std::string path;
|
||||
|
||||
path = "/tmp/foo.smf";
|
||||
if (!bbox->export_to_path (path)) {
|
||||
cerr << "export failed\n";
|
||||
} else {
|
||||
cerr << "export in " << path << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -144,6 +144,9 @@ class BBGUI : public ArdourDialog {
|
|||
|
||||
Gtk::Notebook tabs;
|
||||
|
||||
ArdourWidgets::ArdourButton export_as_region_button;
|
||||
void export_as_region ();
|
||||
|
||||
Gtk::RadioButtonGroup quantize_group;
|
||||
Gtk::RadioButton quantize_off;
|
||||
Gtk::RadioButton quantize_32nd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue