Skip to content

Commit ce1acb0

Browse files
derselbstspessasus
andauthored
Update src/synth/fluid_chan.c
Co-authored-by: Stanley <spesekspesek@gmail.com>
1 parent 4852406 commit ce1acb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/synth/fluid_chan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ unsigned int fluid_channel_portamentotime_with_mode(fluid_channel_t *chan, enum
810810
res = (Max/2 * 2.5) * tmp * fluid_concave(128 * tmp) + 400 * fluid_convex(msb * (fluid_real_t)(1/4.0));
811811
res = res < Max ? res : Max;
812812
// Apply a similar scaling hack as SpessaSynth to fix Descent Game08, it's unclear why exactly
813-
// https://github.com/spessasus/spessasynth_core/blob/0b2d44f48065d3d6bbca24a1d40223b1255dab00/src/synthesizer/audio_engine/engine_methods/portamento_time.ts#L84-L86
813+
// https://github.com/spessasus/spessasynth_core/blob/5a8730a80f8c0b74733ec193a968b36e2a0c0aee/src/synthesizer/audio_engine/engine_methods/portamento_time.ts#L84-87
814814
// https://github.com/FluidSynth/fluidsynth/pull/1656#issuecomment-3355759938
815815
res = (unsigned int)(res * abs(tokey - fromkey) / 36.0f + 0.5f);
816816
return res;

0 commit comments

Comments
 (0)