2 |
* * |
* * |
3 |
* libgig - C++ cross-platform Gigasampler format file access library * |
* libgig - C++ cross-platform Gigasampler format file access library * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003-2019 by Christian Schoenebeck * |
* Copyright (C) 2003-2021 by Christian Schoenebeck * |
6 |
* <cuse@users.sourceforge.net> * |
* <cuse@users.sourceforge.net> * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
529 |
uint32_t MIDIProgram; ///< Specifies the MIDI Program Change Number this Instrument should be assigned to. |
uint32_t MIDIProgram; ///< Specifies the MIDI Program Change Number this Instrument should be assigned to. |
530 |
uint32_t Regions; ///< Reflects the number of <i>Region</i> defintions this Instrument has. |
uint32_t Regions; ///< Reflects the number of <i>Region</i> defintions this Instrument has. |
531 |
|
|
532 |
Region* GetFirstRegion(); |
Region* GetRegionAt(size_t pos); |
533 |
Region* GetNextRegion(); |
Region* GetFirstRegion() LIBGIG_DEPRECATED("Use GetRegionAt() instead."); |
534 |
|
Region* GetNextRegion() LIBGIG_DEPRECATED("Use GetRegionAt() instead."); |
535 |
Region* AddRegion(); |
Region* AddRegion(); |
536 |
void DeleteRegion(Region* pRegion); |
void DeleteRegion(Region* pRegion); |
537 |
virtual void UpdateChunks(progress_t* pProgress) OVERRIDE; |
virtual void UpdateChunks(progress_t* pProgress) OVERRIDE; |
538 |
virtual void DeleteChunks() OVERRIDE; |
virtual void DeleteChunks() OVERRIDE; |
539 |
virtual void CopyAssign(const Instrument* orig); |
virtual void CopyAssign(const Instrument* orig); |
540 |
protected: |
protected: |
541 |
typedef std::list<Region*> RegionList; |
typedef std::vector<Region*> RegionList; |
542 |
struct midi_locale_t { |
struct midi_locale_t { |
543 |
uint32_t bank; |
uint32_t bank; |
544 |
uint32_t instrument; |
uint32_t instrument; |