-
Notifications
You must be signed in to change notification settings - Fork 1
/
midimapping.h
executable file
·60 lines (45 loc) · 1.99 KB
/
midimapping.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/////////////////////////////////////////////////////////////////////////////////////////////////////
// PROGRAM: MidyAX 2 - MIDI communications orchestrator - MIDI controllers to AXE-FX //
// AIM: Provide enhanced usability of the AXE-FX by making it possible to set the //
// AXE-FX parameters with a hardware interface (knobs/switches of a MIDI controller //
// like : BCR2000 /BCF2000, XTouch Mini, BeatStep, Guitar Wing ... ) //
// CREATOR: Eric FEUILLEAUBOIS //
// PROG ENV: Qt v5.6 or above, RTMIDI library (https://github.com/thestk/rtmidi) //
// HARDWARE: Tested on RPi / PC / MAC / Linux Box / Pipo X8 //
// LICENSE: GNU GPL v3 - That means OPEN SOFWARE, COPYLEFT and hope it's useful to you //
/////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef MIDIMAPPING_H
#define MIDIMAPPING_H
#include "ui_midimapping.h"
#include <QDialog>
#include "MidyAX_types.h"
class MidyAX;
class MidiMapping : public QDialog
{
Q_OBJECT
public:
explicit MidiMapping(QWidget *parent = 0);
~MidiMapping();
void loadEffectBlocks();
void loadParameters( int effectBlockNum );
void init( );
void initialization();
void setPsbAddState(void);
private slots:
void on_cboEffectBlock_currentIndexChanged(int index);
void on_psbAdd_clicked();
void on_psbDel_clicked();
void on_buttonBox_accepted();
void on_tableMidiMapping_doubleClicked(const QModelIndex &index);
void on_cboParameter_currentIndexChanged(int index);
void on_psbUP_clicked();
void on_psbDOWN_clicked();
void on_MidiMapping_accepted();
private:
Ui::MidiMapping ui;
MidyAX* m_pMidyAXDlgInstance;
int m_sizeIndexToParam;
struct mappingTable m_indexToParam[ 300 ];
void createRow( int index);
};
#endif // MIDIMAPPING_H