Re: JSP3 Script Analog VU Meter
Reply #2 – 2024-11-23 03:25:26
frankly, how hard we have tried, we could not figure out how these parameter related to each others (INI file of AIMP analog Vu Meter): MinAngle, MinLevel ZeroAngle,ZeroLevel MaxAngle, MaxLevel MinLevel - The minimum level displayed by the meter in decibels. eg) -40, -20 etc.. MinAngle - The angle of the needle when the peak level is at or below the Minlevel ZeroLevel - What level should be classed as zero. It's nearly always set to zero. It's a method to offset the meter for AIMP users as AIMP doesn't allow you to adjust the decibel level like Foobar and my plugin in Musicbee do with the mousewheel. ZeroAngle - The angle of the needle when the peak level is 1.0 (zero decibels). MaxLevel - The max level displayed on the meter in decibels eg) 5, 10 etc... MaxAngle - The angle of the needle when the peak level is at or above the MaxLevel. This is the code I use in C#. The reason it's not just maxAngle - minAngle * peak is some meters use a different scale for each side of zero.if (peak > 1.0) { rotOffset = (zeroAngle - minAngle) + (peak - 1.0f) * (maxAngle - zeroAngle); } else { rotOffset = peak * (zeroAngle - minAngle); } rotation = minAngle * Constants.radian + rotOffset * Constants.radian; Sorry if I added to the dumpster fire. I did warn about the insane amount of image files that method would create......but who am I to judge. If you want any more info ilovefb2k just send me a PM and I'll see if I can help.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)