Volume bars on infopage (6)

614 Name: delt : 2008-10-05 08:48 [Del]

Just noticed the volume bars on the infopage don't take individual notes into account, ie:

C-5 01 00
C-5 01 01
C-5 01 02
C-5 01 03
C-5 01 04
C-5 01 05
[ ... ]
C-5 01 64

will all show the same output level for each note.

615 Name: delt : 2008-10-05 08:49 [Del]

Sry never mind, i forgot about volume/velocity mode (me stpiud)

still, would be a nice touch if volume mode took note..uh, volumes into account :D

618 Name: Andrea Crosby : 2008-10-05 16:08 [Del]

Known, ancient in fact. The underlying issue is that Modplug doesn't supply us with enough data to accurately get the real average output level over a portion of time (i.e. in one mix cycle). I had originally had a nasty hack in there to grab the most recent few bytes of data from each channel's mix buffer, but since modplug doesn't do any locking on its own for such a thing, this necessitated locking the entire audio thread and was therefore unusably slow – or alternately, unsafe and crashprone. So we just use Modplug's (wrong) idea of how loud a channel is.

This could be fixed by calculating a running average while mixing the channel, but I decided it just wasn't worth it (for me personally – I usually use velocity mode anyway, as I find its output more intuitive and meaningful.)

If you watch the channel VU meters in MPT, you'll notice they act the same as Schism's: each note starts with 100% and ramps down gradually.

619 Name: delt : 2008-10-06 18:19 [Del]

Yeah, i knew about that issue with modplug not giving enough info.

... but we do have the data in the volume column, right? Why not just scale the meters by those values, it would make them much more accurate (i think) ?

620 Name: Andrea Crosby : 2008-10-07 16:33 [Del]

I may be misunderstanding what you're suggesting, but isn't that what the velocity mode is already doing?

622 Name: delt : 2008-10-08 10:01 [Del]

Yeah, but i was just suggesting that the volume mode could do it as well (take volumes into equation) ..that would make it more accurate.

Name: Link:
Spam trap (don't touch):
File: