summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/midi_region.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/midi_region.h')
-rw-r--r--libs/ardour/ardour/midi_region.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/ardour/midi_region.h b/libs/ardour/ardour/midi_region.h
index 48706ee7d9..03166bb0c3 100644
--- a/libs/ardour/ardour/midi_region.h
+++ b/libs/ardour/ardour/midi_region.h
@@ -34,8 +34,6 @@ namespace ARDOUR {
namespace Properties {
LIBARDOUR_API extern PBD::PropertyDescriptor<Evoral::Beats> start_beats;
LIBARDOUR_API extern PBD::PropertyDescriptor<Evoral::Beats> length_beats;
- LIBARDOUR_API extern PBD::PropertyDescriptor<double> start_pulse;
- LIBARDOUR_API extern PBD::PropertyDescriptor<double> length_pulse;
}
}
@@ -108,7 +106,9 @@ class LIBARDOUR_API MidiRegion : public Region
Evoral::Beats start_beats () {return _start_beats.val(); }
Evoral::Beats length_beats () {return _length_beats.val(); }
double start_pulse () const {return _start_pulse; }
+ void set_start_pulse (const double start_pulse) {_start_pulse = start_pulse; }
double length_pulse () const {return _length_pulse; }
+ void set_length_pulse (const double length_pulse) {_length_pulse = length_pulse; }
protected:
virtual bool can_trim_start_before_source_start () const {
@@ -119,8 +119,9 @@ class LIBARDOUR_API MidiRegion : public Region
friend class RegionFactory;
PBD::Property<Evoral::Beats> _start_beats;
PBD::Property<Evoral::Beats> _length_beats;
- PBD::Property<double> _start_pulse;
- PBD::Property<double> _length_pulse;
+
+ double _start_pulse;
+ double _length_pulse;
MidiRegion (const SourceList&);
MidiRegion (boost::shared_ptr<const MidiRegion>);