sfz.github.io icon indicating copy to clipboard operation
sfz.github.io copied to clipboard

what is the default legato behavior?

Open squinkylabs opened this issue 4 years ago • 4 comments

If you don't specify anything, what is supposed to happy when you are playing one voice, and the pitch changes? It seems that what sforzando does is turn off the currently sounding region "very quickly", the fades in the new one with what seems to be an attack of about 10 ms.

I know there are very elaborate ways to specify legato behavior, and I have looked at the tutorial (which, frankly, I don't understand). But this defulault behavior seems undocumented.

squinkylabs avatar Apr 19 '21 04:04 squinkylabs

Tested that setting group and off_by to add self-muting doesn't do anything different to attack and release envelopes, and uses the default values in Sforzando, same as for non-legato notes. Added this at the start of the legato tutorial.

DSmolken avatar Apr 21 '21 13:04 DSmolken

so if attack and release are both very long, and there is no off_by specified, and the pitch changes on a channel without the gate changing, then the voice is supposed to fade out with the long release time specified, then switch pitch and start fading in with the long attack time specified? I don't think that's what sforzando does, but I could be wrong.

squinkylabs avatar Jul 02 '21 04:07 squinkylabs

You do need off_by (or polyphony=1 set for the group) to get legato behavior, so with no off_by specified you will just get both notes playing at once. But if off_by is set to the same number as group, which is the typical thing to do in legato instruments, then as far as I understand, the "old" note fades out with release time being the fadeout duration. As soon as it starts fading out, the new note starts fading in. So, there's overlap.

I haven't done any detailed testing to investigate how this really behaves, but it seems to work like that. I've done some choirs with the fade times probably being around a half a second, so pretty long.

DSmolken avatar Jul 02 '21 06:07 DSmolken

Hmm... I'll have to play around and see if I can find what I was asking about... Probably I was confused.

squinkylabs avatar Jul 02 '21 22:07 squinkylabs