520 |
void Voice::Render(uint Samples) { |
void Voice::Render(uint Samples) { |
521 |
|
|
522 |
// Reset the synthesis parameter matrix |
// Reset the synthesis parameter matrix |
523 |
pEngine->ResetSynthesisParameters(Event::destination_vca, this->Volume); |
pEngine->ResetSynthesisParameters(Event::destination_vca, this->Volume * pEngine->GlobalVolume); |
524 |
pEngine->ResetSynthesisParameters(Event::destination_vco, this->PitchBase); |
pEngine->ResetSynthesisParameters(Event::destination_vco, this->PitchBase); |
525 |
#if ENABLE_FILTER |
#if ENABLE_FILTER |
526 |
pEngine->ResetSynthesisParameters(Event::destination_vcfc, VCFCutoffCtrl.fvalue); |
pEngine->ResetSynthesisParameters(Event::destination_vcfc, VCFCutoffCtrl.fvalue); |
789 |
prev_res = pEngine->pSynthesisParameters[Event::destination_vcfr][i]; |
prev_res = pEngine->pSynthesisParameters[Event::destination_vcfr][i]; |
790 |
FilterLeft.SetParameters(&bqbase, &bqmain, prev_cutoff, prev_res, SampleRate); |
FilterLeft.SetParameters(&bqbase, &bqmain, prev_cutoff, prev_res, SampleRate); |
791 |
} |
} |
|
pEngine->pBasicFilterParameters[i] = bqbase; |
|
792 |
|
|
793 |
//same as 'pEngine->pBasicFilterParameters[i] = bqbase;' |
//same as 'pEngine->pBasicFilterParameters[i] = bqbase;' |
794 |
bq = (float*) &pEngine->pBasicFilterParameters[i]; |
bq = (float*) &pEngine->pBasicFilterParameters[i]; |