It is currently April 28th, 2024, 3:59 pm

AudioLevel

Share and get help with Plugins and Addons
User avatar
rm_lion
Posts: 93
Joined: December 27th, 2013, 4:04 pm
Location: Switzerland

Re: New Plugin: AudioLevel

Post by rm_lion »

I am trying to make the Value for RMSGain Dynamic, because the Measured Value for RMS decreases as soon as I connect my TV with a HDMI cable . I made a Meter to check if the IfMatch option works and I receive the correct Values that I want (i.e. 5.0 and 2.5). But somehow I'm not able to Change the Value for RMSGain in the Measure ([MeasureAudioRaw_Out]).

Isn't it possible
1. to use DynamicVariables?

Code: Select all

[Variables]
ValueRMSGain=5

[MeasureAudioRaw_Out]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=100
RMSDecay=100
RMSGain=#ValueRMSGain#
PeakAttack=15
PeakDecay=2700
PeakGain=1.0
DynamicVariables=1

[MeasureAudioOut_Name]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioRaw_Out
Type=DeviceName
IfMatch=^Philips.*
IfMatchAction=[!SetVariable ValueRMSGain "5.0"]
IfMatch2=^Speakers.*
IfMatchAction2=[!SetVariable ValueRMSGain "2.5"]
IfMatchMode=1
2. or to change the options of the measure?

Code: Select all

[MeasureAudioOut_Name]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioRaw_Out
Type=DeviceName
IfMatch=^Philips.*
IfMatchAction=[!SetOption MeasureAudioRaw_Out RMSGain "5.0"]
IfMatch2=^Speakers.*
IfMatchAction2=[!SetOption MeasureAudioRaw_Out RMSGain "2.5"]
IfMatchMode=1
User avatar
dgrace
Developer
Posts: 265
Joined: June 28th, 2014, 8:32 am
Location: Tokyo, Japan

Re: New Plugin: AudioLevel

Post by dgrace »

Still not sure what's going on with your levels - pretty sure that's not anything I'm doing in the plugin. I'm wondering if some other software you're running is adjusting the volume levels dynamically. But yeah I wasn't re-parsing the envelope parameters in the Reload function. Try this one.

dave
User avatar
rm_lion
Posts: 93
Joined: December 27th, 2013, 4:04 pm
Location: Switzerland

Re: New Plugin: AudioLevel

Post by rm_lion »

:D cool. The Problem is now solved for me.
DynamicVariables is now working on the measure!
Thanks a lot!

By the way I think I know now why this happens.
My Laptop Speakers work with the "Realtek High Definition Audio"-controller.
And as soon as I connect the TV the "Intel(R) Display Audio"-controller gets activated and the "Realtek" gets deactivated.
User avatar
dgrace
Developer
Posts: 265
Joined: June 28th, 2014, 8:32 am
Location: Tokyo, Japan

Re: New Plugin: AudioLevel

Post by dgrace »

rm_lion wrote::D cool. The Problem is now solved for me.
DynamicVariables is now working on the measure!
Thanks a lot!

By the way I think I know now why this happens.
My Laptop Speakers work with the "Realtek High Definition Audio"-controller.
And as soon as I connect the TV the "Intel(R) Display Audio"-controller gets activated and the "Realtek" gets deactivated.
Right on. Yeah swapping devices can definitely change your output levels. You may be able to adjust them via "manage audio devices" and select the device (while active), right click and do "properties" - some of them give you a Volume modifier, I think it depends on the driver.

dave
User avatar
rm_lion
Posts: 93
Joined: December 27th, 2013, 4:04 pm
Location: Switzerland

Re: New Plugin: AudioLevel

Post by rm_lion »

dgrace wrote: You may be able to adjust them via "manage audio devices" and select the device (while active), right click and do "properties" - some of them give you a Volume modifier, I think it depends on the driver.
dave
Thank you but I know that. I tried everything.
Funny is that when the "Realtek High Definition Audio"-controller is active the change of the volume has no influence on the detection of your plugin. I can even mute the output and the detection stays active. And when the "Intel(R) Display Audio"-controller is active the change of the volume has influence on the detection of your plugin. But it doesn't matter because I did set the audio output for the TV on max and I change the volume on the amplifier to which my TV is attached.
Stan
Posts: 65
Joined: January 24th, 2013, 9:09 pm

Re: New Plugin: AudioLevel

Post by Stan »

Thanks a lot for the documentation, it's helping. I managed to get things working but I'm still fumbling around. I'll keep breaking it till I get it right. O.O
User avatar
Dank420
Posts: 145
Joined: April 3rd, 2013, 1:04 am
Location: O-High-O

Re: New Plugin: AudioLevel

Post by Dank420 »

HiTBiT-PA definitely saved me some time with digital vu code, heres one of the things ive done with it...

Code: Select all

[Rainmeter]
Update=5
ContextTitle=DisableLineGraphs
ContextAction=[!pausemeasure mpeak][!disablemeasuregroup Linegraphs][!Hidemeter LGraph][!HIdemeter LGraph2][!Update][!Update]
ContextTitle2=Enable LineGraphs
ContextAction2=[!Unpausemeasure mpeak][!Enablemeasuregroup Linegraphs][!showmeter LGraph][!showmeter LGraph2][!Update]


[Variables]
barhieght=200
barwidth=90
color=63,133,49
color2=207,27,51

; VU-Meter Measures -parents-----------------------------------------------------------------------

