diff options
author | nick_m <mainsbridge@gmail.com> | 2016-09-23 03:39:05 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-09-23 03:39:05 +1000 |
commit | 080e7755a614a71e8a2dcd97fb7310fc3401e5ca (patch) | |
tree | a8bc1cb1515fd4a0cb67f7d592e55bd5a4992f0e /libs/ardour/ardour/midi_region.h | |
parent | d1d8b1aae723b002c3a2330a78b55245707470b3 (diff) |
Remove _midi_regions_use_bbt_beats from Session, _start_pulse and _length_pulse from MidiRegion.
- _start/length_beats are now quarter notes regardless
of loaded session version.
- also restores note colour update
Diffstat (limited to 'libs/ardour/ardour/midi_region.h')
-rw-r--r-- | libs/ardour/ardour/midi_region.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libs/ardour/ardour/midi_region.h b/libs/ardour/ardour/midi_region.h index b19751aaa5..4f76200c35 100644 --- a/libs/ardour/ardour/midi_region.h +++ b/libs/ardour/ardour/midi_region.h @@ -107,11 +107,10 @@ class LIBARDOUR_API MidiRegion : public Region void fix_negative_start (); Evoral::Beats start_beats () {return _start_beats.val(); } + void set_start_beats (const Evoral::Beats start_beats) {_start_beats = start_beats; } 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; } + void set_length_beats (const Evoral::Beats length_beats) {_length_beats = length_beats; } + protected: virtual bool can_trim_start_before_source_start () const { @@ -123,9 +122,6 @@ class LIBARDOUR_API MidiRegion : public Region PBD::Property<Evoral::Beats> _start_beats; PBD::Property<Evoral::Beats> _length_beats; - double _start_pulse; - double _length_pulse; - MidiRegion (const SourceList&); MidiRegion (boost::shared_ptr<const MidiRegion>); MidiRegion (boost::shared_ptr<const MidiRegion>, frameoffset_t offset, const int32_t sub_num = 0); |