Hi, I'm back
I need an image to be showing when the visualizer isnt active. Now I think I could do this with the nowplaying plugin but is there any way I could do this with the audiolevel plugin maybe with if conditions
I've checked the plugin docs and I cant find something that returns a value of 1 or 0 if audio is detected
It is currently April 27th, 2024, 3:27 pm
A default image for my visualizer
-
- Posts: 142
- Joined: November 17th, 2021, 5:51 am
-
- Rainmeter Sage
- Posts: 16176
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: A default image for my visualizer
There is such a possibility. Even if the code you're using would have been nice, since you didn't post it, here is a general approach:Alloutofmercy wrote: ↑December 30th, 2023, 6:01 am I need an image to be showing when the visualizer isnt active. Now I think I could do this with the nowplaying plugin but is there any way I could do this with the audiolevel plugin maybe with if conditions
I've checked the plugin docs and I cant find something that returns a value of 1 or 0 if audio is detected
Code: Select all
[MeasureAudio]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=100
RMSDecay=300
RMSGain=2.5
IfCondition=(#CURRENTSECTION#<0.00001)
IfTrueAction=[!ShowMeter "TheMeterToBeShown"][!Redraw]
IfFalseAction=[!HideMeter "TheMeterToBeShown"][!Redraw]
If you can't get it to work, post your code please.
-
- Posts: 142
- Joined: November 17th, 2021, 5:51 am
Re: A default image for my visualizer
Absolutely works. Thankyou for the quick reply
Code: Select all
[defaultimage]
meter=string
Text=Play something
X=30
Y=440
FontFace=Jetbrains mono
Fontsize=20
Fontcolor=217, 106, 142
AntiAlias=1
Code: Select all
[MeasureAudio]
Measure=Plugin
Plugin=AudioLevel
Port=Output
FFTSize=1024
FFTAttack=15
FFTDecay=250
Bands=31
Sensitivity=25
IfCondition=(#CURRENTSECTION#<0.00001)
IfTrueAction=[!ShowMeter "defaultimage"][!Redraw]
IfFalseAction=[!HideMeter "defaultimage"][!Redraw]
BOOTY
-
- Rainmeter Sage
- Posts: 16176
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: A default image for my visualizer
You're welcome. And just a nitpick, even if doesn't matter at all: [defaultimage] is not an Image meter. But obviously as said, this is not important at all. Glad you got it working as expected.