From db055df9d8cab9854603ca8e8bbd3ad946a2dfaa Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 18 Dec 2022 16:50:52 -0700 Subject: [PATCH] add new files --- gtk2_ardour/velocity_time_axis.cc | 46 +++++++++++++++++++++++++++++++ gtk2_ardour/velocity_time_axis.h | 42 ++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 gtk2_ardour/velocity_time_axis.cc create mode 100644 gtk2_ardour/velocity_time_axis.h diff --git a/gtk2_ardour/velocity_time_axis.cc b/gtk2_ardour/velocity_time_axis.cc new file mode 100644 index 0000000000..5cea5b0edd --- /dev/null +++ b/gtk2_ardour/velocity_time_axis.cc @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2022 Paul Davis + * + * 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. + */ + +#include "velocity_time_axis.h" + +#include "pbd/i18n.h" + +using namespace std; +using namespace ARDOUR; + +VelocityTimeAxisView::VelocityTimeAxisView ( + Session* s, + boost::shared_ptr strip, + boost::shared_ptr a, + boost::shared_ptr c, + PublicEditor& e, + TimeAxisView& parent, + bool show_regions, + ArdourCanvas::Canvas& canvas, + const string & nom, + const string & nomparent + ) + + : AutomationTimeAxisView (s, strip, a, c, Evoral::Parameter (MidiVelocityAutomation), e, parent, show_regions, canvas, nom, nomparent) +{ +} + +VelocityTimeAxisView::~VelocityTimeAxisView() +{ +} + diff --git a/gtk2_ardour/velocity_time_axis.h b/gtk2_ardour/velocity_time_axis.h new file mode 100644 index 0000000000..0519952577 --- /dev/null +++ b/gtk2_ardour/velocity_time_axis.h @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2022 Paul Davis + * + * 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. + */ + +#ifndef __ardour_gtk_velocity_time_axis_h__ +#define __ardour_gtk_velocity_time_axis_h__ + +#include "automation_time_axis.h" + +class VelocityTimeAxisView : public AutomationTimeAxisView +{ +public: + VelocityTimeAxisView (ARDOUR::Session*, + boost::shared_ptr, + boost::shared_ptr, + boost::shared_ptr, + PublicEditor&, + TimeAxisView& parent, + bool show_regions, + ArdourCanvas::Canvas& canvas, + const std::string & name = "", /* translatable */ + const std::string & plug_name = ""); + + ~VelocityTimeAxisView(); + +}; + +#endif /* __ardour_gtk_velocity_time_axis_h__ */