2021-07-18 18:48:53 -04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Ben Loftis <ben@harrisonconsoles.com>
|
|
|
|
*
|
|
|
|
* 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 _gtkardour_varispeed_dialog_h_
|
|
|
|
#define _gtkardour_varispeed_dialog_h_
|
|
|
|
|
|
|
|
#include <gtkmm/spinbutton.h>
|
|
|
|
|
|
|
|
#include "ardour_dialog.h"
|
|
|
|
|
|
|
|
/** A dialog box to select a speed change for "varispeed" recording/playback.
|
|
|
|
* It asks for octaves, semitones, and cents, and sums them to report 'speed'
|
|
|
|
*/
|
|
|
|
|
|
|
|
class VarispeedDialog : public ArdourDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
VarispeedDialog ();
|
2021-07-18 20:30:25 -04:00
|
|
|
void adj_semi (double delta);
|
2021-07-18 18:48:53 -04:00
|
|
|
|
2021-07-18 19:59:33 -04:00
|
|
|
private:
|
2021-07-18 18:48:53 -04:00
|
|
|
void apply_speed ();
|
|
|
|
|
2021-07-18 19:59:33 -04:00
|
|
|
void on_show ();
|
|
|
|
void on_hide ();
|
2021-07-18 18:48:53 -04:00
|
|
|
bool on_key_press_event (GdkEventKey*);
|
|
|
|
|
|
|
|
Gtk::Adjustment _semitones_adjustment;
|
|
|
|
Gtk::Adjustment _cents_adjustment;
|
|
|
|
Gtk::SpinButton _semitones_spinner;
|
|
|
|
Gtk::SpinButton _cents_spinner;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|