marcopixel / monstercat-visualizer

A real time audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
MIT License
920 stars 103 forks source link

How to change order of visualizer bars? #45

Closed pacificapilot closed 7 years ago

pacificapilot commented 7 years ago

I am trying to get two instances of the visualizer running side by side, with the one on the right being reversed so that the bass is on the right, and the treble is on the left, but whenever I modify one of the .ini files, it reverts back automatically. Is there a way I can accomplish my goal here, whether it be by saving the files successfully, or by having some other method to reverse the visualizer?

tjhrulz commented 7 years ago

What is your file setup like? You need to make sure both copies of the monstercat visualizer are in different folders under your ~/documents/rainmeter/ or they will share the same variables file.

pacificapilot commented 7 years ago

I already have them in separate folders. Screenshot: screenshot 4

tjhrulz commented 7 years ago

Alright next question how are you changing the order so the order of the visualizer, are you modifying the builder or the .inc file? Because the .inc file gets rewritten on every refresh

pacificapilot commented 7 years ago

I was attempting to edit the .inc file. What file should I be modifying to get what I want? The other .ini files don't seem to have anything that I can modify to solve my issue...

tjhrulz commented 7 years ago

In the Visualizer.ini on line 51 is the section [ScriptFactoryBars] that will set the options for every bar in the MeterBars.inc file. Use %% for counting and enclose it in {} if you need to do math.

If you are just reversing the order of the bars give me a minute and I will edit this with the code I gave someone in the discord chat a few days ago.

Edit: for reversed bar order change line 64 to Value3=MeasureAudioSmoothed{#BarCount#-%%-1}

pacificapilot commented 7 years ago

This did not work. I changed the value, and first all the bars accumulated into a single space. I fixed that by changing it to: Value3=MeasureAudioSmoothed{#BarCount#-%%-1}R However, the bars did not reverse, and now there is no spacing between them, which cannot be modified in the normal settings window built into the skin.

tjhrulz commented 7 years ago

Sorry for the delay getting back to you.

My guess is that code I gave you referred to the line number and variable name from a newer version of the monstercat visualizer than the one you are looking for two lines in a row that should look like this

Option2=MeasureName Value2=MeasureAudioSmoothed{%%}

The number that comes after option and value does not matter just keep it the same and change the end of that second line to =MeasureAudioSmoothed{#BarCount#-%%-1}

tjhrulz commented 7 years ago

@MarcoPixel Also since I have seen multiple people request flipping the order of the measure bars like this maybe this should be added to the settings?

pacificapilot commented 7 years ago

Thanks so much for the help! I got it working, and it looks legit. Finished product: screenshot 9

tjhrulz commented 7 years ago

Nice, glad to see we could get it working.