1231 |
public: |
public: |
1232 |
String Name; ///< Name of this script group. For example to be displayed in an instrument editor. |
String Name; ///< Name of this script group. For example to be displayed in an instrument editor. |
1233 |
|
|
1234 |
Script* GetScript(uint index); |
Script* GetScript(size_t index); |
1235 |
Script* AddScript(); |
Script* AddScript(); |
1236 |
void DeleteScript(Script* pScript); |
void DeleteScript(Script* pScript); |
1237 |
protected: |
protected: |
1245 |
private: |
private: |
1246 |
File* pFile; |
File* pFile; |
1247 |
RIFF::List* pList; ///< 'RTIS' list chunk |
RIFF::List* pList; ///< 'RTIS' list chunk |
1248 |
std::list<Script*>* pScripts; |
std::vector<Script*>* pScripts; |
1249 |
}; |
}; |
1250 |
|
|
1251 |
/** @brief Provides access to a Gigasampler/GigaStudio instrument. |
/** @brief Provides access to a Gigasampler/GigaStudio instrument. |
1303 |
MidiRuleAlternator* AddMidiRuleAlternator(); |
MidiRuleAlternator* AddMidiRuleAlternator(); |
1304 |
void DeleteMidiRule(int i); |
void DeleteMidiRule(int i); |
1305 |
// real-time instrument script methods |
// real-time instrument script methods |
1306 |
Script* GetScriptOfSlot(uint index); |
Script* GetScriptOfSlot(size_t index); |
1307 |
void AddScriptSlot(Script* pScript, bool bypass = false); |
void AddScriptSlot(Script* pScript, bool bypass = false); |
1308 |
void SwapScriptSlots(uint index1, uint index2); |
void SwapScriptSlots(size_t index1, size_t index2); |
1309 |
void RemoveScriptSlot(uint index); |
void RemoveScriptSlot(size_t index); |
1310 |
void RemoveScript(Script* pScript); |
void RemoveScript(Script* pScript); |
1311 |
uint ScriptSlotCount() const; |
uint ScriptSlotCount() const; |
1312 |
bool IsScriptSlotBypassed(uint index); |
bool IsScriptSlotBypassed(uint index); |
1447 |
Sample* AddSample(); |
Sample* AddSample(); |
1448 |
size_t CountSamples(); |
size_t CountSamples(); |
1449 |
void DeleteSample(Sample* pSample); |
void DeleteSample(Sample* pSample); |
1450 |
Instrument* GetFirstInstrument(); ///< Returns a pointer to the first <i>Instrument</i> object of the file, <i>NULL</i> otherwise. |
Instrument* GetFirstInstrument() LIBGIG_DEPRECATED_API("Use GetInstrument() instead."); |
1451 |
Instrument* GetNextInstrument(); ///< Returns a pointer to the next <i>Instrument</i> object of the file, <i>NULL</i> otherwise. |
Instrument* GetNextInstrument() LIBGIG_DEPRECATED_API("Use GetInstrument() instead."); |
1452 |
Instrument* GetInstrument(uint index, progress_t* pProgress = NULL); |
Instrument* GetInstrument(size_t index, progress_t* pProgress = NULL); |
1453 |
Instrument* AddInstrument(); |
Instrument* AddInstrument(); |
1454 |
Instrument* AddDuplicateInstrument(const Instrument* orig); |
Instrument* AddDuplicateInstrument(const Instrument* orig); |
1455 |
size_t CountInstruments(); |
size_t CountInstruments(); |
1456 |
void DeleteInstrument(Instrument* pInstrument); |
void DeleteInstrument(Instrument* pInstrument); |
1457 |
Group* GetFirstGroup(); ///< Returns a pointer to the first <i>Group</i> object of the file, <i>NULL</i> otherwise. |
Group* GetFirstGroup() LIBGIG_DEPRECATED_API("Use GetGroup() instead."); |
1458 |
Group* GetNextGroup(); ///< Returns a pointer to the next <i>Group</i> object of the file, <i>NULL</i> otherwise. |
Group* GetNextGroup() LIBGIG_DEPRECATED_API("Use GetGroup() instead."); |
1459 |
Group* GetGroup(uint index); |
Group* GetGroup(size_t index); |
1460 |
Group* GetGroup(String name); |
Group* GetGroup(String name); |
1461 |
Group* AddGroup(); |
Group* AddGroup(); |
1462 |
void DeleteGroup(Group* pGroup); |
void DeleteGroup(Group* pGroup); |
1464 |
void SetAutoLoad(bool b); |
void SetAutoLoad(bool b); |
1465 |
bool GetAutoLoad(); |
bool GetAutoLoad(); |
1466 |
void AddContentOf(File* pFile); |
void AddContentOf(File* pFile); |
1467 |
ScriptGroup* GetScriptGroup(uint index); |
ScriptGroup* GetScriptGroup(size_t index); |
1468 |
ScriptGroup* GetScriptGroup(const String& name); |
ScriptGroup* GetScriptGroup(const String& name); |
1469 |
ScriptGroup* AddScriptGroup(); |
ScriptGroup* AddScriptGroup(); |
1470 |
void DeleteScriptGroup(ScriptGroup* pGroup); |
void DeleteScriptGroup(ScriptGroup* pGroup); |
1492 |
friend class Group; // so Group can access protected member pRIFF |
friend class Group; // so Group can access protected member pRIFF |
1493 |
friend class ScriptGroup; // so ScriptGroup can access protected member pRIFF |
friend class ScriptGroup; // so ScriptGroup can access protected member pRIFF |
1494 |
private: |
private: |
1495 |
std::list<Group*>* pGroups; |
std::vector<Group*>* pGroups; |
1496 |
std::list<Group*>::iterator GroupsIterator; |
std::vector<Group*>::iterator GroupsIterator; |
1497 |
bool bAutoLoad; |
bool bAutoLoad; |
1498 |
std::list<ScriptGroup*>* pScriptGroups; |
std::vector<ScriptGroup*>* pScriptGroups; |
1499 |
|
|
1500 |
bool UsesAnyGigFormatExtension() const; |
bool UsesAnyGigFormatExtension() const; |
1501 |
}; |
}; |