void set_length_beats(TimeType l) { _length_beats = l; }
TimeType length_beats() const { return _length_beats; }
- double length_pulse() const { return _length_pulse; }
virtual void load_model(const Glib::Threads::Mutex::Lock& lock, bool force_reload=false) = 0;
virtual void destroy_model(const Glib::Threads::Mutex::Lock& lock) = 0;
mutable bool _model_iter_valid;
mutable Evoral::Beats _length_beats;
- mutable double _length_pulse;
mutable framepos_t _last_read_end;
/** The total duration of the current capture. */
, _writing(false)
, _model_iter_valid(false)
, _length_beats(0.0)
- , _length_pulse(0.0)
, _last_read_end(0)
, _capture_length(0)
, _capture_loop_length(0)
, _writing(false)
, _model_iter_valid(false)
, _length_beats(0.0)
- , _length_pulse(0.0)
, _last_read_end(0)
, _capture_length(0)
, _capture_loop_length(0)
TempoMap& map (_session.tempo_map());
BeatsFramesConverter converter(map, position);
_length_beats = converter.from(capture_length);
- _length_pulse = map.pulse_at_frame (position + capture_length) - map.pulse_at_frame (position);
}
void
}
_length_beats = max(_length_beats, time);
- /* midi is in quarter note format as distinct from ardour beat */
- _length_pulse = _length_beats.to_double() / 4.0;
const Evoral::Beats delta_time_beats = time - _last_ev_time_beats;
const uint32_t delta_time_ticks = delta_time_beats.to_ticks(ppqn());
}
_length_beats = max(_length_beats, ev_time_beats);
- /* midi is in quarter note format as distinct from ardour beat */
- _length_pulse = _length_beats.to_double() / 4.0;
const Evoral::Beats last_time_beats = converter.from (_last_ev_time_frames);
const Evoral::Beats delta_time_beats = ev_time_beats - last_time_beats;
size = scratch_size;
_length_beats = max(_length_beats, event_time);
- /* midi is in quarter note format as distinct from ardour beat */
- _length_pulse = _length_beats.to_double() / 4.0;
}
/* event ID's must immediately precede the event they are for */