443 |
|
|
444 |
// Methods |
// Methods |
445 |
double GetVelocityAttenuation(uint8_t MIDIKeyVelocity); |
double GetVelocityAttenuation(uint8_t MIDIKeyVelocity); |
446 |
|
double GetVelocityRelease(uint8_t MIDIKeyVelocity); |
447 |
|
|
448 |
protected: |
protected: |
449 |
DimensionRegion(RIFF::List* _3ewl); |
DimensionRegion(RIFF::List* _3ewl); |
450 |
~DimensionRegion(); |
~DimensionRegion(); |
483 |
static uint Instances; ///< Number of DimensionRegion instances. |
static uint Instances; ///< Number of DimensionRegion instances. |
484 |
static VelocityTableMap* pVelocityTables; ///< Contains the tables corresponding to the various velocity parameters (VelocityResponseCurve and VelocityResponseDepth). |
static VelocityTableMap* pVelocityTables; ///< Contains the tables corresponding to the various velocity parameters (VelocityResponseCurve and VelocityResponseDepth). |
485 |
double* pVelocityAttenuationTable; ///< Points to the velocity table corresponding to the velocity parameters of this DimensionRegion. |
double* pVelocityAttenuationTable; ///< Points to the velocity table corresponding to the velocity parameters of this DimensionRegion. |
486 |
|
double* pVelocityReleaseTable; ///< Points to the velocity table corresponding to the release velocity parameters of this DimensionRegion |
487 |
|
|
488 |
leverage_ctrl_t DecodeLeverageController(_lev_ctrl_t EncodedController); |
leverage_ctrl_t DecodeLeverageController(_lev_ctrl_t EncodedController); |
489 |
|
double* GetVelocityTable(curve_type_t curveType, uint8_t depth, uint8_t scaling); |
490 |
double* CreateVelocityTable(curve_type_t curveType, uint8_t depth, uint8_t scaling); |
double* CreateVelocityTable(curve_type_t curveType, uint8_t depth, uint8_t scaling); |
491 |
}; |
}; |
492 |
|
|
538 |
unsigned long WorstCaseFrameSize; ///< For compressed samples only: size (in bytes) of the largest possible sample frame. |
unsigned long WorstCaseFrameSize; ///< For compressed samples only: size (in bytes) of the largest possible sample frame. |
539 |
unsigned long SamplesPerFrame; ///< For compressed samples only: number of samples in a full sample frame. |
unsigned long SamplesPerFrame; ///< For compressed samples only: number of samples in a full sample frame. |
540 |
buffer_t RAMCache; ///< Buffers samples (already uncompressed) in RAM. |
buffer_t RAMCache; ///< Buffers samples (already uncompressed) in RAM. |
541 |
|
unsigned long FileNo; ///< File number (> 0 when sample is stored in an extension file, 0 when it's in the gig) |
542 |
|
|
543 |
Sample(File* pFile, RIFF::List* waveList, unsigned long WavePoolOffset); |
Sample(File* pFile, RIFF::List* waveList, unsigned long WavePoolOffset, unsigned long fileNo = 0); |
544 |
~Sample(); |
~Sample(); |
545 |
/** |
/** |
546 |
* Swaps the order of the data words in the given memory area |
* Swaps the order of the data words in the given memory area |
725 |
void LoadSamples(progress_t* pProgress = NULL); |
void LoadSamples(progress_t* pProgress = NULL); |
726 |
void LoadInstruments(progress_t* pProgress = NULL); |
void LoadInstruments(progress_t* pProgress = NULL); |
727 |
friend class Region; |
friend class Region; |
728 |
|
|
729 |
|
std::list<RIFF::File*> ExtensionFiles; |
730 |
}; |
}; |
731 |
|
|
732 |
/** Will be thrown whenever a gig specific error occurs while trying to access a Gigasampler File. */ |
/** Will be thrown whenever a gig specific error occurs while trying to access a Gigasampler File. */ |