It is currently March 28th, 2024, 4:58 pm

MusiColor

Share and get help with Plugins and Addons
Post Reply
User avatar
WyzzyMoon
Posts: 10
Joined: February 9th, 2016, 8:34 pm

MusiColor

Post by WyzzyMoon »

I wrote a bit of code that create 2 variables "MusiColor" and "MusiColorT" that can be use in place of an RGB or RGBA value.
If used, they make whatever you want react to your music by changing it's color.
The low end of the spectrum colors the Red values, the mids are Green and the highs are Blue.
So now any skin can react to your music.

To use it:
1. Place "MusiColor.inc" in the Resources folder inside your skin folder.
If you don't have one yet, create a new folder and name it "resources"

2. Include "MusiColor.inc" in your skin file.
Do this by adding "@include0=#@#MusiColor.inc" at the top of the file
If there are already more "@ include" lines in the code, change the "0" to a number that in not used yet.
For most skins "@include6" will be more than enough and it wont hurt if 0 would have been fine too.

3. Use it!
Now you can use the variables "MusiColor" and "MusiColorT" in place of any RGB or RGBA code.
As an example:

Code: Select all

Color=255,255,255   ( white )
\/

Code: Select all

 Color=#MusiColor#
(MusiColor changing color)



Code: Select all

Color=255,255,255    ( white )
\/

Code: Select all

 Color=#MusiColorT#
(MusiColor changing color and transparency)




Code: Select all

Color=255,255,255,100   ( semi transparent white )
\/

Code: Select all

Color=#MusiColor#,100
(MusiColor changing color but keeping the original transparency)
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: MusiColor

Post by StArL0rd84 »

Download link?
IronKunai
Posts: 3
Joined: November 2nd, 2016, 3:02 am

Re: MusiColor

Post by IronKunai »

Note!

Hi There! If you want the MusiColor to work you are needing to add DynamicVariables=1 to the string you are adding the MusiColor, if you don't add this, it won't work at all.

IronKunai
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: MusiColor

Post by StArL0rd84 »

Hey thank you for the link.
But i found another way.
Visualizer.gif
Just add [ColorChangeLua] to SolidColor= or ImageTint= or FontColor=
And remember to add DynamicVariables=1

Code: Select all

[Variables]
 FFTSize=2048
 FFTAttackSpeed=100
 FFTDecaySpeed=50

[mAudio]
 Measure=Plugin
 Plugin=AudioLevel
 Port=Output
 FFTSize=#FFTSize#
 FFTOverlap=(#FFTSize# / 2)
 FFTAttack=#FFTAttackSpeed#
 FFTDecay=#FFTDecaySpeed#
 Bands=12
 FreqMin=20
 FreqMax=3000
 Sensitivity=50

[mBar1Row9Band]
 Measure=Plugin
 Plugin=AudioLevel
 Parent=mAudio
 Type=mAudio
 BandIdx=8

[mColorCalc]
 Measure=Calc
 Formula=[mBar1Row9Band:%]
 DynamicVariables=1

[ColorChangeLua]
 Measure=Script
 ScriptFile=#@#lua\ColorChanger.lua
 Colors=#IconsColor1#|#IconsColor2#
 MeasureName=mColorCalc
 MaximumValue=100
Not allowed to attach a lua script here, so i zipped it for ya.
ColorChanger.rar
(769 Bytes) Downloaded 160 times
A1bu5Ignatiu5
Posts: 1
Joined: February 22nd, 2017, 10:29 am

Re: MusiColor

Post by A1bu5Ignatiu5 »

I want this skin to change its colour with music while the music is playing, else display the time with the original transparency.
But no matter what I do, it just doesn't change its colour. Can somebody help?

I am talking about the clock skin only. Not the others.
The link to the skin is:

http://lilshizzy.deviantart.com/art/Rainmeter-Elegance-1-0-214509019

This skin is not owned or created by me. All the credits go to lilshizzy.
Post Reply