Files
lmms/plugins
Michael Gregorius c0a4df49a2 Lb302: Consistent decay in time (#7230)
The previous implementation of Lb302`s decay used a fixed decay factor that was multiplied with the signal until the minimum threshold of 1/65536 was crossed. This fixed factor resulted in different lengths in time for different sample rates.

This is fixed by computing the decay factor by taking the sample rate into account as well. The new static method `computeDecayFactor` computes the factor that is needed to make a signal decay from 1 to a given attenuation over a given time.

The parameters used in the call to that method in `Lb302Synth::process` have been fine-tuned such that, at a sample rate of 44.1 kHz, they result in a factor very close to the previous hard-coded factor of 0.99897516.
2024-04-29 16:47:17 +02:00
..
2023-08-24 19:16:02 +01:00
2024-02-25 13:49:56 -05:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2024-04-04 21:40:31 +02:00
2023-08-24 19:16:02 +01:00
2024-04-27 21:17:12 +02:00
2024-02-25 13:49:56 -05:00
2024-02-25 13:49:56 -05:00
2023-08-24 19:16:02 +01:00
2024-02-25 13:49:56 -05:00
2023-08-24 19:16:02 +01:00
2024-04-04 21:40:31 +02:00
2023-08-25 14:43:09 -04:00
2024-04-27 17:45:55 +02:00
2023-08-24 19:16:02 +01:00