22 |
#ifndef __qsamplerInstrument_h |
#ifndef __qsamplerInstrument_h |
23 |
#define __qsamplerInstrument_h |
#define __qsamplerInstrument_h |
24 |
|
|
25 |
#include <qstring.h> |
#include <qstringlist.h> |
26 |
|
|
27 |
|
|
28 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
34 |
public: |
public: |
35 |
|
|
36 |
// Constructor. |
// Constructor. |
37 |
qsamplerInstrument(int iBank = -1, int iProg = -1); |
qsamplerInstrument(int iMap = 0, int iBank = -1, int iProg = -1); |
38 |
|
|
39 |
// Default destructor. |
// Default destructor. |
40 |
~qsamplerInstrument(); |
~qsamplerInstrument(); |
41 |
|
|
42 |
// Instrument accessors. |
// Instrument accessors. |
43 |
|
void setMap(int iMap); |
44 |
|
int map() const; |
45 |
|
|
46 |
void setBank(int iBank); |
void setBank(int iBank); |
47 |
int bank() const; |
int bank() const; |
48 |
|
|
49 |
void setProgram(int iProgram); |
void setProg(int iProg); |
50 |
int program() const; |
int prog() const; |
51 |
|
|
52 |
void setName(const QString& sName); |
void setName(const QString& sName); |
53 |
const QString& name() const; |
const QString& name() const; |
70 |
int loadMode() const; |
int loadMode() const; |
71 |
|
|
72 |
// Sync methods. |
// Sync methods. |
73 |
bool get(); |
bool getInstrument(); |
74 |
bool map(); |
bool mapInstrument(); |
75 |
bool unmap(); |
bool unmapInstrument(); |
76 |
|
|
77 |
|
// Instrument map names initialization... |
78 |
|
static QStringList getMapNames(); |
79 |
|
static QString getMapName(int iMidiMap); |
80 |
|
|
81 |
private: |
private: |
82 |
|
|
83 |
// Instance variables. |
// Instance variables. |
84 |
|
int m_iMap; |
85 |
int m_iBank; |
int m_iBank; |
86 |
int m_iProgram; |
int m_iProg; |
87 |
QString m_sName; |
QString m_sName; |
88 |
QString m_sEngineName; |
QString m_sEngineName; |
89 |
QString m_sInstrumentFile; |
QString m_sInstrumentFile; |