2014-11-03 16:37:19 -05:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2014 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2014 Robin Gareus <robin@gareus.org>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2014-11-03 16:37:19 -05:00
|
|
|
|
|
|
|
#ifndef __gtk2_ardour_note_select_dialog_h__
|
|
|
|
#define __gtk2_ardour_note_select_dialog_h__
|
|
|
|
|
2014-11-12 18:10:13 -05:00
|
|
|
#include <stdint.h>
|
2014-11-03 16:37:19 -05:00
|
|
|
#include "ardour_dialog.h"
|
2019-10-25 12:01:08 -04:00
|
|
|
#include "pianokeyboard.h"
|
2014-11-03 16:37:19 -05:00
|
|
|
|
|
|
|
class NoteSelectDialog : public ArdourDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NoteSelectDialog();
|
|
|
|
|
|
|
|
uint8_t note_number() const { return _note_number; }
|
|
|
|
|
|
|
|
private:
|
2019-10-25 12:01:08 -04:00
|
|
|
APianoKeyboard _piano;
|
|
|
|
uint8_t _note_number;
|
2019-10-24 13:43:46 -04:00
|
|
|
|
|
|
|
void note_on_event_handler(int, int);
|
2014-11-03 16:37:19 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __gtk2_ardour_note_select_dialog_h__ */
|