1 |
// qsamplerInstrument.h |
// qsamplerInstrument.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
23 |
#ifndef __qsamplerInstrument_h |
#ifndef __qsamplerInstrument_h |
24 |
#define __qsamplerInstrument_h |
#define __qsamplerInstrument_h |
25 |
|
|
26 |
#include <qstring.h> |
#include <QStringList> |
27 |
|
|
28 |
|
|
29 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
35 |
public: |
public: |
36 |
|
|
37 |
// Constructor. |
// Constructor. |
38 |
qsamplerInstrument(int iBank = -1, int iProg = -1); |
qsamplerInstrument(int iMap = 0, int iBank = -1, int iProg = -1); |
39 |
|
|
40 |
// Default destructor. |
// Default destructor. |
41 |
~qsamplerInstrument(); |
~qsamplerInstrument(); |
42 |
|
|
43 |
// Instrument accessors. |
// Instrument accessors. |
44 |
|
void setMap(int iMap); |
45 |
|
int map() const; |
46 |
|
|
47 |
void setBank(int iBank); |
void setBank(int iBank); |
48 |
int bank() const; |
int bank() const; |
49 |
|
|
50 |
void setProgram(int iProgram); |
void setProg(int iProg); |
51 |
int program() const; |
int prog() const; |
52 |
|
|
53 |
void setName(const QString& sName); |
void setName(const QString& sName); |
54 |
const QString& name() const; |
const QString& name() const; |
71 |
int loadMode() const; |
int loadMode() const; |
72 |
|
|
73 |
// Sync methods. |
// Sync methods. |
74 |
bool get(); |
bool getInstrument(); |
75 |
bool map(); |
bool mapInstrument(); |
76 |
bool unmap(); |
bool unmapInstrument(); |
77 |
|
|
78 |
|
// Instrument map names initialization... |
79 |
|
static QStringList getMapNames(); |
80 |
|
static QString getMapName(int iMidiMap); |
81 |
|
|
82 |
private: |
private: |
83 |
|
|
84 |
// Instance variables. |
// Instance variables. |
85 |
|
int m_iMap; |
86 |
int m_iBank; |
int m_iBank; |
87 |
int m_iProgram; |
int m_iProg; |
88 |
QString m_sName; |
QString m_sName; |
89 |
QString m_sEngineName; |
QString m_sEngineName; |
90 |
QString m_sInstrumentFile; |
QString m_sInstrumentFile; |
95 |
|
|
96 |
}; |
}; |
97 |
|
|
|
|
|
98 |
#endif // __qsamplerInstrument_h |
#endif // __qsamplerInstrument_h |
99 |
|
|
100 |
|
|