/[svn]/qsampler/trunk/src/qsamplerInstrument.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerInstrument.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 979 by capela, Sun Dec 3 18:27:23 2006 UTC revision 980 by capela, Sun Dec 17 22:29:29 2006 UTC
# Line 22  Line 22 
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  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
# Line 34  class qsamplerInstrument Line 34  class qsamplerInstrument
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;
# Line 67  public: Line 70  public:
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;

Legend:
Removed from v.979  
changed lines
  Added in v.980

  ViewVC Help
Powered by ViewVC