mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
temporal: stub API for tempo map cut/copy/paste
This commit is contained in:
parent
b3040a31fc
commit
f7ba9af6b2
2 changed files with 33 additions and 0 deletions
|
|
@ -851,6 +851,32 @@ TempoMap::copy_points (TempoMap const & other)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TempoMapCutBuffer*
|
||||||
|
TempoMap::cut (timepos_t const & start, timepos_t const & end)
|
||||||
|
{
|
||||||
|
return cut_copy (start, end, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
TempoMapCutBuffer*
|
||||||
|
TempoMap::copy ( timepos_t const & start, timepos_t const & end)
|
||||||
|
{
|
||||||
|
return cut_copy (start, end, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TempoMapCutBuffer*
|
||||||
|
TempoMap::cut_copy (timepos_t const & start, timepos_t const & end, bool copy)
|
||||||
|
{
|
||||||
|
TempoMapCutBuffer* cb;
|
||||||
|
|
||||||
|
return cb;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
TempoMap::paste (TempoMapCutBuffer& cb, timepos_t const & position)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
MeterPoint*
|
MeterPoint*
|
||||||
TempoMap::add_meter (MeterPoint* mp)
|
TempoMap::add_meter (MeterPoint* mp)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ namespace Temporal {
|
||||||
|
|
||||||
class Meter;
|
class Meter;
|
||||||
class TempoMap;
|
class TempoMap;
|
||||||
|
class TempoMapCutBuffer;
|
||||||
|
|
||||||
class MapOwned {
|
class MapOwned {
|
||||||
protected:
|
protected:
|
||||||
|
|
@ -817,6 +818,10 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible
|
||||||
LIBTEMPORAL_API TempoMetric metric_at (Beats const &, bool can_match = true) const;
|
LIBTEMPORAL_API TempoMetric metric_at (Beats const &, bool can_match = true) const;
|
||||||
LIBTEMPORAL_API TempoMetric metric_at (BBT_Argument const &, bool can_match = true) const;
|
LIBTEMPORAL_API TempoMetric metric_at (BBT_Argument const &, bool can_match = true) const;
|
||||||
|
|
||||||
|
LIBTEMPORAL_API TempoMapCutBuffer* cut (timepos_t const & start, timepos_t const & end);
|
||||||
|
LIBTEMPORAL_API TempoMapCutBuffer* copy (timepos_t const & start, timepos_t const & end);
|
||||||
|
LIBTEMPORAL_API void paste (TempoMapCutBuffer&, timepos_t const & position);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template<typename TimeType, typename Comparator> TempoPoint const & _tempo_at (TimeType when, Comparator cmp) const {
|
template<typename TimeType, typename Comparator> TempoPoint const & _tempo_at (TimeType when, Comparator cmp) const {
|
||||||
assert (!_tempos.empty());
|
assert (!_tempos.empty());
|
||||||
|
|
@ -1131,6 +1136,8 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible
|
||||||
|
|
||||||
void reset_section (Points::iterator& begin, Points::iterator& end, superclock_t, TempoMetric& metric);
|
void reset_section (Points::iterator& begin, Points::iterator& end, superclock_t, TempoMetric& metric);
|
||||||
|
|
||||||
|
TempoMapCutBuffer* cut_copy (timepos_t const & start, timepos_t const & end, bool copy);
|
||||||
|
|
||||||
/* These are not really const, but the lookup tables are marked mutable
|
/* These are not really const, but the lookup tables are marked mutable
|
||||||
* to allow time domain conversions to store their results while being
|
* to allow time domain conversions to store their results while being
|
||||||
* marked const (which is more semantically correct).
|
* marked const (which is more semantically correct).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue