Page 1 of 1

No problems, just thought I would share this

Posted: June 21st, 2015, 1:36 am
by jav26122
So I felt like making a VU meter with a ridiculous amount of bands, but the only way I know how to do that is to write out a new meter and measure for every band. There's probably an easier way to do this, but I decided to make a script to write the script for me, cuz why not?....genius :D
100 measures written in less than a second. This is in lua btw incase you couldn't tell.
Just thought I would share my script-writing-script for the lolz.

Code: Select all

table={"[MeasureBand+]", "Measure=Plugin", "Plugin=AudioLevel", "Parent=MeasureAudio", "Type=Band", "BandIdx=+", "Channel=R", "  "}
 
for i=1, 100 do
	var = i - 1
	var2 = 100 - i
	for e=1, #table do
		string1 = table[e]
		string1 = string.gsub(string1, "+", tostring(var))
		string1 = string.gsub(string1, "~", tostring(var2))
		print(string1)
	end
end 

Re: No problems, just thought I would share this

Posted: July 6th, 2015, 3:51 pm
by drakulaboy
whoa, this is really helpful, thank you mate!