summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/midi_region.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-21 00:53:18 +0000
committerDavid Robillard <d@drobilla.net>2010-12-21 00:53:18 +0000
commit71986da212b641b53c4583d0dca02cc87c758291 (patch)
treed68378818beaef8e1eb6caf144d38c6549e73dd8 /libs/ardour/ardour/midi_region.h
parent4e62adfe1a8e7b8158204ee6c0d1fe97c3fdca04 (diff)
Only calculate length_beats from length (in frames) if length property (in frames) is given, but length_beats property is not.
git-svn-id: svn://localhost/ardour2/branches/3.0@8319 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/midi_region.h')
-rw-r--r--libs/ardour/ardour/midi_region.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/libs/ardour/ardour/midi_region.h b/libs/ardour/ardour/midi_region.h
index f5886698d5..edd9ef31e4 100644
--- a/libs/ardour/ardour/midi_region.h
+++ b/libs/ardour/ardour/midi_region.h
@@ -36,13 +36,14 @@
class XMLNode;
namespace ARDOUR {
- namespace Properties {
- /* this is pseudo-property: nothing has this as an actual
- property, but it allows us to signal changes to the
- MidiModel used by the MidiRegion
- */
- extern PBD::PropertyDescriptor<void*> midi_data;
- }
+ namespace Properties {
+ /* this is pseudo-property: nothing has this as an actual
+ property, but it allows us to signal changes to the
+ MidiModel used by the MidiRegion
+ */
+ extern PBD::PropertyDescriptor<void*> midi_data;
+ extern PBD::PropertyDescriptor<Evoral::MusicalTime> length_beats;
+ }
}
namespace ARDOUR {