pc-king I’ve found the subtle bug that’s bothering Rspian:
On a real piano, if you press a note while holding the sustain pedal, then release the pedal, you clearly hear a change in the tone (color), as the sympathetic resonances are released.
However, if you press the note first, and only afterwards press the sustain pedal, then there is no tonal change — the sound is simply prolonged, without added resonance.
That’s the key difference I’ve noticed in Modern D’s behavior:
Currently, the sustain resonance samples (or sympathetic/harmonic responses) are always triggered by the sustain pedal, regardless of whether the note was played before or after the pedal was pressed.
But this is not how it works on a real piano.
In a real piano, the full sustain effect (with added harmonics) only occurs if the note was attacked while the pedal was already down.
If the pedal is pressed after the note (repedaling), the note is held, but without the extra resonance — the tonal color stays drier.
So, this is likely what Rspian feels is “exaggerated” in some cases.
✅ Suggested fix for Modern D:
The sustain resonance effect should be applied only if the note was initially attacked while the sustain pedal was already pressed.
If the pedal is applied after the note, it should still hold the note (repedaling), but without triggering the resonance samples.
I’ve confirmed this by using Pianoteq (full or in partial mode with Modern D’s resonance disabled) — the behavior is natural and matches the acoustic response.
This explains the subtle discrepancy and why the sustain in Modern D sometimes feels too “artificial” or overdone in certain situations.
Best regards,
Olivier F.
WIth that FIX : CPU performance will impeoved, because SUSTAIN resoannce samples will be not be used always...