better tuning, corrected range switching
This commit is contained in:
parent
f8d07cfa3d
commit
f0400b13db
@ -40,7 +40,7 @@ void Chassis::activate() {
|
|||||||
printf("called activate()\n");
|
printf("called activate()\n");
|
||||||
|
|
||||||
for (uint8_t i = 0; i < 104; i++) {
|
for (uint8_t i = 0; i < 104; i++) {
|
||||||
s.pitchCV[i] = (261.63 * powf(2, (i - 24) / 12.0f)) / sampleRate;
|
s.pitchCV[i] = (440.0f * powf(2, (i - 49) / 12.0f)) / sampleRate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,12 +132,12 @@ void Chassis::run(const float **, float **outputs, uint32_t frames, const MidiEv
|
|||||||
for (uint32_t i = 0; i < NUM_VOICES; i++) {
|
for (uint32_t i = 0; i < NUM_VOICES; i++) {
|
||||||
s.voice[i].calcPitch(s);
|
s.voice[i].calcPitch(s);
|
||||||
|
|
||||||
switch (s.patchRam.switch1 & 0x03) {
|
switch (s.patchRam.switch1 & 0x07) {
|
||||||
case 1:
|
case 1:
|
||||||
s.voice[i].omega /= 4;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
s.voice[i].omega /= 2;
|
s.voice[i].omega /= 2;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
s.voice[i].omega *= 2;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user