[MeasureAudioOutput1]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=150
RMSDecay=50
RMSGain=2.5
PeakAttack=15
PeakDecay=1000
PeakGain=1.0
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}

[MeasureAudioOutput1_2]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=150
RMSDecay=75
RMSGain=2.5
PeakAttack=15
PeakDecay=1100
PeakGain=1.0
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}

[MeasureAudioOutput2]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=100
RMSDecay=75
RMSGain=2.5
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}

[MeasureAudioOutput2_2]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=100
RMSDecay=100
RMSGain=2.5
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}

[MeasureAudioOutput3]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=150
RMSDecay=300
RMSGain=2.5
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}


[MeasureAudioOutput3_2]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=150
RMSDecay=325
RMSGain=2.5
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}

[MeasureAudioOutput4]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=200
RMSDecay=150
RMSGain=2.5
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}


[MeasureAudioOutput4_2]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=200
RMSDecay=175
RMSGain=2.5
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}

;---------------children-------------------------------------------------------------------------

[MeasureAudioRMS_L1]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput1
Channel=L
Type=RMS

[MeasureAudioRMS_L1_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput1_2
Channel=L
Type=RMS

[MeasureAudioRMS_R1]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput1
Channel=R
Type=RMS

[MeasureAudioRMS_R1_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput1_2
Channel=R
Type=RMS

[MeasureAudioRMS_L2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput2
Channel=L
Type=RMS

[MeasureAudioRMS_L2_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput2_2
Channel=L
Type=RMS

[MeasureAudioRMS_R2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput2
Channel=R
Type=RMS

[MeasureAudioRMS_R2_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput2_2
Channel=R
Type=RMS

[MeasureAudioRMS_L3]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput3
Channel=L
Type=RMS

[MeasureAudioRMS_L3_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput3_2
Channel=L
Type=RMS

[MeasureAudioRMS_R3]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput3
Channel=R
Type=RMS

[MeasureAudioRMS_R3_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput3_2
Channel=R
Type=RMS

[MeasureAudioRMS_L4]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput4
Channel=L
Type=RMS

[MeasureAudioRMS_L4_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput4_2
Channel=L
Type=RMS

[MeasureAudioRMS_R4]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput4
Channel=R
Type=RMS

[MeasureAudioRMS_R4_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput4_2
Channel=R
Type=RMS

[MeasureAudioPeak_L]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput1
Channel=L
Type=Peak

[MeasureAudioPeak_L_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput1_2
Channel=L
Type=Peak

[MeasureAudioPeak_R]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput1
Channel=R
Type=Peak


[MeasureAudioPeak_R_2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput1_2
Channel=R
Type=Peak

;--Meters----------------------------------------------------------------------------------------

[VU-Meter1_L_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_L1_2
barcolor=#Color2#
X=0
Y=#barhieght#
w=#barwidth#
h=#barhieght#

[VU-Meter2_L_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_L2_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#


[VU-Meter3_L_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_L3_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter4_L_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_L4_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter5_L_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudiopeak_L_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter1_R_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioPeak_R_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter2_R_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_R4_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter3_R_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_R3_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter4_R_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_R2_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter5_R_2]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_R1_2
barcolor=#Color2#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter1_L]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_L1
barcolor=#Color#
X=0
Y=#barhieght#
w=#barwidth#
h=#barhieght#


[VU-Meter2_L]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_L2
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter3_L]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_L3
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter4_L]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_L4
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter5_L]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioPeak_L
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter1_R]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioPeak_R
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter2_R]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_R4
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter3_R]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_R3
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter4_R]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_R2
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#

[VU-Meter5_R]
Meter=Bar
BarOrientation=Vertical
MeasureName=MeasureAudioRMS_R1
barcolor=#Color#
X=2R
Y=r
w=#barwidth#
h=#barhieght#
;--linegraphs--------------------------------------------------------------

[mPeak]
Measure=Plugin
Plugin=AudioLevel
Type=Peak
PeakAttack=0
PeakDecay=0
RMSAttack=0
RMSDecay=0
;Id={0.0.0.00000000}.{f74349d0-9741-4987-a9bd-40178fa9ad06}
group=Linegraph

[LGraph]
Meter=Line
x=0
y=250
W=459
H=150
LineCount=1
MeasureName=mPeak
AntiAlias=1
GraphStart=right
LineColor=#color2#
Dynamicvariables=1
updatedivider=5
group=Linegraph

[LGraph2]
Meter=Line
x=R
y=r
W=459
H=150
LineCount=1
MeasureName=mPeak
LineColor=#color2#
AntiAlias=1
GraphStart=left
updatedivider=5
group=Linegraph

again, dgrace, loving the plugin...
You do not have the required permissions to view the files attached to this post.
Last edited by Dank420 on July 26th, 2014, 5:18 pm, edited 2 times in total.
supernemo
Posts: 6
Joined: July 21st, 2014, 12:52 pm

Re: New Plugin: AudioLevel

Post by supernemo »

Dank420
You can make separate peaks
You do not have the required permissions to view the files attached to this post.
User avatar
Dank420
Posts: 145
Joined: April 3rd, 2013, 1:04 am
Location: O-High-O

Re: New Plugin: AudioLevel

Post by Dank420 »

Not with just bars i don't think, would need images I'd think ?

cant create just the tiny bar at end of line, maybe with transformation matrix or images , but i don't think I could....
pisac
Posts: 34
Joined: March 23rd, 2014, 9:08 am
Location: Moldova RM

Re: New Plugin: AudioLevel

Post by pisac »