mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
automation line: add dump() method to inspect GUI control points
This commit is contained in:
parent
8c6fa19bcf
commit
3d96a318ac
2 changed files with 13 additions and 0 deletions
|
|
@ -1398,6 +1398,18 @@ AutomationLine::add_visible_control_point (uint32_t view_index, uint32_t pi, dou
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
AutomationLine::dump (std::ostream& ostr) const
|
||||
{
|
||||
for (auto const & cp : control_points) {
|
||||
if (cp->model() != alist->end()) {
|
||||
ostr << '#' << cp->view_index() << " @ " << cp->get_x() << ", " << cp->get_y() << " for " << (*cp->model())->value << " @ " << (*(cp->model()))->when << std::endl;
|
||||
} else {
|
||||
ostr << "dead point\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
AutomationLine::connect_to_list ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ public:
|
|||
void set_width (Temporal::timecnt_t const &);
|
||||
|
||||
Temporal::timepos_t session_position (Temporal::timepos_t const &) const;
|
||||
void dump (std::ostream&) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue