I have an audio visualizer based on radian_vibrance_visualizer_1.3 skin.
This skin uses Lua to generate the .ini files for the visualizer lines.
I have tweaked it a bit to suite my skin but one thing I can not get it to work.
The line length of the visualizer is related to the volume .
The line length can be set with the "amplifier" variable
When I change the volume (which I measure) I want the variable "Amplifier" to increase or decrease so I have more or less the same line length independent of the volume
I use this code:
Code: Select all
[Metadata]
Author=FreezingClouds
Name=Radian Vibrance Visualizer
Version=1.3
[Rainmeter]
Update=40
[Variables]
Pad=#CURRENTPATH#@Resources\
@include=#Pad#Vibrance\VibranceVariables.inc
[MSLine]
LineWidth=#BarWidth#
Solid=#BubbleMode#
AntiAlias=1
[MSTip]
LineLength=(#BarWidth#/2)
Solid=1
AntiAlias=1
Hidden=#BubbleMode#
[MeasureVolume]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
Substitute="":"N/A"
;IfConditionMode=1
IfCondition=MeasureVolume > 80
IfTrueAction= [!SetVariable "Amplifier" "1"]
IfCondition2=(MeasureVolume = 80) && (MeasureVolume >60)
IfTrueAction2=[!SetVariable "Amplifier" "2"]
IfCondition3=(MeasureVolume = 60) && (MeasureVolume >40)
IfTrueAction3=[!SetVariable "Amplifier" "3"]
IfCondition4=(MeasureVolume = 40) && (MeasureVolume >20)
IfTrueAction4=[!SetVariable "Amplifier" "4"]
dynamicvariables=1
[VibranceScript]
Measure=Script
ScriptFile=#Pad#Vibrance\Vibrance.lua
OutFile=#Pad#Vibrance\Lines.inc
[ScriptRefresher]
Measure=Script
ScriptFile=#Pad#Vibrance\Refresher.lua
Refreshed=0
UpdateDivider=-1
[AudioExtractor]
Measure=Plugin
Plugin=AudioLevel
FFTSize=#FFTSize#
FFTOverlap=128
FFTAttack=80
FFTDecay=80
Bands=(Clamp(#Bars#,2,360))
FreqMin=100
FreqMax=12000
Sensitivity=#Sensitivity#
@include=#Pad#Vibrance\Lines.inc
[Progress/Bounds]
Meter=Roundline
X=735
Y=390
W=(2*#BarHeight#+#CoverSize#+200)
H=(2*#BarHeight#+#CoverSize#+200)
AntiAlias=1
I think somehow I must call the Vibrance Lua script when "Amplifier" variable changes to generate NEW .ini files with the changed "Amplifier" variable when I change the volume but I do not know how.
Here is the skin file:
All help is appreciated