<menuitem action='remove-region-sync'/>
<menuitem action='play-selected-regions'/>
<menuitem action='export-region'/>
- <menuitem action='bounce-region'/>
+ <menuitem action='bounce-regions-processed'/>
+ <menuitem action='bounce-regions-unprocessed'/>
<menuitem action='combine-regions'/>
<menuitem action='uncombine-regions'/>
<menuitem action='analyze-region'/>
<popup name='PopupRegionMenu' action='PopupRegionMenu'>
<menuitem action='rename-region'/>
<menuitem action='show-region-properties'/>
+ <menuitem action='combine-regions'/>
+ <menuitem action='uncombine-regions'/>
+ <menuitem action='split-region'/>
+ <menuitem action='split-multichannel-region'/>
<menuitem action='set-region-sync-position'/>
<menuitem action='remove-region-sync'/>
<menuitem action='play-selected-regions'/>
<menuitem action='export-region'/>
- <menuitem action='bounce-region'/>
+ <menuitem action='bounce-regions-processed'/>
+ <menuitem action='bounce-regions-unprocessed'/>
<menuitem action='analyze-region'/>
<menuitem action='toggle-region-lock'/>
<menuitem action='toggle-region-lock-style'/>
<menuitem action='pitch-shift-region'/>
<menuitem action='transpose-region'/>
<menuitem action='naturalize-region'/>
- <menuitem action='combine-regions'/>
- <menuitem action='uncombine-regions'/>
- <menuitem action='split-region'/>
- <menuitem action='split-multichannel-region'/>
- <menuitem action='remove-region'/>
+ <menuitem action='reverse-region'/>
<menuitem action='loop-region'/>
<menuitem action='snap-regions-to-grid'/>
<menuitem action='close-region-gaps'/>
<menuitem action='place-transient' />
<menuitem action='show-rhythm-ferret'/>
<menuitem action='strip-region-silence'/>
- <menuitem action='reverse-region'/>
+ <menuitem action='remove-region'/>
<menu action='RegionMenuLayering'>
<menuitem action='raise-region-to-top'/>
<menuitem action='raise-region'/>
int write_region_selection(RegionSelection&);
bool write_region (std::string path, boost::shared_ptr<ARDOUR::AudioRegion>);
- void bounce_region_selection ();
+ void bounce_region_selection (bool with_processing);
void bounce_range_selection (bool replace, bool enable_processing);
void external_edit_region ();
reg_sens (_region_actions, "play-selected-regions", _("Play"), sigc::mem_fun(*this, &Editor::play_selected_region));
- reg_sens (_region_actions, "bounce-region", _("Bounce"), sigc::mem_fun (*this, &Editor::bounce_region_selection));
+ reg_sens (_region_actions, "bounce-regions-unprocessed", _("Bounce (with processing)"), (sigc::bind (sigc::mem_fun (*this, &Editor::bounce_region_selection), true)));
+ reg_sens (_region_actions, "bounce-regions-processed", _("Bounce (without processing)"), (sigc::bind (sigc::mem_fun (*this, &Editor::bounce_region_selection), false)));
reg_sens (_region_actions, "combine-regions", _("Combine"), sigc::mem_fun (*this, &Editor::combine_regions));
reg_sens (_region_actions, "uncombine-regions", _("Uncombine"), sigc::mem_fun (*this, &Editor::uncombine_regions));
}
void
-Editor::bounce_region_selection ()
+Editor::bounce_region_selection (bool with_processing)
{
- for (RegionSelection::iterator i = selection->regions.begin(); i != selection->regions.end(); ++i) {
-
- RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (&(*i)->get_time_axis_view());
- boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track> (rtv->route());
-
- if (!track->bounceable()) {
- MessageDialog d (
- _("One or more of the selected regions' tracks cannot be bounced because it has more outputs than inputs. "
- "You can fix this by increasing the number of inputs on that track.")
- );
- d.set_title (_("Cannot bounce"));
- d.run ();
- return;
- }
- }
+ /* no need to check for bounceable() because this operation never puts
+ * its results back in the playlist (only in the region list).
+ */
for (RegionSelection::iterator i = selection->regions.begin(); i != selection->regions.end(); ++i) {
InterThreadInfo itt;
- boost::shared_ptr<Region> r = track->bounce_range (region->position(), region->position() + region->length(), itt);
- cerr << "Result of bounce of "
- << region->name() << " len = " << region->length()
- << " was "
- << r->name() << " len = " << r->length()
- << endl;
+ boost::shared_ptr<Region> r = track->bounce_range (region->position(), region->position() + region->length(), itt, with_processing);
}
}
for (TrackViewList::iterator i = views.begin(); i != views.end(); ++i) {
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i);
- if (rtv && rtv->track() && !rtv->track()->bounceable()) {
+ if (rtv && rtv->track() && replace && enable_processing && !rtv->track()->bounceable()) {
MessageDialog d (
- _("One or more selected tracks cannot be bounced because it has more outputs than inputs. "
- "You can fix this by increasing the number of inputs on that track.")
+ _("You can't perform this operation because the processing of the signal "
+ "will cause one or more of the tracks will end up with a region with more channels than this track has inputs.\n\n"
+ "You can do this without processing, which is a different operation.")
);
d.set_title (_("Cannot bounce"));
d.run ();