Bug 321 - Playback of two consecutive identical midi notes doubles volume of note or causes phasing
Summary: Playback of two consecutive identical midi notes doubles volume of note or ca...
Status: RESOLVED INVALID
Alias: None
Product: LinuxSampler
Classification: Unclassified
Component: gig::Engine (show other bugs)
Version: SVN Trunk
Hardware: All All
: P5 normal
Assignee: Christian Schoenebeck
URL:
Depends on:
Blocks:
 
Reported: 2023-09-15 22:17 CEST by Maurits Lamers
Modified: 2023-09-16 09:50 CEST (History)
0 users

See Also:


Attachments
Midi file with repeating tones that causes the behavior (429 bytes, audio/mid)
2023-09-15 22:17 CEST, Maurits Lamers
Details

Note You need to log in before you can comment on or make changes to this bug.
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.