Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1167

Help: Rainmeter Skins • Re: Change Shape Colour Based On MusicBee Genre

$
0
0
You set different values for the GenreColor variable through the IfMatchActionX options of the [MeasureGenre] measure and here I have two remarks:
  • The values set to the GenreColor variable (#Electro#, #EDM#, #House#, #DnB#" and #Dubstep#) are not defined, at least not in the posted code. Hope you have them defined somewhere, however if they are not, you can't use the set GenreColor variable.
  • If those variables are defined, you get some real color codes for the GenreColor variable. But this variable is not used in the code. I assume you should want to use it in the Fill Color parameter of the MySharedModifiers option of the [Meter] meter. In this option you have so far the [CalcColors] measure, which probably should return a color code, but this measure is not present in the code. So replace it with the set up GenreColor variable: MySharedModifiers=Fill Color #GenreColor# | StrokeWidth 0.
I did have an additional 20 or so colours set up with properly defined RGBA codes, I just deleted them to reduce some of the monotony of IfMatch when reading. I have replaced the #EDM# etc. codes now with defined values.

I have replaced the [CalcColors] measure with [GenreColor] now in the [Measure] and the [Meter] and I still cannot get it to work. I would assume that I have written the [GenreColor] variable wrong near the bottom of the code, but I am very new to learning Rainmeter and code in general so I am unsure where I am going wrong.

I did manage to get the colours changing previously, but there were only 3 colours and they were incorrectly defined.

Here is the code I am have now. I have again left out many of the IfMatch actions as I have quite a few in the code.

Code:

[Rainmeter]Group=AnjunabeatsUpdate=10BackgroundMode=2AccurateText=1DynamicWindowSize=1DynamicVariables=1SolidColor=0,0,0,0[Measures][MeasurePlayer]Measure=NowPlayingPlayerName=#PlayerName#PlayerType=TitleSubstitute="":"N\A"[MeasureArtist]Measure=NowPlayingPlayerName=[MeasurePlayer]PlayerType=ArtistSubstitute="":"N\A"[MeasureState]Measure=NowPlayingPlayerName=[MeasurePlayer]PlayerType=StateSubstitute="0":"Play","1":"Pause","2":"Play"[MeasureAlbum]Measure=NowPlayingPlayerName=#PlayerName#PlayerType=AlbumSubstitute="":"N\A"[MeasureGenre]Measure=PluginPlugin=NowPlayingPlayerName=#PlayerName#PlayerType=Genre; ElectroIfMatch=Electro\sHouse|Big\sRoom\sHouse|Melbourne\sBounce|Fidget\sHouse [!SetVariable GenreColor "230,206,0"]IfMatchAction=[!SetVariable GenreColor "230,206,0"]; Electronic/EDMIfMatch2=Spoken\sWord|Novelty|Comedy|IfMatchAction2=[!SetVariable GenreColor "193,193,193"]; HouseIfMatch3=Ambient\sHouse|Funky\sHouse|Deep\sTech|Progressive\sHouse|Future\sHouse|Hard\sHouse|Speed\sHouse|Microhouse|Tech\sHouse|Deep\sHouse|Organic\sHouse|Bass\sHouse|Garage\sHouse|Festival\sHouse|G-House|Afro\sHouse|Acid\sHouse|Hip\sHouseIfMatchAction3=[!SetVariable GenreColor "234,140,6"]; Drum & BassIfMatch4=Drum\s&\sBassIfMatchAction4=[!SetVariable GenreColor "242,25,4"]; DubstepIfMatch5=DubstepIfMatchAction5=[!SetVariable GenreColor "141,4,225"]; DrumstepIfMatch6=Drumstep|HalftimeIfMatchAction6=[!SetVariable GenreColor "243,33,136"]; Glitch HopIfMatch7=Glitch\sHop|Moombahcore|Moombahton|Midtempo\sBassIfMatchAction7=[!SetVariable GenreColor "11,151,87"]; TrapIfMatch8=Trap|Hip-Hop|Drift\sPhonk|Detroit\sElectroIfMatchAction8=[!SetVariable GenreColor "140,15,39"]; TranceIfMatch9=Progressive\sTrance|Acid\sTrance|Electro\sTrance|Psy-Trance|Hard\sTrance|Uplifting\sTrance|Vocal\sTrance|Big\sRoom\sTrance|Tech\sTrance|Future\sRave|Acid\sTranceIfMatchAction9=[!SetVariable GenreColor "0,126,231"]; Hard DanceIfMatch10=Hard\sDance|Hardcore\sEDM|Breakcore|HardstyleIfMatchAction10=[!SetVariable GenreColor "1,151,0"]; Nu Disco/Indie DanceIfMatch11=Electropop|Nu-disco|Synthpop|Synthwave|Disco|Indietronica|Electro-discoIfMatchAction11=[!SetVariable GenreColor "28,171,179"]; Future BassIfMatch12=Future\sBassIfMatchAction12=[!SetVariable GenreColor "154,152,252"]; BreaksIfMatch13=Progressive\sBreaks|Breaks|Big\sBeatIfMatchAction13=[!SetVariable GenreColor "18,132,101"]; IndustrialIfMatch14=Industrial|Dark\sAmbient|Post-industrial|Electro-industrialIfMatchAction14=[!SetVariable GenreColor "40,40,40"]; UK GarageIfMatch15=Speed\sGarage|2-step|Future\sGarage|Bassline|UK\sJackinIfMatchAction15=[!SetVariable GenreColor "191,127,255"]; ExperimentalIfMatch16=Experimental|Drone|Improvisation|Noise|Power\sElectronics|Avant-progIfMatchAction16=[!SetVariable GenreColor "78,18,48"]; TechnoIfMatch17=Techno|Ambient\sTechno|Peak\sTime\sTechno|Melodic\sTechno|Hard\sTechno|Industrial\sTechno|Minimal\sTechno|Dub\sTechno|Acid\sTechnoIfMatchAction17=[!SetVariable GenreColor "42,63,215"]; SoundtrackIfMatch18=SoundtrackIfMatchAction18=[!SetVariable GenreColor "233,36,239"]; JazzIfMatch19=Jazz|Jazz\sFusion|SwingIfMatchAction19=[!SetVariable GenreColor "135,206,250"]; DowntempoIfMatch20=Downtempo|Trip\sHop|Progressive\sElectronic|FolktronicaIfMatchAction20=[!SetVariable GenreColor "146,222,104"]; Leftfield BassIfMatch21=IDM|Wonky|Leftfield\sBass|Jungle\sTerror|Jersey\sClub|Juke\s/\sFootworkIfMatchAction21=[!SetVariable GenreColor "70,89,107"]; FolkIfMatch22=Singer-Songwriter|Contemporary\sFolk|Progressive\sFolk|Neofolk|Regional\sFolk|World|Waltz|Acoustic|Classical|Chamber\sMusic|OperaIfMatchAction22=[!SetVariable GenreColor "201,151,0"]; Hardcore PunkIfMatch23=Hardcore\sPunk|Metalcore|Mathcore|Post-hardcore|Melodic\sHardcore|Deathcore|GrindcoreIfMatchAction23=[!SetVariable GenreColor "103,78,167"]; PunkIfMatch24=Punk\sRock|Emo|Pop\sPunk|Post-punk|DarkwaveIfMatchAction24=[!SetVariable GenreColor "97,0,97"]; MetalIfMatch25=Drone\sMetal|Deathgrind|Progressive\sMetal|Thrash\sMetal|Death\sMetal|Black\sMetal|Groove\sMetal|Sludge\sMetal|Post-metal|Doom\sMetal|Speed\sMetal|Heavy\sMetal|Alternative\sMetal|Avant-garde\sMetalIfMatchAction25=[!SetVariable GenreColor "216,57,0"]; RockIfMatch26=Hard\sRock|Krautrock|Folk\sRock|Alternative\sRock|Post-rock|Jazz\sRock|Progressive\sRock|Art\sRock|Math\sRock|Gothic\sRock|Blues\sRock|Noise\sRock|Indie\sRock|Pop\sRock|Electronic\sRock|New\sWaveIfMatchAction26=[!SetVariable GenreColor "0,103,150"]; PsychedeliaIfMatch27=Psychedelic\sRock|Psychedelic\sFolk|Neo-PsychedeliaIfMatchAction27=[!SetVariable GenreColor "185,78,72"]; AmbientIfMatch28=AmbientIfMatchAction28=[!SetVariable GenreColor "240,180,181"]; PopIfMatch29=Pop|R&BIfMatchAction29=[!SetVariable GenreColor "255,127,182"]Substitute="GenreColor":"#Color#"OnChangeAction=[!UpdateMeasure "GenreColor"]Disabled=1DynamicVariables=1[Meter][MeterShape]Meter=ShapeShape=Rectangle 43,0,1920,50 | Extend MySharedModifiersShape2=Rectangle 43,0,50,1080 | Extend MySharedModifiersMySharedModifiers=Fill Color #GenreColor# | StrokeWidth 0DynamicVariables=1[Variables][GenreColor]Meter=BarMeasureName=MeasureGenreMeterStyle=[MeasureGenre]Disabled=1UpdateDivider=50DynamicVariables=1[ScriptRefresher]Measure=ScriptScriptFile=#@#scripts\Refresher.luaUpdateDivider=-1Refreshed=0

Statistics: Posted by e__j — Today, 7:32 pm



Viewing all articles
Browse latest Browse all 1167

Trending Articles