Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1158

Help: Rainmeter Skins • Re: Audio Peak Level not dropping

$
0
0
I'm wanting to use the Peak Level meter in my current skin. So I've resurrected an old version. I can remember there is an issue with the Peak metering, it doesn't hold the position, it basically acts like the RMS metering, but just gets the highest value. But a proper Peak meter holds it's value for 2-3 seconds.

I have a version of that code still that someone helped with. But the issue was that onced it peaked at 0db for a few seconds it never dropped once the volume got lower. It works well, until that point, then it stops responding. I was hoping to get this fixed if anyone has a clue about it.

{clipped code}
I've changed the whole thing to use shape meters instead of graphics, in case you want to try it.
Seems to work ok, just that problem with the Peak indicators 'sticking' which I tried to find a way to reset them on max but not working out for me!

Appreciate any help :thumbup:
Late to see your post... but here are a few thoughts...

The reason your Peak level is 'sticking' is because you have the PeakGain (and RMSGain) set to 2.0 (displaying twice the actual level).
Reduce that to a lower level (1.0 ~1.5) to show normal Peak reactions in your skin.

Trying to hold the max peak level using IfConditions is not the way I would suggest.
There are 40 updates per second to the value that need to be tested for higher values then the last while you are pausing or disabling the display... not really a practical or efficient method.

A better approach to control the Peak display would be to create a second AudioLevel parent measure with the same Attack and Gain as the RMS measure for the Peak values, but set the PeakDelay to your desired level (3000~5000).

Something like this should give close to your desired result:

Code:

[Rainmeter]Update=25BackgroundMode=2SolidColor=255,255,255,20AccurateText=1MiddleMouseUpAction=[!Refresh][Metadata]Author=sl23Description=VU MetreVersion=2024.6.30[Variables]AquaDark=0,255,255,200Green=128,255,0Orange=255,170,0OrangeDark=255,128,0Red=255,100,100White20=255,255,255,20PeakDelayL=0PeakDelayR=0ActiveGainLevel=1.5========================================; Measures========================================[mAudio]Measure=PluginPlugin=AudioLevelPort=OutputRMSAttack=25RMSDecay=300RMSGain=#ActiveGainLevel#PeakAttack=0PeakDecay=0PeakGain=1.0[mAudioPeak]Measure=PluginPlugin=AudioLevelPort=OutputRMSAttack=0RMSDecay=0RMSGain=1.0PeakAttack=25PeakDecay=5000PeakGain=#ActiveGainLevel#[mLeft]Measure=PluginPlugin=AudioLevelParent=mAudioType=RMSChannel=L[mRight]Measure=PluginPlugin=AudioLevelParent=mAudioType=RMSChannel=R[mPeakLeft]Measure=PluginPlugin=AudioLevelParent=mAudioPeakType=PeakChannel=L[mPeakRight]Measure=PluginPlugin=AudioLevelParent=mAudioPeakType=PeakChannel=R========================================; Meters========================================[sClip]Shape=Rectangle 0,0,5,5 | Fill Color #Red# | StrokeWidth 0Y=rHidden=1[sPeak]Shape=Rectangle 0,0,2,5 | Fill Color #AquaDark# | StrokeWidth 0DynamicVariables=1Y=r[sBar]BarOrientation=HorizontalBarColor=#Green#,70SolidColor=#White20#W=200H=5Y=r;-------------------------------------[OutBarL]Meter=BarMeasureName=mLeftMeterStyle=sBar[ClipL]Meter=ShapeMeterStyle=sClipX=5R[PeakBarL]Meter=ShapeMeterStyle=sPeakX=([OutBarL:X]+[OutBarL:W]*[mPeakLeft]);-------------------------------------[OutBarR]Meter=BarMeasureName=mRightMeterStyle=sBarY=2R[ClipR]Meter=ShapeMeterStyle=sClipX=5R[PeakBarR]Meter=ShapeMeterStyle=sPeakX=([OutBarR:X]+[OutBarR:W]*[mPeakRight])
audpeak.gif

Statistics: Posted by eclectic-tech — Yesterday, 2:46 pm



Viewing all articles
Browse latest Browse all 1158

Trending Articles