79 |
} |
} |
80 |
|
|
81 |
CurrentPitch = pow(2, (double) (MIDIKey - (int) pSample->MIDIUnityNote) / (double) 12); |
CurrentPitch = pow(2, (double) (MIDIKey - (int) pSample->MIDIUnityNote) / (double) 12); |
82 |
|
Volume = pDimRgn->GetVelocityAttenuation(Velocity); |
83 |
|
|
84 |
// ************************************************ |
// ************************************************ |
85 |
// TODO: ARTICULATION DATA HANDLING IS MISSING HERE |
// TODO: ARTICULATION DATA HANDLING IS MISSING HERE |
139 |
} |
} |
140 |
|
|
141 |
void Voice::Interpolate(sample_t* pSrc) { |
void Voice::Interpolate(sample_t* pSrc) { |
142 |
float effective_volume = 1; // TODO: use the art. data instead |
float effective_volume = this->Volume; |
143 |
int i = 0; |
int i = 0; |
144 |
|
|
145 |
// ************************************************ |
// ************************************************ |