Haha! I know how you feel! I lost myself ages ago and had to reread this bit!
Well, that's the goal, but I'm so far from the mark I can't even see it with a telescope!
Haha! I know how you feel! I lost myself ages ago and had to reread this bit!
I do, I do, yes, I do!!!Yincognito wrote: ↑July 1st, 2024, 4:19 pmSo, do you still need that previous value vs current value thingy or not?
Code: Select all
[mPeakLeft]
Measure=Plugin
Plugin=AudioLevel
Parent=mAudio
Type=Peak
Channel=L
OnChangeAction=[!SetVariable PeakDelayL "[#CURRENTSECTION#]"]
IfCondition=#CURRENTSECTION#=1
IfTrueAction=[!ShowMeter ClipL][!UpdateMeter ClipL][!Redraw]
IfFalseAction=[!Delay 1000][!HideMeter ClipL][!UpdateMeter ClipL][!Redraw]
DynamicVariables=1
IfCondition2=(#CURRENTSECTION# < #PeakDelayL#)
IfTrueAction2=[!PauseMeasure #CURRENTSECTION#][!Delay 1000][!UnPauseMeasure #CURRENTSECTION#][!Redraw]
So, just to be sure, if 0.7, 0.5, 0.3, 0.4, 0.2 happen one after the other during that one second while it should stay in position at 0.7 (because 0.5 was less than the previous 0.7 value), it should however use 0.4 when this occurs (because it is greater than the previous 0.3 value), right? In other words, an increase in the value has priority over the potential stay in position that might be happening at the same time? Yes or no.
I'll wait for a confirmation that you're absolutely sure about it, I don't like to work twice on something.
I'll simply use a default / rudimentar AudioLevel parent for the sample (hence RMS). You'll just have to adjust the parent as desired, and move the IfCondition(s) into a child with Type=Peak instead, nothing fancy.
Well, you will have to, cause I won't repeat myself.
Code: Select all
[Variables]
Update=25
TimeMax=1000
[Rainmeter]
Update=#Update#
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=128,128,128,255
---Measures---
[TimeValue]
Group=Toggle
Paused=1
Measure=Calc
; PRIORITY = Time Expiration
; Formula=((TimeValue+#Update#>=#TimeMax#)?0:TimeValue+#Update#)
; PRIORITY = Value Increase
; Formula=((TimeValue+#Update#>=#TimeMax#)||(CurrValue>=LastValue)?0:TimeValue+#Update#)
IfCondition=(TimeValue=0)
IfTrueAction=[!TogglePauseMeasureGroup Toggle]
IfConditionMode=1
[LastValue]
Measure=Calc
Formula=CurrValue
[CurrValue]
Measure=Plugin
Plugin=AudioLevel
RMSGain=3
[FakeValue]
Group=Toggle
Measure=Calc
Formula=(CurrValue<LastValue?LastValue:CurrValue)
IfCondition=(CurrValue<LastValue)&&(TimeValue=0)
IfTrueAction=[!TogglePauseMeasureGroup Toggle]
IfConditionMode=1
---Meters---
[Result]
Meter=String
FontFace=Consolas
MeasureName =LastValue
MeasureName2=CurrValue
MeasureName3=FakeValue
NumOfDecimals=5
Text=Last Value = %1#CRLF#Curr Value = %2#CRLF#Fake Value = %3
DynamicVariables=1
[Visual]
Meter=Shape
X=5R
Y=0r
Shape =Rectangle 0, 0, 150 ,48 | StrokeWidth 0 | Fill Color 128,128,128,255
Shape2=Rectangle 0, 0,([LastValue]*150),16 | StrokeWidth 0 | Stroke Color 0,0,0,0 | Fill Color 255,0,0,255
Shape3=Rectangle 0,16,([CurrValue]*150),16 | StrokeWidth 0 | Stroke Color 0,0,0,0 | Fill Color 0,255,0,255
Shape4=Rectangle 0,32,([FakeValue]*150),16 | StrokeWidth 0 | Stroke Color 0,0,0,0 | Fill Color 0,0,255,255
DynamicVariables=1