/[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 962 by capela, Sun Dec 3 18:27:23 2006 UTC revision 1499 by capela, Tue Nov 20 16:48:04 2007 UTC
# Line 1  Line 1 
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
# Line 22  Line 23 
23  #ifndef __qsamplerInstrument_h  #ifndef __qsamplerInstrument_h
24  #define __qsamplerInstrument_h  #define __qsamplerInstrument_h
25    
26  #include <qstring.h>  #include <QStringList>
27    
28    
29  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
# Line 34  class qsamplerInstrument Line 35  class qsamplerInstrument
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;
# Line 67  public: Line 71  public:
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;
# Line 86  private: Line 95  private:
95    
96  };  };
97    
   
98  #endif  // __qsamplerInstrument_h  #endif  // __qsamplerInstrument_h
99    
100    

Legend:
Removed from v.962  
changed lines
  Added in v.1499

  ViewVC Help
Powered by ViewVC