marcopixel / Lano-Visualizer

A simple but highly configurable visualizer with rounded bars.
MIT License
135 stars 17 forks source link

Flip Lano Visualizer horizontal? #13

Open JoepNelissen opened 5 years ago

JoepNelissen commented 5 years ago

Is there any way to flip/mirror the visualizer? I have a dual monitor setup with 2 different Visualizers i want to mirror one horizontal so its more symetrical. Is there any way i can do this?

DadiBit commented 4 years ago

I successfully flipped/mirrored on the Y axis the visualizer; just use this modified [ScriptFactoryBars] in visualizer.ini:

; Script Factory - generates the bars for the visualizer
[ScriptFactoryBars]
Measure=Script
ScriptFile=#@#scripts\Factory.lua
IncFile=#@#include\MeterBars.inc
Number=#BarCount#
SectionName=MeterBar%%
Option0=Meter
Value0=Shape
Option1=Group
Value1=GroupBars | GroupDynamicColors
Option2=X
Value2=0R
Option3=Y
Value3=0
Option4=Shape
Value4=Rectangle 0,0,(#BarWidth#*#ScaleVisualizer#),((#BarHeight#-(#BarWidth#*#ScaleVisualizer#))*([MeasureAudioSmoothed{%%}]>1?1:[MeasureAudioSmoothed{%%}])+(#BarWidth#*#ScaleVisualizer#)),((#BarWidth#*#ScaleVisualizer#)/2) | Fill Color #*Color*# | StrokeWidth 0
Option5=DynamicVariables
Value5=1
Option6=Padding
Value6=0,(#BarGap#*#ScaleVisualizer#),(#BarGap#*#ScaleVisualizer#),0
UpdateDivider=-1

[FixHeight]
Meter=Shape
X=(#BarGap#*#ScaleVisualizer#)
Y=0
Shape=Rectangle 0,0,0,#BarHeight# | StrokeWidth 0
UpdateDivider=-1

Please not that this will remove other visualizer (in other words you won't be able to use one "normal"and one "flipped")

DadiBit commented 4 years ago

Just noticed that there's the experimental branch where there should have been added the ability to rotate it