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

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

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

revision 264 by capela, Wed Sep 29 13:12:45 2004 UTC revision 371 by capela, Fri Feb 11 15:36:06 2005 UTC
# Line 1  Line 1 
1  // qsamplerChannel.h  // qsamplerChannel.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2003-2004, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2003-2005, rncbc aka Rui Nuno Capela. All rights reserved.
5    
6     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
7     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 50  public: Line 50  public:
50    
51      // LSCP client descriptor accessor.      // LSCP client descriptor accessor.
52      lscp_client_t * client();      lscp_client_t * client();
53        
54        // Add/remove sampler channel methods.
55        bool     addChannel();
56        bool     removeChannel();
57    
58      // Sampler channel ID accessors.      // Sampler channel ID accessors.
59      int      channelID();      int      channelID();
60      void     setChannelID(int iChannelID);      void     setChannelID(int iChannelID);
61            
62        // Readable channel name.
63        QString  channelName();
64    
65      // Engine name property.      // Engine name property.
66      QString& engineName();      QString& engineName();
67      bool     loadEngine(const QString& sEngineName);      bool     loadEngine(const QString& sEngineName);
68            
69      // Instrument file and index.      // Instrument file and index.
70        QString& instrumentName();
71      QString& instrumentFile();      QString& instrumentFile();
72      int      instrumentNr();      int      instrumentNr();
73      int      instrumentStatus();      int      instrumentStatus();
74      bool     loadInstrument(const QString& sInstrumentFile, int iInstrumentNr);      bool     loadInstrument(const QString& sInstrumentFile, int iInstrumentNr);
75        
76      // MIDI input driver (DEPRECATED).      // MIDI input driver (DEPRECATED).
77      QString& midiDriver();      QString& midiDriver();
78      bool     setMidiDriver(const QString& sMidiDriver);      bool     setMidiDriver(const QString& sMidiDriver);
# Line 93  public: Line 101  public:
101      float    volume();      float    volume();
102      bool     setVolume(float fVolume);      bool     setVolume(float fVolume);
103    
104        // Istrument name remapper.
105        void     updateInstrumentName();
106    
107      // Channel info structure map executive.      // Channel info structure map executive.
108      void updateChannelInfo();      bool     updateChannelInfo();
109    
110      // Reset channel method.      // Reset channel method.
111      void resetChannel();      bool     resetChannel();
112    
113        // Channel setup dialog form.
114        bool     channelSetup(QWidget *pParent);
115    
116      // Message logging methods (brainlessly mapped to main form's).      // Message logging methods (brainlessly mapped to main form's).
117      void appendMessages       (const QString & s);      void     appendMessages       (const QString & s);
118      void appendMessagesColor  (const QString & s, const QString & c);      void     appendMessagesColor  (const QString & s, const QString & c);
119      void appendMessagesText   (const QString & s);      void     appendMessagesText   (const QString & s);
120      void appendMessagesError  (const QString & s);      void     appendMessagesError  (const QString & s);
121      void appendMessagesClient (const QString & s);      void     appendMessagesClient (const QString & s);
122    
123        // Context menu event handler.
124        void contextMenuEvent(QContextMenuEvent *pEvent);
125    
126        // Retrieve the available instrument name(s) of an instrument file (.gig).
127        static QString     getInstrumentName (const QString& sInstrumentFile,
128                                                            int iInstrumentNr, bool bInstrumentNames);
129        static QStringList getInstrumentList (const QString& sInstrumentFile,
130                                                            bool bInstrumentNames);
131    
132  private:  private:
133    
# Line 116  private: Line 139  private:
139    
140      // Sampler channel info map.      // Sampler channel info map.
141      QString m_sEngineName;      QString m_sEngineName;
142        QString m_sInstrumentName;
143      QString m_sInstrumentFile;      QString m_sInstrumentFile;
144      int     m_iInstrumentNr;      int     m_iInstrumentNr;
145      int     m_iInstrumentStatus;      int     m_iInstrumentStatus;

Legend:
Removed from v.264  
changed lines
  Added in v.371

  ViewVC Help
Powered by ViewVC