Closed spessasus closed 1 month ago
Polyphone claims that the "playback begins with the release phase". But you implemented it in such a way that the voice plays back silently until the release phase begins (because of the
dsp
updates happening just before that). This behavior would be pretty equivalent to the delay phase, but I don't think this is the intended behavior by Polyphone.
And that's exactly what this patch does. It only delays the wavetable oscillator. The volenv works normally. Feel free to test it in Polyphone 2.4. Put an attack time of 1 and hold the key for 1 second then release, then try instantly releasing it after the keypress. You can hear that the attack phase advances while the key is pressed.
Pls. remove the extra space in
if( voice....)
Done!
Will use 1s attack and 1s hold. When executed quickly consecutively, one can hear the attack phase. I find that behavior a bit strange. I mean we are already in release phase, so why do we hear attack and hold?
It makes sense IMO. Loop modes only affect wavetable, never envelope. And for example if we want an instrument with long attack time and then some sort of release noise at the end, this approach will make the noise play at the same volume as the main sample if the voice is released during the attack phase.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
33.3% Coverage on New Code
0.0% Duplication on New Code
Adds support for the new "sample mode release" introduced by Polyphone 2.4
Resolves #1398