74 |
ri.Pan = int(pRegion->pan * 0.63); // convert from -100..100 to -64..63 |
ri.Pan = int(pRegion->pan * 0.63); // convert from -100..100 to -64..63 |
75 |
ri.SampleStartOffset = pRegion->offset ? *(pRegion->offset) : 0; |
ri.SampleStartOffset = pRegion->offset ? *(pRegion->offset) : 0; |
76 |
|
|
|
ri.EG2PreAttack = pRegion->fileg_start * 10; |
|
|
ri.EG2Attack = pRegion->fileg_attack; |
|
|
//ri.EG2Hold = pRegion->fileg_hold; // TODO: |
|
|
ri.EG2Decay1 = pRegion->fileg_decay; |
|
|
ri.EG2Decay2 = pRegion->fileg_decay; |
|
|
ri.EG2Sustain = pRegion->fileg_sustain * 10; |
|
|
ri.EG2InfiniteSustain = true; |
|
|
ri.EG2Release = pRegion->fileg_release; |
|
|
|
|
|
ri.EG3Attack = pRegion->pitcheg_attack; |
|
|
ri.EG3Depth = 0; // TODO: |
|
77 |
ri.VCFEnabled = pRegion->cutoff; |
ri.VCFEnabled = pRegion->cutoff; |
78 |
switch (pRegion->fil_type) { |
switch (pRegion->fil_type) { |
79 |
case ::sfz::LPF_1P: |
case ::sfz::LPF_1P: |