2010-07-14 08:29:01 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2010-2012 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2010-2017 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2014 David Robillard <d@drobilla.net>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2010-07-14 08:29:01 -04:00
|
|
|
|
2024-09-20 22:00:46 -04:00
|
|
|
#include "editor_automation_line.h"
|
2010-07-14 08:29:01 -04:00
|
|
|
|
2014-11-30 19:57:15 -05:00
|
|
|
namespace ARDOUR {
|
|
|
|
class MidiRegion;
|
|
|
|
}
|
|
|
|
|
2010-07-14 08:29:01 -04:00
|
|
|
/** Stub class so that lines for MIDI AutomationRegionViews can use the correct
|
|
|
|
* MementoCommandBinder.
|
|
|
|
*/
|
2024-09-20 22:00:46 -04:00
|
|
|
class MidiAutomationLine : public EditorAutomationLine
|
2010-07-14 08:29:01 -04:00
|
|
|
{
|
|
|
|
public:
|
2014-06-21 11:44:22 -04:00
|
|
|
MidiAutomationLine (const std::string&, TimeAxisView&, ArdourCanvas::Item&,
|
2023-02-16 18:33:28 -05:00
|
|
|
std::shared_ptr<ARDOUR::AutomationList>,
|
|
|
|
std::shared_ptr<ARDOUR::MidiRegion>,
|
2020-09-26 11:14:59 -04:00
|
|
|
Evoral::Parameter);
|
2010-07-14 08:29:01 -04:00
|
|
|
|
|
|
|
MementoCommandBinder<ARDOUR::AutomationList>* memento_command_binder ();
|
|
|
|
|
2014-01-06 17:02:55 -05:00
|
|
|
virtual std::string get_verbose_cursor_string (double) const;
|
2021-02-16 17:58:37 -05:00
|
|
|
Temporal::timepos_t get_origin() const;
|
2014-01-06 17:02:55 -05:00
|
|
|
|
2010-07-14 08:29:01 -04:00
|
|
|
private:
|
2023-02-16 18:33:28 -05:00
|
|
|
std::shared_ptr<ARDOUR::MidiRegion> _region;
|
2010-07-14 08:29:01 -04:00
|
|
|
Evoral::Parameter _parameter;
|
|
|
|
};
|