47 for (uint32_t i = 0; i < region->
n_channels(); ++i) {
55 if (!suffix.empty()) {
56 string::size_type pos = name.find (suffix[0]);
57 if (pos != string::npos && pos > 2) {
58 name = name.substr (0, pos - 1);
62 const string path = (region->
data_type() == DataType::MIDI)
63 ? session.new_midi_source_path (name)
64 : session.new_audio_source_path (name, region->
n_channels(), i,
false,
false);
73 nsrcs.push_back (boost::dynamic_pointer_cast<Source> (
74 SourceFactory::createWritable (region->
data_type(), session,
75 path,
false, session.frame_rate())));
96 now = localtime (&xnow);
99 for (SourceList::iterator si = nsrcs.begin(); si != nsrcs.end(); ++si) {
115 Analyser::queue_source_for_analysis (*si,
false);
120 if (region_name.empty()) {
121 region_name = RegionFactory::new_region_name (region->
name());
137 if (audio_region && audio_r) {
140 audio_r->set_fade_in (audio_region->
fade_in ());
142 audio_r->set_fade_out (audio_region->
fade_out ());
143 *(audio_r->envelope()) = *(audio_region->
envelope ());
145 results.push_back (r);
shared_ptr< T > dynamic_pointer_cast(shared_ptr< U > const &r)
boost::shared_ptr< AutomationList > fade_in()
boost::shared_ptr< AutomationList > fade_out()
LIBPBD_API Transmitter error
std::ostream & endmsg(std::ostream &ostr)
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > start
bool fade_in_active() const
virtual void set_timeline_position(framepos_t pos)
boost::shared_ptr< AutomationList > envelope()
const DataType & data_type() const
bool fade_out_active() const
gain_t scale_amplitude() const
std::vector< std::string > master_source_names()
void done_with_peakfile_writes(bool done=true)
framepos_t position() const
LIBPBD_API Glib::ustring basename_nosuffix(Glib::ustring)
uint32_t n_channels() const
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > position
void set_scale_amplitude(gain_t)
framecnt_t length() const
std::vector< boost::shared_ptr< Source > > SourceList
bool add(PropertyBase *prop)
LIBARDOUR_API PBD::PropertyDescriptor< bool > whole_file
std::string string_compose(const std::string &fmt, const T1 &o1)
virtual int update_header(framepos_t when, struct tm &, time_t)=0
LIBARDOUR_API PBD::PropertyDescriptor< framecnt_t > length