Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instruments with envelope/LFO amount close to 1.0 under cutoff tab causes sound to crash #468

Closed
karmux opened this issue Mar 16, 2014 · 8 comments

Comments

@karmux
Copy link
Contributor

karmux commented Mar 16, 2014

LMMS loses sound when instrument (TripleOscillator, BitInvader, Organic, ...) has envelope or LFO amount close to 1.0 under cutoff tab. To reproduce this glitch a filter frequency must be relatively high too. It sounds like some kind of overflow. To get sound back I have to reopen the project. Added screenshot of TripleOscillator after sound crash. I'm using LMMS 0.9.92.
tosc

@musikBear
Copy link

perhaps you could save the preset and upload it ? - i think that what you see is serious clipping (the visualisation-window shows red oscilations? right?) and, yes then lmms can 'jam' but try to disable the synth - does the sound not come back then? If it indeed what i think it is, then it should be worse in low register, and difficult to induce in high register -yes/ no? -and uh-oh! btw be carefull with loudness - you can damage both your speakers and worse -your ears!

@zonkmachine
Copy link
Member

To get sound back I have to reopen the project.

I'm seeing the same but I don't have to reopen the project after the glitch.
I'll try and submit an example later today.

@zonkmachine
Copy link
Member

Also, I can work around it by exporting with higher quality settings.

Edit! Which makes me think this could have something to do with pushing the frequency up to 'half the sample rate'

@karmux
Copy link
Contributor Author

karmux commented Mar 18, 2014

As musikBear said, it's actually extreme clipping. The visualization window shows red and then sound dissapears. On some lower LFO amount values sound even comes back and then loses again and so on. I can lower the amount of LFO to get sound completely back instead of reopening the project.

@softrabbit
Copy link
Member

The bug seems pretty old, 0.4.15 behaves the same. Off the top of my head, could this be filter calculations going crazy when the cutoff frequency goes too high? The RC filters seem pretty immune, but others break around 8000 Hz with full envelope and LFO modulation of cutoff.

@diizy
Copy link
Contributor

diizy commented Mar 18, 2014

On 03/18/2014 07:08 PM, Raine M. Ekman wrote:

The bug seems pretty old, 0.4.15 behaves the same. Off the top of my
head, could this be filter calculations going crazy when the cutoff
frequency goes too high? The RC filters seem pretty immune, but others
break around 8000 Hz with full envelope and LFO modulation of cutoff.

I can't reproduce this bug. Could this be dependent on the audio backend?

@softrabbit
Copy link
Member

Dependent on sample rate more likely. Clamping the frequency to m_sampleRate/2 in basic_filters.h seems to fix the problem, but it might change the sound in some cases.

@diizy
Copy link
Contributor

diizy commented Mar 18, 2014

On 03/18/2014 08:38 PM, Raine M. Ekman wrote:

Dependent on sample rate more likely. Clamping the frequency to
m_sampleRate/2 in basic_filters.h seems to fix the problem, but it
might change the sound in some cases.

Eh, let's clamp it anyway. Most people don't compose music for dogs ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants