Página 1 de 2

Gradient LEDmeters

Publicado: 03 Feb 2015 19:45
por WAVES
Another change in Example of BassDLL. :awesome-1417754492: This time, I have included a Gradient LED Meter, to get a better appearance.
These bars of LED meter are standard image objects.

Imagen

HIDE: ON
Hidebb Message Hidden Description

Re: Gradient LEDmeters

Publicado: 03 Feb 2015 19:59
por carsonzillo
sexy thing! :)

Notes:
Tblpeak = {};
bar = 3;--what use does it have this variable?
mpl = 2;--what use does it have this variable?
mpr = 2;--what use does it have this variable?
local pbar = "";
for x=1,26 do--witdh of one col audio bass-meter
	pbar = pbar.."|";
	Tblpeak[x] = pbar;
end

Tblsize = {};
local sizebar = 150;--height of one col audio bass-meter
for x=1,150 do--same question
	Tblsize[x] = sizebar;
	sizebar = sizebar - 1;
end


TblpeakT = {};
local barT = "|";
TblpeakT[1] = barT;
for x=2,26 do--start from 2 up to the maximum witdh of a col audio bass-meter
	barT = " "..barT;
	TblpeakT[x] = barT;
end
Page.StartTimer(75,60);


Re: Gradient LEDmeters

Publicado: 06 Feb 2015 23:37
por xxsolracxx
thanks!!!

Re: Gradient LEDmeters

Publicado: 08 Feb 2015 20:05
por serot
observando Gracias

Re: Gradient LEDmeters

Publicado: 09 Feb 2015 06:54
por WAVES
this line initializes the variable bar,
bar = 3;
to be used on this code:
Image.SetSize("Image"..bar, 26, Tblsize[img_peakl]);
Image.SetSize("Image"..bar+5, 26, Tblsize[img_peakr]);
bar = bar + 1;
Note that the variable named BAR determines through concatenation, which image will have changed size!
In each of the repeat cycle timer, the image to be changed will be the next image, until activate this code:
if bar > 7 then
		bar = 3;	
end	
This code is used to create the strings useds on Label LED Meter:
for x=1,26 do--witdh of one col audio bass-meter
        pbar = pbar.."|";
        Tblpeak[x] = pbar;
end
This code I could have done better. Instead of creating a table with 150 positions, I could have simply made an arithmetic operation within the timer.
Tblsize = {};
local sizebar = 150;--height of one col audio bass-meter
for x=1,150 do--same question
        Tblsize[x] = sizebar;
        sizebar = sizebar - 1;
end
The right would be this:
	local img_peakl = 150 - (Math.Round((level.Left/32768)*150, 0));
	local img_peakr = 150 - (Math.Round((level.Right/32768)*150, 0));
	if img_peakl < 1 then
		img_peakl = 1;
	end
	if img_peakr < 1 then
		img_peakr = 1;
	end
	
	Image.SetSize("Image"..bar, 26, img_peakl);
	Image.SetSize("Image"..bar+5, 26, img_peakr);
	bar = bar + 1;
Without use the table Tblsize.

Re: Gradient LEDmeters

Publicado: 15 Feb 2015 23:17
por cris690
gracias

Re: Gradient LEDmeters

Publicado: 29 Nov 2015 21:22
por byhacker400
sapollll

Re: Gradient LEDmeters

Publicado: 07 Dic 2015 07:19
por Principiante36Noob
Checando...

Re: Gradient LEDmeters

Publicado: 04 Mar 2016 03:45
por escobar4891
viendo que traes y respondiendo

Re: Gradient LEDmeters

Publicado: 10 Mar 2016 16:50
por Kindly
muy bueno

Re: Gradient LEDmeters

Publicado: 14 Sep 2016 02:46
por Juan
viendo que traes y respondiendo

Re: Gradient LEDmeters

Publicado: 19 Sep 2016 00:41
por Juan
viendo que traes y respondiendo

Re: Gradient LEDmeters

Publicado: 22 Sep 2016 03:14
por dangngocnguyenit
:friends: cam on ban rat nhieu

Re: Gradient LEDmeters

Publicado: 28 Sep 2016 14:36
por gaphika
great share

Re: Gradient LEDmeters

Publicado: 30 Oct 2016 18:51
por LSVargas
Gracias! :awesome-1417754492: :awesome-1417754492:

Re: Gradient LEDmeters

Publicado: 29 Nov 2016 22:19
por dj.salazar
Chekando

Re: Gradient LEDmeters

Publicado: 09 Sep 2017 21:43
por oussemaTN
thanksssssssss

Re: Gradient LEDmeters

Publicado: 29 Sep 2017 20:34
por ATTACK
thank you :penguin:

Re: Gradient LEDmeters

Publicado: 29 Sep 2017 22:09
por ATTACK
Imagen

error plugin estas dando

Re: Gradient LEDmeters

Publicado: 05 Jun 2018 20:37
por leozire72
Si el plugin te da error, es posible resolverlo copiando algun archivo.lic (los encuentras en las carpetas de otro plugins instalados en la carpeta de instalacion de AMS) y renombrandolo a BASS.lic (debe tener el mismo nombre que el plugin, solo la extensión debes dejarlo como .lic)