#include <gig.h>
Inheritance diagram for gig::DimensionRegion:
Public Member Functions | |
double | GetVelocityAttenuation (uint8_t MIDIKeyVelocity) |
Returns the correct amplitude factor for the given MIDIKeyVelocity. | |
double | GetVelocityRelease (uint8_t MIDIKeyVelocity) |
double | GetVelocityCutoff (uint8_t MIDIKeyVelocity) |
Public Attributes | |
uint8_t | VelocityUpperLimit |
Defines the upper velocity value limit of a velocity split (only if an user defined limit was set, thus a value not equal to 128/NumberOfSplits, else this value is 0). | |
Sample * | pSample |
Points to the Sample which is assigned to the dimension region. | |
uint16_t | EG1PreAttack |
Preattack value of the sample amplitude EG (0 - 1000 permille). | |
double | EG1Attack |
Attack time of the sample amplitude EG (0.000 - 60.000s). | |
double | EG1Decay1 |
Decay time of the sample amplitude EG (0.000 - 60.000s). | |
double | EG1Decay2 |
Only if EG1InfiniteSustain == false: 2nd decay stage time of the sample amplitude EG (0.000 - 60.000s). | |
bool | EG1InfiniteSustain |
If true, instead of going into Decay2 phase, Decay1 level will be hold until note will be released. | |
uint16_t | EG1Sustain |
Sustain value of the sample amplitude EG (0 - 1000 permille). | |
double | EG1Release |
Release time of the sample amplitude EG (0.000 - 60.000s). | |
bool | EG1Hold |
If true, Decay1 stage should be postponed until the sample reached the sample loop start. | |
eg1_ctrl_t | EG1Controller |
MIDI Controller which has influence on sample amplitude EG parameters (attack, decay, release). | |
bool | EG1ControllerInvert |
Invert values coming from defined EG1 controller. | |
uint8_t | EG1ControllerAttackInfluence |
Amount EG1 Controller has influence on the EG1 Attack time (0 - 3, where 0 means off). | |
uint8_t | EG1ControllerDecayInfluence |
Amount EG1 Controller has influence on the EG1 Decay time (0 - 3, where 0 means off). | |
uint8_t | EG1ControllerReleaseInfluence |
Amount EG1 Controller has influence on the EG1 Release time (0 - 3, where 0 means off). | |
double | LFO1Frequency |
Frequency of the sample amplitude LFO (0.10 - 10.00 Hz). | |
uint16_t | LFO1InternalDepth |
Firm pitch of the sample amplitude LFO (0 - 1200 cents). | |
uint16_t | LFO1ControlDepth |
Controller depth influencing sample amplitude LFO pitch (0 - 1200 cents). | |
lfo1_ctrl_t | LFO1Controller |
MIDI Controller which controls sample amplitude LFO. | |
bool | LFO1FlipPhase |
Inverts phase of the sample amplitude LFO wave. | |
bool | LFO1Sync |
If set to true only one LFO should be used for all voices. | |
uint16_t | EG2PreAttack |
Preattack value of the filter cutoff EG (0 - 1000 permille). | |
double | EG2Attack |
Attack time of the filter cutoff EG (0.000 - 60.000s). | |
double | EG2Decay1 |
Decay time of the filter cutoff EG (0.000 - 60.000s). | |
double | EG2Decay2 |
Only if EG2InfiniteSustain == false: 2nd stage decay time of the filter cutoff EG (0.000 - 60.000s). | |
bool | EG2InfiniteSustain |
If true, instead of going into Decay2 phase, Decay1 level will be hold until note will be released. | |
uint16_t | EG2Sustain |
Sustain value of the filter cutoff EG (0 - 1000 permille). | |
double | EG2Release |
Release time of the filter cutoff EG (0.000 - 60.000s). | |
eg2_ctrl_t | EG2Controller |
MIDI Controller which has influence on filter cutoff EG parameters (attack, decay, release). | |
bool | EG2ControllerInvert |
Invert values coming from defined EG2 controller. | |
uint8_t | EG2ControllerAttackInfluence |
Amount EG2 Controller has influence on the EG2 Attack time (0 - 3, where 0 means off). | |
uint8_t | EG2ControllerDecayInfluence |
Amount EG2 Controller has influence on the EG2 Decay time (0 - 3, where 0 means off). | |
uint8_t | EG2ControllerReleaseInfluence |
Amount EG2 Controller has influence on the EG2 Release time (0 - 3, where 0 means off). | |
double | LFO2Frequency |
Frequency of the filter cutoff LFO (0.10 - 10.00 Hz). | |
uint16_t | LFO2InternalDepth |
Firm pitch of the filter cutoff LFO (0 - 1200 cents). | |
uint16_t | LFO2ControlDepth |
Controller depth influencing filter cutoff LFO pitch (0 - 1200). | |
lfo2_ctrl_t | LFO2Controller |
MIDI Controlle which controls the filter cutoff LFO. | |
bool | LFO2FlipPhase |
Inverts phase of the filter cutoff LFO wave. | |
bool | LFO2Sync |
If set to true only one LFO should be used for all voices. | |
double | EG3Attack |
Attack time of the sample pitch EG (0.000 - 10.000s). | |
int16_t | EG3Depth |
Depth of the sample pitch EG (-1200 - +1200). | |
double | LFO3Frequency |
Frequency of the sample pitch LFO (0.10 - 10.00 Hz). | |
int16_t | LFO3InternalDepth |
Firm depth of the sample pitch LFO (-1200 - +1200 cents). | |
int16_t | LFO3ControlDepth |
Controller depth of the sample pitch LFO (-1200 - +1200 cents). | |
lfo3_ctrl_t | LFO3Controller |
MIDI Controller which controls the sample pitch LFO. | |
bool | LFO3Sync |
If set to true only one LFO should be used for all voices. | |
bool | VCFEnabled |
If filter should be used. | |
vcf_type_t | VCFType |
Defines the general filter characteristic (lowpass, highpass, bandpass, etc.). | |
vcf_cutoff_ctrl_t | VCFCutoffController |
Specifies which external controller has influence on the filter cutoff frequency. | |
bool | VCFCutoffControllerInvert |
Inverts values coming from the defined cutoff controller. | |
uint8_t | VCFCutoff |
Max. cutoff frequency. | |
curve_type_t | VCFVelocityCurve |
Defines a transformation curve for the incoming velocity values, affecting the VCF. | |
uint8_t | VCFVelocityScale |
(0-127) Amount velocity controls VCF cutoff frequency (only if no other VCF cutoff controller is defined, otherwise this is the minimum cutoff). | |
uint8_t | VCFVelocityDynamicRange |
0x04 = lowest, 0x00 = highest | |
uint8_t | VCFResonance |
Firm internal filter resonance weight. | |
bool | VCFResonanceDynamic |
If true: Increases the resonance Q according to changes of controllers that actually control the VCF cutoff frequency (EG2, ext. VCF MIDI controller). | |
vcf_res_ctrl_t | VCFResonanceController |
Specifies which external controller has influence on the filter resonance Q. | |
bool | VCFKeyboardTracking |
If true: VCF cutoff frequence will be dependend to the note key position relative to the defined breakpoint value. | |
uint8_t | VCFKeyboardTrackingBreakpoint |
See VCFKeyboardTracking (0 - 127). | |
curve_type_t | VelocityResponseCurve |
Defines a transformation curve to the incoming velocity values affecting amplitude (usually you don't have to interpret this parameter, use GetVelocityAttenuation() instead). | |
uint8_t | VelocityResponseDepth |
Dynamic range of velocity affecting amplitude (0 - 4) (usually you don't have to interpret this parameter, use GetVelocityAttenuation() instead). | |
uint8_t | VelocityResponseCurveScaling |
0 - 127 (usually you don't have to interpret this parameter, use GetVelocityAttenuation() instead) | |
curve_type_t | ReleaseVelocityResponseCurve |
Defines a transformation curve to the incoming release veloctiy values affecting envelope times. | |
uint8_t | ReleaseVelocityResponseDepth |
Dynamic range of release velocity affecting envelope time (0 - 4). | |
uint8_t | ReleaseTriggerDecay |
0 - 8 | |
crossfade_t | Crossfade |
bool | PitchTrack |
If true: sample will be pitched according to the key position (this will be disabled for drums for example). | |
dim_bypass_ctrl_t | DimensionBypass |
If defined, the MIDI controller can switch on/off the dimension in realtime. | |
int8_t | Pan |
Panorama / Balance (-64..0..63 <-> left..middle..right). | |
bool | SelfMask |
If true: high velocity notes will stop low velocity notes at the same note, with that you can save voices that wouldn't be audible anyway. | |
attenuation_ctrl_t | AttenuationController |
MIDI Controller which has influence on the volume level of the sample (or entire sample group). | |
bool | InvertAttenuationController |
Inverts the values coming from the defined Attenuation Controller. | |
uint8_t | AttenuationControllerThreshold |
0-127 | |
uint8_t | ChannelOffset |
Audio output where the audio signal of the dimension region should be routed to (0 - 9). | |
bool | SustainDefeat |
If true: Sustain pedal will not hold a note. | |
bool | MSDecode |
Gigastudio flag: defines if Mid Side Recordings should be decoded. | |
uint16_t | SampleStartOffset |
Number of samples the sample start should be moved (0 - 2000). | |
double | SampleAttenuation |
Sample volume (calculated from DLS::Sampler::Gain). | |
Protected Member Functions | |
DimensionRegion (RIFF::List *_3ewl) | |
~DimensionRegion () | |
Protected Attributes | |
uint8_t | UnityNote |
int16_t | FineTune |
int32_t | Gain |
bool | NoSampleDepthTruncation |
bool | NoSampleCompression |
uint32_t | SampleLoops |
Reflects the number of sample loops. | |
sample_loop_t * | pSampleLoops |
Points to the beginning of a sample loop array, or is NULL if there are no loops defined. | |
uint32_t | SamplerOptions |
Friends | |
class | Region |
Every Gigasampler Instrument has at least one dimension region (exactly then when it has no dimension defined).
Gigasampler provides three Envelope Generators and Low Frequency Oscillators:
Definition at line 351 of file gig.h.
|
|
|
|
Returns the correct amplitude factor for the given MIDIKeyVelocity. All involved parameters (VelocityResponseCurve, VelocityResponseDepth and VelocityResponseCurveScaling) involved are taken into account to calculate the amplitude factor. Use this method when a key was triggered to get the volume with which the sample should be played back.
|
|
|
|
|
|
|
|
MIDI Controller which has influence on the volume level of the sample (or entire sample group).
Definition at line 429 of file gig.h. Referenced by DimensionRegion(). |
|
0-127
Definition at line 431 of file gig.h. Referenced by DimensionRegion(). |
|
Audio output where the audio signal of the dimension region should be routed to (0 - 9).
Definition at line 432 of file gig.h. Referenced by DimensionRegion(). |
|
Definition at line 424 of file gig.h. Referenced by DimensionRegion(). |
|
If defined, the MIDI controller can switch on/off the dimension in realtime.
Definition at line 426 of file gig.h. Referenced by DimensionRegion(). |
|
Attack time of the sample amplitude EG (0.000 - 60.000s).
Definition at line 357 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
MIDI Controller which has influence on sample amplitude EG parameters (attack, decay, release).
Definition at line 364 of file gig.h. Referenced by DimensionRegion(). |
|
Amount EG1 Controller has influence on the EG1 Attack time (0 - 3, where 0 means off).
Definition at line 366 of file gig.h. Referenced by DimensionRegion(). |
|
Amount EG1 Controller has influence on the EG1 Decay time (0 - 3, where 0 means off).
Definition at line 367 of file gig.h. Referenced by DimensionRegion(). |
|
Invert values coming from defined EG1 controller.
Definition at line 365 of file gig.h. Referenced by DimensionRegion(). |
|
Amount EG1 Controller has influence on the EG1 Release time (0 - 3, where 0 means off).
Definition at line 368 of file gig.h. Referenced by DimensionRegion(). |
|
Decay time of the sample amplitude EG (0.000 - 60.000s).
Definition at line 358 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Only if EG1InfiniteSustain == false: 2nd decay stage time of the sample amplitude EG (0.000 - 60.000s).
Definition at line 359 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
If true, Decay1 stage should be postponed until the sample reached the sample loop start.
Definition at line 363 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
If true, instead of going into Decay2 phase, Decay1 level will be hold until note will be released.
Definition at line 360 of file gig.h. Referenced by DimensionRegion(). |
|
Preattack value of the sample amplitude EG (0 - 1000 permille).
Definition at line 356 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Release time of the sample amplitude EG (0.000 - 60.000s).
Definition at line 362 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Sustain value of the sample amplitude EG (0 - 1000 permille).
Definition at line 361 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Attack time of the filter cutoff EG (0.000 - 60.000s).
Definition at line 377 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
MIDI Controller which has influence on filter cutoff EG parameters (attack, decay, release).
Definition at line 383 of file gig.h. Referenced by DimensionRegion(). |
|
Amount EG2 Controller has influence on the EG2 Attack time (0 - 3, where 0 means off).
Definition at line 385 of file gig.h. Referenced by DimensionRegion(). |
|
Amount EG2 Controller has influence on the EG2 Decay time (0 - 3, where 0 means off).
Definition at line 386 of file gig.h. Referenced by DimensionRegion(). |
|
Invert values coming from defined EG2 controller.
Definition at line 384 of file gig.h. Referenced by DimensionRegion(). |
|
Amount EG2 Controller has influence on the EG2 Release time (0 - 3, where 0 means off).
Definition at line 387 of file gig.h. Referenced by DimensionRegion(). |
|
Decay time of the filter cutoff EG (0.000 - 60.000s).
Definition at line 378 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Only if EG2InfiniteSustain == false: 2nd stage decay time of the filter cutoff EG (0.000 - 60.000s).
Definition at line 379 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
If true, instead of going into Decay2 phase, Decay1 level will be hold until note will be released.
Definition at line 380 of file gig.h. Referenced by DimensionRegion(). |
|
Preattack value of the filter cutoff EG (0 - 1000 permille).
Definition at line 376 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Release time of the filter cutoff EG (0.000 - 60.000s).
Definition at line 382 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Sustain value of the filter cutoff EG (0 - 1000 permille).
Definition at line 381 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Attack time of the sample pitch EG (0.000 - 10.000s).
Definition at line 395 of file gig.h. Referenced by DimensionRegion(). |
|
Depth of the sample pitch EG (-1200 - +1200).
Definition at line 396 of file gig.h. Referenced by DimensionRegion(). |
|
Definition at line 362 of file DLS.h. Referenced by PrintDimensionRegions(), and DLS::Sampler::Sampler(). |
|
Definition at line 363 of file DLS.h. Referenced by DimensionRegion(), PrintDimensionRegions(), and DLS::Sampler::Sampler(). |
|
Inverts the values coming from the defined Attenuation Controller.
Definition at line 430 of file gig.h. Referenced by DimensionRegion(). |
|
Controller depth influencing sample amplitude LFO pitch (0 - 1200 cents).
Definition at line 371 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
MIDI Controller which controls sample amplitude LFO.
Definition at line 372 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Inverts phase of the sample amplitude LFO wave.
Definition at line 373 of file gig.h. Referenced by DimensionRegion(). |
|
Frequency of the sample amplitude LFO (0.10 - 10.00 Hz).
Definition at line 369 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Firm pitch of the sample amplitude LFO (0 - 1200 cents).
Definition at line 370 of file gig.h. Referenced by DimensionRegion(). |
|
If set to true only one LFO should be used for all voices.
Definition at line 374 of file gig.h. Referenced by DimensionRegion(). |
|
Controller depth influencing filter cutoff LFO pitch (0 - 1200).
Definition at line 390 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
MIDI Controlle which controls the filter cutoff LFO.
Definition at line 391 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Inverts phase of the filter cutoff LFO wave.
Definition at line 392 of file gig.h. Referenced by DimensionRegion(). |
|
Frequency of the filter cutoff LFO (0.10 - 10.00 Hz).
Definition at line 388 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Firm pitch of the filter cutoff LFO (0 - 1200 cents).
Definition at line 389 of file gig.h. Referenced by DimensionRegion(). |
|
If set to true only one LFO should be used for all voices.
Definition at line 393 of file gig.h. Referenced by DimensionRegion(). |
|
Controller depth of the sample pitch LFO (-1200 - +1200 cents).
Definition at line 399 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
MIDI Controller which controls the sample pitch LFO.
Definition at line 400 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Frequency of the sample pitch LFO (0.10 - 10.00 Hz).
Definition at line 397 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Firm depth of the sample pitch LFO (-1200 - +1200 cents).
Definition at line 398 of file gig.h. Referenced by DimensionRegion(). |
|
If set to true only one LFO should be used for all voices.
Definition at line 401 of file gig.h. Referenced by DimensionRegion(). |
|
Gigastudio flag: defines if Mid Side Recordings should be decoded.
Definition at line 434 of file gig.h. Referenced by DimensionRegion(). |
|
Definition at line 365 of file DLS.h. Referenced by DLS::Sampler::Sampler(). |
|
Definition at line 364 of file DLS.h. Referenced by DLS::Sampler::Sampler(). |
|
Panorama / Balance (-64..0..63 <-> left..middle..right).
Definition at line 427 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
If true: sample will be pitched according to the key position (this will be disabled for drums for example).
Definition at line 425 of file gig.h. Referenced by DimensionRegion(). |
|
Points to the Sample which is assigned to the dimension region.
Definition at line 354 of file gig.h. Referenced by PrintDimensionRegions(). |
|
Points to the beginning of a sample loop array, or is NULL if there are no loops defined.
Definition at line 367 of file DLS.h. Referenced by DLS::Sampler::Sampler(), and DLS::Sampler::~Sampler(). |
|
0 - 8
Definition at line 422 of file gig.h. Referenced by DimensionRegion(). |
|
Defines a transformation curve to the incoming release veloctiy values affecting envelope times.
Definition at line 420 of file gig.h. Referenced by DimensionRegion(). |
|
Dynamic range of release velocity affecting envelope time (0 - 4).
Definition at line 421 of file gig.h. Referenced by DimensionRegion(). |
|
Sample volume (calculated from DLS::Sampler::Gain).
Definition at line 436 of file gig.h. Referenced by DimensionRegion(). |
|
Reflects the number of sample loops.
Definition at line 366 of file DLS.h. Referenced by PrintRegions(), and DLS::Sampler::Sampler(). |
|
Definition at line 369 of file DLS.h. Referenced by DimensionRegion(), and DLS::Sampler::Sampler(). |
|
Number of samples the sample start should be moved (0 - 2000).
Definition at line 435 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
If true: high velocity notes will stop low velocity notes at the same note, with that you can save voices that wouldn't be audible anyway.
Definition at line 428 of file gig.h. Referenced by DimensionRegion(). |
|
If true: Sustain pedal will not hold a note.
Definition at line 433 of file gig.h. Referenced by DimensionRegion(). |
|
Definition at line 361 of file DLS.h. Referenced by PrintDimensionRegions(), and DLS::Sampler::Sampler(). |
|
Max. cutoff frequency.
Definition at line 407 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Specifies which external controller has influence on the filter cutoff frequency.
Definition at line 405 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Inverts values coming from the defined cutoff controller.
Definition at line 406 of file gig.h. Referenced by DimensionRegion(). |
|
If filter should be used.
Definition at line 403 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
If true: VCF cutoff frequence will be dependend to the note key position relative to the defined breakpoint value.
Definition at line 414 of file gig.h. Referenced by DimensionRegion(). |
|
See VCFKeyboardTracking (0 - 127).
Definition at line 415 of file gig.h. Referenced by DimensionRegion(). |
|
Firm internal filter resonance weight.
Definition at line 411 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Specifies which external controller has influence on the filter resonance Q.
Definition at line 413 of file gig.h. Referenced by DimensionRegion(). |
|
If true: Increases the resonance Q according to changes of controllers that actually control the VCF cutoff frequency (EG2, ext. VCF MIDI controller).
Definition at line 412 of file gig.h. Referenced by DimensionRegion(). |
|
Defines the general filter characteristic (lowpass, highpass, bandpass, etc.).
Definition at line 404 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Defines a transformation curve for the incoming velocity values, affecting the VCF.
Definition at line 408 of file gig.h. Referenced by DimensionRegion(). |
|
0x04 = lowest, 0x00 = highest
Definition at line 410 of file gig.h. Referenced by DimensionRegion(). |
|
(0-127) Amount velocity controls VCF cutoff frequency (only if no other VCF cutoff controller is defined, otherwise this is the minimum cutoff).
Definition at line 409 of file gig.h. Referenced by DimensionRegion(). |
|
Defines a transformation curve to the incoming velocity values affecting amplitude (usually you don't have to interpret this parameter, use GetVelocityAttenuation() instead).
Definition at line 417 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
0 - 127 (usually you don't have to interpret this parameter, use GetVelocityAttenuation() instead)
Definition at line 419 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Dynamic range of velocity affecting amplitude (0 - 4) (usually you don't have to interpret this parameter, use GetVelocityAttenuation() instead).
Definition at line 418 of file gig.h. Referenced by DimensionRegion(), and PrintDimensionRegions(). |
|
Defines the upper velocity value limit of a velocity split (only if an user defined limit was set, thus a value not equal to 128/NumberOfSplits, else this value is 0).
Definition at line 353 of file gig.h. Referenced by DimensionRegion(). |