450 |
int GetRegionCount(); |
int GetRegionCount(); |
451 |
Region* GetRegion(int idx); |
Region* GetRegion(int idx); |
452 |
|
|
|
std::vector<Region*> GetRegionsOnKey(int key, uint8_t vel); |
|
|
|
|
453 |
protected: |
protected: |
454 |
std::vector<Region*> regions; |
std::vector<Region*> regions; |
455 |
sf2::File* pFile; |
sf2::File* pFile; |
456 |
}; |
}; |
457 |
|
|
458 |
|
class Query { |
459 |
|
public: |
460 |
|
int key; |
461 |
|
uint8_t vel; |
462 |
|
|
463 |
|
Query(InstrumentBase& instrument); |
464 |
|
Region* next(); |
465 |
|
|
466 |
|
private: |
467 |
|
InstrumentBase& instrument; |
468 |
|
int i; |
469 |
|
}; |
470 |
|
|
471 |
class Instrument : public InstrumentBase { |
class Instrument : public InstrumentBase { |
472 |
public: |
public: |
473 |
Instrument(sf2::File* pFile, RIFF::Chunk* ck); |
Instrument(sf2::File* pFile, RIFF::Chunk* ck); |