lmms icon indicating copy to clipboard operation
lmms copied to clipboard

Instruments are very loud by default

Open grejppi opened this issue 12 years ago • 39 comments

Every instrument's volume is at 100% by default.

Some instruments, such as Kicker and BitInvader, output their sound at 100%. Any overlapping sounds, such as two notes playing at the same time, will cause clipping.

Example project with Kicker, TripleOscillator, and BitInvader at their default settings.

This potentially leaves the user with a bad impression about the quality of LMMS' sound engine. It did for me initially.

grejppi avatar Jan 23 '14 18:01 grejppi

This is something that bothers me too, but I don't know how to fix it. Should we just make things quieter by default? If we do so, does that just postpone the problem for when the user adds even more instruments? Is it the user's job to make sure audio does not clip? Should LMMS implement some kind of UI or tool to help in this regard?

andrewrk avatar Jan 23 '14 18:01 andrewrk

Making things quieter by default would be a very good idea.

So would be making the instruments output sound at the same level. Breaking older projects could be avoided with relevant additions to multimediaProject::upgrade().

(OpulenZ is at a pleasant level in my opinion)

grejppi avatar Jan 23 '14 18:01 grejppi

"Is it the user's job to make sure audio does not clip? "

Uh... yes, pretty much? The user is in the best position to handle such things. And there are already plenty of tools available to deal with this problem: compressors, limiters...

I think trying to coddle the user too much is maybe counter-productive, as it in some cases can prevent the users from learning how to solve the problems themselves, which inevitably backfires later on. There should be good quality tools offered to the user, but learning how to use them should be left up to the user. There's an internet full of tutorials...

diizy avatar Jan 23 '14 20:01 diizy

If you want to quickly jot down an idea, you might first use what's available by default. You don't want to turn down the knobs just so that you can hear what you're doing.

grejppi avatar Jan 23 '14 21:01 grejppi

True, but couldn't you just change the master volume then?

diizy avatar Jan 23 '14 21:01 diizy

What about a different mixing algorithm? Instead of performing addition when mixing audio streams, what if we did something like 0.5 * stream1 + 0.5 * stream2?

I honestly don't know if this is a good idea; it's something I thought of but it might be stupid.

andrewrk avatar Jan 23 '14 21:01 andrewrk

Would not work as one would never be able to find proper balances because things would change each time there's another stream. If you add signals you might end up with clipping - that's it. What we can do is default the master volume to 50% or something like that.

tobydox avatar Jan 23 '14 21:01 tobydox

Now I'm thinking about a UI tool. What if a red "clip warning" turned on in each mixer channel whenever clipping occurred in that channel. The clipping warning would turn off as soon as you press play. While playing, if the clip warning turns on, it stays on until the next time you stop/pause and then play again.

Would this be useful?

andrewrk avatar Jan 23 '14 21:01 andrewrk

FL Studio has a limiter on the master channel in the default template. It definitely helps beginners to make music without clipping, and more experienced users can get rid of it if they want.

ksnd avatar Jan 25 '14 02:01 ksnd

Also I think that FL Studio does some kind of weird mixing thing. It seems like in FL Studio you can have 2 instruments that both peak at 100%, and somehow the final output doesn't clip.

andrewrk avatar Jan 25 '14 02:01 andrewrk

Even after disabling the limiter?

ksnd avatar Jan 25 '14 02:01 ksnd

Yes even after disabling the limiter. As an experiment, try this in both FL Studio and LMMS:

  1. Add 2 triple oscillators (3xosc in FL Studio)
  2. Put them so that each note takes up 100% volume
  3. Add a riff so that they both play at the same time

andrewrk avatar Jan 25 '14 02:01 andrewrk

What we can do is default the master volume to 50% or something like that.

That would probably help a lot actually without being that much lower.

zonkmachine avatar Jan 25 '14 03:01 zonkmachine

Also what happens in this scenario?

Mixer channel 1 has audio playing at 100% Mixer channel 2 has audio playing at 100% Both mixer channels are sent into mixer channel 3 and nothing else Channel 3 is sent to master Master has volume at 25%

Does the final output clip or not?

andrewrk avatar Jan 26 '14 00:01 andrewrk

On 01/26/2014 02:39 AM, Andrew Kelley wrote:

Also what happens in this scenario?

Mixer channel 1 has audio playing at 100% Mixer channel 2 has audio playing at 100% Both mixer channels are sent into mixer channel 3 and nothing else Channel 3 is sent to master Master has volume at 25%

Does the final output clip or not?

— Reply to this email directly or view it on GitHub https://github.com/LMMS/lmms/issues/113#issuecomment-33305394.

No, it will not, because 32-bit floating point signal, which LMMS uses for all audio, has headroom for up to about +760dB, which in percentage values would be equivalent to (10^36)%.

diizy avatar Jan 26 '14 07:01 diizy

But if you don't do anything about this, I was going to file a bug on that OpulenZ has really low levels compared to other instruments....

Sti2nd avatar Feb 21 '14 00:02 Sti2nd

Auto-limiter is nice but I agree with Vesa that it tends to coddle the user too much and also can cause confusion down the road when subsequent volume adjustments have unexpected effects.

To quote the great Linus Torvalds, "If you think your users are idiots, only idiots will use it." :)

I particularly like the 100% volume default. I'm sure the presets could benefit from some "normalization" so to speak since some are ear piercing loud and others are quiet, but may just be nitpicking.

My vote is to keep it as is but I don't mind if they get lowered or a limiter gets added. Either way, I'm opposed to the main volume being anything other than 100%. I'd prefer that were left alone.

-Tres

tresf avatar Feb 21 '14 03:02 tresf

I agree with Tres. Leave Master at 100%

Just caught up on this thread. I downloaded 0.9.92 for Windows 32bit. Loaded a project I'm working on and noticed that the OpelenZ volume is like 0.25 of what it was. No idea what happened there, but it's super quiet. So much so that I'll probably have to add an amplifier to it to get it back where it was.

And, honestly, I've begun adding the "Fast Lookahead Limiter" to the Master FX channel for a while now. It makes life a lot easier for me, personally.

ahogen avatar Mar 11 '14 18:03 ahogen

But have you noticed that "if idiots can't use it, most people won't use it"? 21.2.2014 5.24 kirjoitti "Tres Finocchiaro" [email protected]:

Auto-limiter is nice but I agree with Vesa that it tends to coddle the user too much and also can cause confusion down the road when subsequent volume adjustments have unexpected effects.

To quote the great Linus Torvalds, "If you think your users are idiots, only idiots will use it." :)

I particularly like the 100% volume default. I'm sure the presets could benefit from some "normalization" so to speak since some are ear piercing loud and others are quiet, but may just be nitpicking.

My vote is to keep it as is but I don't mind if they get lowered or a limiter gets added. Either way, I'm opposed to the main volume being anything other than 100%. I'd prefer that were left alone.

-Tres

— Reply to this email directly or view it on GitHubhttps://github.com/LMMS/lmms/issues/113#issuecomment-35695888 .

ksnd avatar Mar 12 '14 19:03 ksnd

Yes, I have noticed that. I think we all should keep this in mind when coming up with new features and implementing them. The simpler the better. Iphone was a huge success because of that. I have previously written that the old childish look of LMMS made people laugh and go away, but the other side of the story is of course that it was so easy that anyone could make music!

Sti2nd avatar Mar 12 '14 20:03 Sti2nd