void
MidiRegion::update_length_beats ()
{
- cerr << name() << " Updating length beats, currently = " << _length_beats << " w/length = " << _length << endl;
- BeatsFramesConverter converter (_session.tempo_map(), _position);
+ BeatsFramesConverter converter (_session.tempo_map(), _position - _start);
_length_beats = converter.from (_length);
- cerr << "\tnew value: " << _length_beats << endl;
}
void
{
PropertyList plist;
-
+
+ plist.add (Properties::position, region->position ());
plist.add (Properties::length, before);
plist.add (Properties::name, before_name);
plist.add (Properties::left_of_split, true);
{
PropertyList plist;
-
+
+ plist.add (Properties::position, region->position() + before);
plist.add (Properties::length, after);
plist.add (Properties::name, after_name);
plist.add (Properties::right_of_split, true);