MidiModel used by the MidiRegion
*/
extern PBD::PropertyDescriptor<void*> midi_data;
+ extern PBD::PropertyDescriptor<Evoral::MusicalTime> start_beats;
extern PBD::PropertyDescriptor<Evoral::MusicalTime> length_beats;
}
}
/* export */
- int exportme (ARDOUR::Session&, ARDOUR::ExportSpecification&);
-
boost::shared_ptr<MidiModel> model();
boost::shared_ptr<const MidiModel> model() const;
private:
friend class RegionFactory;
+ PBD::Property<Evoral::MusicalTime> _start_beats;
PBD::Property<Evoral::MusicalTime> _length_beats;
MidiRegion (const SourceList&);
void model_automation_state_changed (Evoral::Parameter const &);
void model_contents_changed ();
+ void set_start_beats_from_start_frames ();
+ void update_after_tempo_map_change ();
+
std::set<Evoral::Parameter> _filtered_parameters; ///< parameters that we ask our source not to return when reading
PBD::ScopedConnection _model_connection;
PBD::ScopedConnection _source_connection;