gig.h   gig.h 
skipping to change at line 446 skipping to change at line 446
// derived attributes from DLS::Sampler // derived attributes from DLS::Sampler
DLS::Sampler::UnityNote; DLS::Sampler::UnityNote;
DLS::Sampler::FineTune; DLS::Sampler::FineTune;
DLS::Sampler::Gain; DLS::Sampler::Gain;
DLS::Sampler::SampleLoops; DLS::Sampler::SampleLoops;
DLS::Sampler::pSampleLoops; DLS::Sampler::pSampleLoops;
// Methods // Methods
double GetVelocityAttenuation(uint8_t MIDIKeyVelocity); double GetVelocityAttenuation(uint8_t MIDIKeyVelocity);
double GetVelocityRelease(uint8_t MIDIKeyVelocity);
protected: protected:
DimensionRegion(RIFF::List* _3ewl); DimensionRegion(RIFF::List* _3ewl);
~DimensionRegion(); ~DimensionRegion();
friend class Region; friend class Region;
private: private:
typedef enum { ///< Used to decode attenuation, EG1 and EG2 con troller typedef enum { ///< Used to decode attenuation, EG1 and EG2 con troller
_lev_ctrl_none = 0x00, _lev_ctrl_none = 0x00,
_lev_ctrl_modwheel = 0x03, ///< Modulation Wheel ( MIDI Controller 1) _lev_ctrl_modwheel = 0x03, ///< Modulation Wheel ( MIDI Controller 1)
_lev_ctrl_breath = 0x05, ///< Breath Controller (Coarse, MIDI Controller 2) _lev_ctrl_breath = 0x05, ///< Breath Controller (Coarse, MIDI Controller 2)
_lev_ctrl_foot = 0x07, ///< Foot Pedal (Coarse , MIDI Controller 4) _lev_ctrl_foot = 0x07, ///< Foot Pedal (Coarse , MIDI Controller 4)
skipping to change at line 484 skipping to change at line 486
_lev_ctrl_effect4depth = 0x2b, ///< Effect 4 Depth (MI DI Controller 94) _lev_ctrl_effect4depth = 0x2b, ///< Effect 4 Depth (MI DI Controller 94)
_lev_ctrl_effect5depth = 0x2d, ///< Effect 5 Depth (MI DI Controller 95) _lev_ctrl_effect5depth = 0x2d, ///< Effect 5 Depth (MI DI Controller 95)
_lev_ctrl_channelaftertouch = 0x2f, ///< Channel Key Pressu re _lev_ctrl_channelaftertouch = 0x2f, ///< Channel Key Pressu re
_lev_ctrl_velocity = 0xff ///< Key Velocity _lev_ctrl_velocity = 0xff ///< Key Velocity
} _lev_ctrl_t; } _lev_ctrl_t;
typedef std::map<uint32_t, double*> VelocityTableMap; typedef std::map<uint32_t, double*> VelocityTableMap;
static uint Instances; ///< Numbe r of DimensionRegion instances. static uint Instances; ///< Numbe r of DimensionRegion instances.
static VelocityTableMap* pVelocityTables; ///< Conta ins the tables corresponding to the various velocity parameters (VelocityRe sponseCurve and VelocityResponseDepth). static VelocityTableMap* pVelocityTables; ///< Conta ins the tables corresponding to the various velocity parameters (VelocityRe sponseCurve and VelocityResponseDepth).
double* pVelocityAttenuationTable; ///< Point s to the velocity table corresponding to the velocity parameters of this Di mensionRegion. double* pVelocityAttenuationTable; ///< Point s to the velocity table corresponding to the velocity parameters of this Di mensionRegion.
double* pVelocityReleaseTable; ///< Point s to the velocity table corresponding to the release velocity parameters of this DimensionRegion
leverage_ctrl_t DecodeLeverageController(_lev_ctrl_t EncodedCon troller); leverage_ctrl_t DecodeLeverageController(_lev_ctrl_t EncodedCon troller);
double* GetVelocityTable(curve_type_t curveType, uint8_t depth, uint8_t scaling);
double* CreateVelocityTable(curve_type_t curveType, uint8_t dep th, uint8_t scaling); double* CreateVelocityTable(curve_type_t curveType, uint8_t dep th, uint8_t scaling);
}; };
/** Encapsulates sample waves used for playback. */ /** Encapsulates sample waves used for playback. */
class Sample : public DLS::Sample { class Sample : public DLS::Sample {
public: public:
uint16_t SampleGroup; uint16_t SampleGroup;
uint32_t Manufacturer; ///< Specifies the MIDI Manuf acturer's Association (MMA) Manufacturer code for the sampler intended to r eceive this file's waveform. If no particular manufacturer is to be specifi ed, a value of 0 should be used. uint32_t Manufacturer; ///< Specifies the MIDI Manuf acturer's Association (MMA) Manufacturer code for the sampler intended to r eceive this file's waveform. If no particular manufacturer is to be specifi ed, a value of 0 should be used.
uint32_t Product; ///< Specifies the MIDI model ID defined by the manufacturer corresponding to the Manufacturer field. If no particular manufacturer's product is to be specified, a value of 0 shou ld be used. uint32_t Product; ///< Specifies the MIDI model ID defined by the manufacturer corresponding to the Manufacturer field. If no particular manufacturer's product is to be specified, a value of 0 shou ld be used.
uint32_t SamplePeriod; ///< Specifies the duration o f time that passes during the playback of one sample in nanoseconds (normal ly equal to 1 / Samplers Per Second, where Samples Per Second is the value found in the format chunk). uint32_t SamplePeriod; ///< Specifies the duration o f time that passes during the playback of one sample in nanoseconds (normal ly equal to 1 / Samplers Per Second, where Samples Per Second is the value found in the format chunk).
 End of changes. 3 change blocks. 
0 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/