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

Help: Rainmeter Skins • 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.

I have tried adding this to the mPeakLeft measure, which fails:

Code:

IfCondition=[mPeakLeft] = 1IfTrueAction=[!UpdateMeasure mPeakLeft][!UpdateMeasure mTimeLeft][!UpdateMeter PeakLeft][!Redraw]
Here's the reduced set of code from the original skin with only the main set of meters:

Code:

[Rainmeter]Update=25BackgroundMode=2SolidColor=0,0,0,20AccurateText=1MiddleMouseUpAction=[!Refresh][Variables]Player=CADResetTime=2VolLow=40VolMax=100Green=128,255,0Orange=255,170,0OrangeDark=255,128,0Red=255,100,100White20=255,255,255,20========================================; Measures========================================[mAudio]Measure=PluginPlugin=AudioLevelPort=OutputRMSAttack=52RMSDecay=300RMSGain=2.0PeakAttack=50PeakDecay=3000PeakGain=2.0[mLeft]Measure=PluginPlugin=AudioLevelParent=mAudioType=RMSChannel=L[mRight]Measure=PluginPlugin=AudioLevelParent=mAudioType=RMSChannel=R[mPeakLeft]Measure=CalcFormula=( Max ( mPeakLeft, mLeft ))OnChangeAction=[!DisableMeasure "mTimeLeft"][!UpdateMeasure "mTimeLeft"][!EnableMeasure "mTimeLeft"]IfCondition=[mPeakLeft] = 1IfTrueAction=[!UpdateMeasure mPeakLeft][!UpdateMeasure mTimeLeft][!UpdateMeter PeakLeft][!Redraw][mPeakRight]Measure=CalcFormula=( Max ( mPeakRight, mRight ))OnChangeAction=[!DisableMeasure "mTimeRight"][!UpdateMeasure "mTimeRight"][!EnableMeasure "mTimeRight"]IfCondition=[mPeakRight]=1IfTrueAction=[!UpdateMeasure mPmPeakRighteakLeft][!UpdateMeasure mTimeLeft][!UpdateMeter mPeakRight][!Redraw][mTimeLeft]Measure=CalcFormula=( mTimeLeft + 1 )IfCondition=(mTimeLeft=#ResetTime#)IfTrueAction=[!DisableMeasure "mPeakLeft"][!UpdateMeasure "mPeakLeft"][!EnableMeasure "mPeakLeft"]UpdateDivider=40[mTimeRight]Measure=CalcFormula=( mTimeRight + 1 )IfCondition=(mTimeRight=#ResetTime#)IfTrueAction=[!DisableMeasure "mPeakRight"][!UpdateMeasure "mPeakRight"][!EnableMeasure "mPeakRight"]UpdateDivider=40[mClipLeft]Measure=PluginPlugin=AudioLevelPort=OutputSensitivity=35Channel=LRMSAttack=50RMSDecay=1000RMSGain=2.0IfCondition=[mClipLeft]=1IfTrueAction=[!ShowMeter ClipBarL][!UpdateMeter ClipBarL][!Redraw]IfFalseAction=[!HideMeter ClipBarL][!UpdateMeter ClipBarL][!Redraw]DynamicVariables=1[mClipRight]Measure=PluginPlugin=AudioLevelPort=OutputSensitivity=35Channel=RRMSAttack=50RMSDecay=1000RMSGain=2.0IfCondition=[mClipRight]=1IfTrueAction=[!ShowMeter ClipBarR][!UpdateMeter ClipBarR][!Redraw]IfFalseAction=[!HideMeter ClipBarR][!UpdateMeter ClipBarR][!Redraw]DynamicVariables=1========================================; Meters========================================[sBar]BarOrientation=HorizontalSolidColor=#White20#DynamicVariables=1W=200H=5[OutBarL]Meter=BarMeasureName=mLeftMeterStyle=sBarBarColor=#Green#,100X=0Y=0[ClipBarL]Meter=BarMeasureName=mClipLeftMeterStyle=sBarBarColor=#Red#W=5X=5RY=r[PeakBarL]Meter=BarMeasureName=mPeakLeftMeterStyle=sBarBarColor=#OrangeDark#W=2X=([OutBarL:W]*[mPeakLeft])Y=r[OutBarR]Meter=BarMeasureName=mRightMeterStyle=sBarBarColor=#Green#,100X=0Y=2R[ClipBarR]Meter=BarMeasureName=mClipRightMeterStyle=sBarBarColor=#Red#W=5X=5RY=r[PeakBarR]Meter=BarMeasureName=mPeakRightMeterStyle=sBarBarColor=#OrangeDark#W=2X=([OutBarR:W]*[mPeakRight])Y=r
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:

Statistics: Posted by sl23 — Yesterday, 4:19 pm — Replies 5 — Views 89



Viewing all articles
Browse latest Browse all 871

Trending Articles