a couple of comments
This commit is contained in:
parent
f59a142476
commit
9b4f3a1be0
|
|
@ -29,6 +29,7 @@ void Module::run(Voice* voice) {
|
||||||
// work out the "master" cutoff
|
// work out the "master" cutoff
|
||||||
vcfCutoff = patchRam.vcfFreq / 127.0f;
|
vcfCutoff = patchRam.vcfFreq / 127.0f;
|
||||||
vcfCutoff += lfo * (patchRam.vcfLfo/127.0f);
|
vcfCutoff += lfo * (patchRam.vcfLfo/127.0f);
|
||||||
|
// also needs pitch bend amount for the base level
|
||||||
|
|
||||||
for (uint32_t i = 0; i < NUM_VOICES; i++) {
|
for (uint32_t i = 0; i < NUM_VOICES; i++) {
|
||||||
switch (voice[i].envPhase) {
|
switch (voice[i].envPhase) {
|
||||||
|
|
@ -47,5 +48,6 @@ void Module::run(Voice* voice) {
|
||||||
voice[i].env = 1.0f;
|
voice[i].env = 1.0f;
|
||||||
voice[i].envPhase = 2; // flip to decay
|
voice[i].envPhase = 2; // flip to decay
|
||||||
}
|
}
|
||||||
|
// per voice we need to calculate the key follow amount and envelope amount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue