It is currently January 25th, 2021, 9:20 pm

difference between Peak and RMS

Get help with installing and using Rainmeter.
User avatar
Indy
Posts: 40
Joined: August 8th, 2013, 10:40 pm

difference between Peak and RMS

Post by Indy »

How can the RMS Level highter than the Peak Level?


I become a highter RMS Level than the Peak Level.

Code: Select all

[MeasureAudioRMS]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=50
RMSDecay=100
RMSGain=3.0
Bands=2

[MeasureAudioPeak]
Measure=Plugin
Plugin=AudioLevel
Port=Output
PeakAttack=50
PeakDecay=100
PeakGain=3.0
Bands=2
User avatar
Yincognito
Posts: 2980
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: difference between Peak and RMS

Post by Yincognito »

Indy wrote: December 20th, 2020, 11:42 pm How can the RMS Level highter than the Peak Level?


I become a highter RMS Level than the Peak Level.

Code: Select all

[MeasureAudioRMS]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=50
RMSDecay=100
RMSGain=3.0
Bands=2

[MeasureAudioPeak]
Measure=Plugin
Plugin=AudioLevel
Port=Output
PeakAttack=50
PeakDecay=100
PeakGain=3.0
Bands=2
Not sure if I understood what you mean, but:

1) if you want the RMS Level value to be greater than the Peak Level value, you might want to tweak the ...Gain options (i.e. RMSGain and PeakGain), in other words setting a greater RMSGain than PeakGain, as these two are just multiplication factors for the base values of RMS and Peak

2) if you want the RMS Level bar to be longer or taller than the Peak level bar, this has nothing to do with the measures above, but with the meters (i.e. the pieces of code that actually display things on the skin/screen), so, assuming you have the individual band measures like:

Code: Select all

[MeasureAudioRMSBand0]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioRMS
Type=Band
BandIdx=0

[MeasureAudioRMSBand1]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioRMS
Type=Band
BandIdx=1

[MeasureAudioPeakBand0]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioPeak
Type=Band
BandIdx=0

[MeasureAudioPeakBand1]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioPeak
Type=Band
BandIdx=1
then the RMS meters would have to have their W (width) or H (height), depending on the bar orientation, greater than the equivalent W or H of the Peak meters:

Code: Select all

[MeterAudioRMSBand0]
Meter=Bar
MeasureName=MeasureAudioRMSBand0
X=10
Y=5
W=10
H=200
BarColor=255,100,100,255
SolidColor=100,100,100,255
BarOrientation=Vertical

[MeterAudioRMSBand1]
Meter=Bar
MeasureName=MeasureAudioRMSBand1
X=30
Y=5
W=10
H=200
BarColor=255,100,100,255
SolidColor=100,100,100,255
BarOrientation=Vertical

[MeterAudioPeakBand0]
Meter=Bar
MeasureName=MeasureAudioPeakBand0
X=50
Y=5
W=10
H=100
BarColor=100,255,100,255
SolidColor=100,100,100,255
BarOrientation=Vertical

[MeterAudioPeakBand1]
Meter=Bar
MeasureName=MeasureAudioPeakBand1
X=70
Y=5
W=10
H=100
BarColor=100,255,100,255
SolidColor=100,100,100,255
BarOrientation=Vertical
Notice how the RMS band meters have their H set to 200, a greater value compared to the 100 of the Peak band meters' H.