diff options
author | nick_m <mainsbridge@gmail.com> | 2016-08-31 02:59:14 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-08-31 23:12:11 +1000 |
commit | c0344db37a29372eae48dd2fd00f0f37610bb0ab (patch) | |
tree | f63217a1e95f0edbc389c4a2e0f8f65b56ae866e /libs/ardour/ardour/region.h | |
parent | 9ada4fcc0f4f6d5b8724d5b731c6e720271e89cb (diff) |
Add a pulse property to region.
- separates ardour beat (meter-based) and note (pulse-based)
musical position.
Diffstat (limited to 'libs/ardour/ardour/region.h')
-rw-r--r-- | libs/ardour/ardour/region.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index e86db04cee..9dc51e2d4a 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -58,6 +58,7 @@ namespace Properties { LIBARDOUR_API extern PBD::PropertyDescriptor<framecnt_t> length; LIBARDOUR_API extern PBD::PropertyDescriptor<framepos_t> position; LIBARDOUR_API extern PBD::PropertyDescriptor<double> beat; + LIBARDOUR_API extern PBD::PropertyDescriptor<double> pulse; LIBARDOUR_API extern PBD::PropertyDescriptor<framecnt_t> sync_position; LIBARDOUR_API extern PBD::PropertyDescriptor<layer_t> layer; LIBARDOUR_API extern PBD::PropertyDescriptor<framepos_t> ancestral_start; @@ -177,6 +178,8 @@ class LIBARDOUR_API Region double beat () const { return _beat; } void set_beat (double beat) { _beat = beat; } + double pulse () const { return _pulse; } + void set_pulse (double pulse) { _pulse = pulse; } void suspend_property_changes (); @@ -375,6 +378,7 @@ class LIBARDOUR_API Region PBD::Property<framecnt_t> _length; PBD::Property<framepos_t> _position; PBD::Property<double> _beat; + PBD::Property<double> _pulse; /** Sync position relative to the start of our file */ PBD::Property<framepos_t> _sync_position; |