Bug 321

Summary: Playback of two consecutive identical midi notes doubles volume of note or causes phasing
Product: LinuxSampler Reporter: Maurits Lamers <mauritslamers>
Component: gig::EngineAssignee: Christian Schoenebeck <cuse>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P5    
Version: SVN Trunk   
Hardware: All   
OS: All   
Attachments: Midi file with repeating tones that causes the behavior

Description Maurits Lamers 2023-09-15 22:17:01 CEST
Created attachment 104 [details]
Midi file with repeating tones that causes the behavior

When playing back midi through linuxsampler, I have noticed that if the midi contains two (or more) consecutive identical notes played legato, the volume of that part increases or the sound changes (phasing?) for the duration of the second as if the samples are stacked on top of each other.

I have noticed this behavior already for quite some time under Linux and Mac, but now also ran across it on Windows 10.

Steps to reproduce:
- create a midi file with consecutive identical tones (as attached) with Lilypond
- Create a channel in LinuxSampler and load a long-sounding sample, such as the Tuba (long) from the page at https://www.linuxsampler.org/instruments.html
- playback the midi and notice how the sounds seem to start stacking
Comment 1 Christian Schoenebeck 2023-09-16 09:50:17 CEST
What you described is the expected behaviour. Therefore I am going to close this report now.

If a sound designer wants the previous voices to stop, there are various options. For instance EG1 (amplitude) release time can be decreased such that older voices are faded out more quickly.

An exlusive group can be defined such that new voices automatically cause older voices to be killed.

Playing back the exact same sample multiple times typically results in phasing effects. A sound designer can use a round robin or random dimension to playback slightly different samples to prevent this effect.

And of course a real-time instrument script can be used to define even more specialized custom behaviuour.