- 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;
+
+ if (with_processing) {
+ r = track->bounce_range (region->position(), region->position() + region->length(), itt, track->main_outs(), false);
+ } else {
+ r = track->bounce_range (region->position(), region->position() + region->length(), itt, boost::shared_ptr<Processor>(), false);
+ }