summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/midi_region.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-09-06 00:04:00 +1000
committernick_m <mainsbridge@gmail.com>2016-09-06 00:04:00 +1000
commit5186c69bac29e7b5c542ec98ccf1fb9a7fdac8ea (patch)
tree88ceb18bac71fc9389770195ebf0553d2ff3ff54 /libs/ardour/ardour/midi_region.h
parent74a604d261b1ecb0f20ee0c69aef7648da3a1d86 (diff)
Set start_pulse and length_pulse from state, neither need to be a PBD::Property.
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>);