- box = manage (new HBox);
- box->set_spacing (6);
- box->pack_start (detection_threshold_label, false, false);
- box->pack_start (detection_threshold_scale, true, true);
- perc_onset_packer.pack_start (*box, false, false);
-
- box = manage (new HBox);
- box->set_spacing (6);
- box->pack_start (sensitivity_label, false, false);
- box->pack_start (sensitivity_scale, true, true);
- perc_onset_packer.pack_start (*box, false, false);
-
- box = manage (new HBox);
- box->set_spacing (6);
- box->pack_start (onset_function_label, false, false);
- box->pack_start (onset_detection_function_selector, true, true);
- note_onset_packer.pack_start (*box, false, false);
-
- box = manage (new HBox);
- box->set_spacing (6);
- box->pack_start (peak_picker_label, false, false);
- box->pack_start (peak_picker_threshold_scale, true, true);
- note_onset_packer.pack_start (*box, false, false);
-
- box = manage (new HBox);
- box->set_spacing (6);
- box->pack_start (silence_label, false, false);
- box->pack_start (silence_threshold_scale, true, true);
- note_onset_packer.pack_start (*box, false, false);
+ t->attach (*manage (new Label (_("Peak threshold"), 1, 0.5)), 0, 1, n, n + 1, FILL);
+ t->attach (peak_picker_threshold_scale, 1, 2, n, n + 1, FILL);
+ ++n;