Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Volume Plugin
#21
Hi Alyx.
Testing plugin with windows 8 works, ok
5.1 tested ok.
For my G19, well ok, only one problem, the images, I want to put background, leaving no color are distorted.
great job
regards
#22
QUOTE

Was du mir mal verraten koenntes waere eine Moeglichkeit den parameter sring im Plugin zu zerlegen das alles was ich gefunden habe ist nichst so ganz das gelbe.

Wie jetzt? Was ist mit zerlegen gemeint?

:edit:

Wo ist der Quellcode? C:
Current stable version of LCDHype: 0.7.6
New plugin: Notepad++ Bookmark Manager
New music: Nordwise - Empire transition
#23
naja du ubergiebst doch das den string in parameter da hast ja dann drin "myfunk,1,2,3" usw immoment zerlege ich den mit
CODE

strcpy_s(string,parameter);
x=string,
tok1=strtok_s(x,",",&context),
tok2=strtok_s(NULL,",",&context);


sind halt nur dann 2 parameter den ersten und den 2. fuer die channel set braeuchte ich aber 3
ist halt nicht so pralle und die while schliefe die ich gebaut habe will nicht
CODE

char delimiter[] = ",";
char *ptr[256];
int i = 0;
ptr[0] = strtok(string, delimiter);
while(ptr[i] != NULL) {
//printf("Abschnitt gefunden: %s\n", ptr);
// naechsten Abschnitt erstellen
i++;
ptr[i] = strtok(NULL, delimiter);
}

hier sollte eigentlich ptr[0]...[n] raus kommen

@Novax1 C.P
QUOTE
For my G19, well ok, only one problem, the images, I want to put background, leaving no color are distorted.

Well, i have nothing todo with a grafic mode, i give only the floats in int out. thats are only numbers thats i set itoa. may be you have an another issue.
i can't realy test it with a G19 'cause i have got only a G15.

maybe you can play with some of parameter like this
%Graph.SetTextArea(0,0,160,43)
%Graph.SetRefreshArea(0, 0, 160, 43)
%Param.RenderMode(Full)
%Param.OverlayMode()
Not sure what works.
i thin try first draw your bitmap and then get a value
#24
Thanks for answering.
again, good job,
the problem of images, color evidences the persistence only funds.
I will use it with, Alphacool 240x128 monochrome
thanks
#25
@Novax1 C.P
Okay if its okay for you smile.gif


so i have made a New one VolumePeakmeterV0.0.0.2
change Log and Download see Plugin Post

@Triny
das mit der schleife hat schon Funktioniert ich sollte auch den richtigen String nehmen^^
nun wird der parameter string in seine bestandteile zerlegt.

das mit dem WMP muss ich mal schauen wie ich den geknakt bekomme denn wenn ich die atlbase dazu packe knatsch er rum das Init und CleanUp nicht eindeutig sind, sind iwo in der atlsn.lib schon definiert warum auch immer

#26
this little script is tested with the new update 0.2.
works ok. analog 5.1
¿ Any questions, my audio has a sound card, Audigy2 Zs, and external decoder.
when I put a movie switches to output, Digital.
then the plugin is no longer receiving signal, audio ? wink.gif

analog 5.1
demonstration
#Header
%Graph.SetTextArea(0,0,240,128)
%Graph.SetRefreshArea(0,0,240,128)
%Common.SetPriority(100)
%Param.RenderMode(Full)
%Param.OverlayMode()
%CleanUp.ClearVRAM()
%CleanUp.ClearInputBuffer(All)
%CleanUp.RefreshArea(All)

#EndHeader



#GfxMode
%Format.Bar(Horizontal, 150, 5, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar('Step'), 1, 0, 5, 37)/Volumen/
%Format.Bar(Horizontal, 150, 5, 0, 1000000,%Plugin.VolumePeakmeter.GetPeakChannel(1),1,0,30,50)/left/
%Format.Bar(Horizontal, 150, 5, 0, 1000000,%Plugin.VolumePeakmeter.GetPeakChannel(2),1,0,30,60)/right/
%Format.Bar(Horizontal, 150, 5, 0, 1000000,%Plugin.VolumePeakmeter.GetPeakChannel(3),1,0,30,70)/Central/
%Format.Bar(Horizontal, 150, 5, 0, 1000000,%Plugin.VolumePeakmeter.GetPeakChannel(4),1,0,30,80)/Subbofer/
%Format.Bar(Horizontal, 150, 5, 0, 1000000,%Plugin.VolumePeakmeter.GetPeakChannel(5),1,0,30,90)/Trasero izquierdo/
%Format.Bar(Horizontal, 150, 5, 0, 1000000,%Plugin.VolumePeakmeter.GetPeakChannel(6),1,0,30,100)/Trasero Derecho/
%Common.CreateNewLine(1,35,9)
%Graph.Font(Arial, 8, 1)
'Vol '%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),10000))' %'
%If( %Plugin.VolumePeakmeter.GetMute() = 1 ) Then
{
%Graph.LoadBitmap('images2.bmp', 170, y, 0, 0, 14, 24, 1, Mode)/Mute OFF/
} Else
{
%Graph.LoadBitmap('images.bmp', 170, y, 0, 0, 15, 24, 1, Mode)/Mute ON/
}
#EndGfxMode
#27
It is solved, it had tried this option. enabled, internal decoder.
the Blast, audio. The plugin works perfectly also on digital output.
regards
#28
Hi alex
forgive my explanation but I have to translate Spanish English
I want to put a picture of a button you are moving with the motion of the volume as 'Bar'
If you can, you can give an example thanks.
this is what I want.

%Format.Bar(Horizontal, 113, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(), 1, 0, 197, 70)
%LCD.Gfx_LoadBitmap('trace2.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar()113)),197),69,1,1,28,26,1)
#29
%LCD.Gfx_LoadBitmap('trace2.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),113)),197),69,1,1,28,26,1)

first you have forgotten a Comma "marked in red"
second you schout then set the xpos of bitmap an exampel of that i have only
this

maybe you can use this one
%Graph.LoadBitmap('yourbmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),6369)),0,0,0,3/bmpwidth/,37/bmp height/,1/invertmode/,NONE)
this works in G15 from Left To right on full width
itsn not exakt but you can calc an exat value for "6369" 1000000/width
#30
QUOTE (Alyx @ October 03, 2013 07:58 am)
%LCD.Gfx_LoadBitmap('trace2.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),113)),197),69,1,1,28,26,1)

first you have forgotten a Comma "marked in red"
second you schout then set the xpos of bitmap an exampel of that i have only
this

maybe you can use this one
%Graph.LoadBitmap('yourbmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),6369)),0,0,0,3/bmpwidth/,37/bmp height/,1/invertmode/,NONE)
this works in G15 from Left To right on full width
itsn not exakt but you can calc an exat value for "6369" 1000000/width

the image is displayed, but leaves a trail of the image, I can not move the image right, left.
Excuse my ignorance


#Header
/ /
%Graph.SetTextArea(0,0,320,240)
%Graph.SetRefreshArea(0, 0, 320, 240)
%Param.RenderMode(Full)
%Param.RenderMode(Full)
%Common.SetPriority(1000)
%LCD.Gfx_SetOverlayMode()
%Param.RenderMode(Full)
%CleanUp.TextArea(All)
%DefVar(buttons=1)
%Graph.LoadBitmap('winamp16-F7.bmp', X, Y, OffsetX, OffsetY, 320, 240, Inverted, Mode)
#EndHeader


#GfxMode
%LCD.Gfx_SetOverlayMode()

/%Format.Bar(Horizontal, 113, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(), 1, 0, 197, 70)/
%Graph.LoadBitmap('trace2.bmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),10000)),60,0,0,20,37, 0,NONE)

#31
QUOTE (Novax1 C.P @ October 03, 2013 08:37 am)
QUOTE (Alyx @ October 03, 2013 07:58 am)
%LCD.Gfx_LoadBitmap('trace2.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),113)),197),69,1,1,28,26,1)

first you have forgotten a Comma "marked in red"
second you schout then set the  xpos of bitmap an exampel of that i have only
this 

maybe you can use this one
%Graph.LoadBitmap('yourbmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),6369)),0,0,0,3/bmpwidth/,37/bmp height/,1/invertmode/,NONE)
this works in G15 from Left To right on full width
itsn not exakt but you can calc an exat value for "6369" 1000000/width

the image is displayed, but leaves a trail of the image, I can not move the image right, left.
Excuse my ignorance


#Header
/ /
%Graph.SetTextArea(0,0,320,240)
%Graph.SetRefreshArea(0, 0, 320, 240)
%Param.RenderMode(Full)
%Param.RenderMode(Full)
%Common.SetPriority(1000)
%LCD.Gfx_SetOverlayMode()
%Param.RenderMode(Full)
%CleanUp.TextArea(All)
%DefVar(buttons=1)
%Graph.LoadBitmap('winamp16-F7.bmp', X, Y, OffsetX, OffsetY, 320, 240, Inverted, Mode)
#EndHeader


#GfxMode
%LCD.Gfx_SetOverlayMode()

/%Format.Bar(Horizontal, 113, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(), 1, 0, 197, 70)/
%Graph.LoadBitmap('trace2.bmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),10000)),60,0,0,20,37, 0,NONE)

It is solved thank you very much for answering
regards

%Format.Bar(Horizontal, 113, 1, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(0), 0, 0, 199, 70)
%LCD.Gfx_LoadBitmap('trace2.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),197),68,1,1,28,26,1)
#32
Hello again
I have not much idea of this written codes.
forgive, I put an image to move vertically with the volume.
can you please give an example thanks.

%Format.Bar(Vertical, 239, 3, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(0), 1, 0, 0, 115)/Volumen/
#33
CODE

#Header
%Graph.SetTextArea(0,0,160,43)
%Graph.SetRefreshArea(0, 0, 160, 43)
%Common.SetPriority(1)  
%Graph.SetInvertArea(0,0,160,43)
#EndHeader
#GfxMode
%Param.OverlayMode()
/Horizontal/
%Graph.LoadBitmap('bmp/Doppelpunkt1.bmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),6369)),0,0,0,3,37,1,NONE)
/Vertical/
%Graph.LoadBitmap('bmp/Doppelpunkt1.bmp',80,%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),0,0,3,37,1,NONE)

/Moves Graf Dots in shape of an arrow/
%Graph.SetPixel(0, %Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)), 1)
%Graph.SetPixel(1, %Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)), 1)
%Graph.SetPixel(2, %Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)), 1)
%Graph.SetPixel(3, %Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)), 1)
%Graph.SetPixel(1, %Dec(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),1), 1)
%Graph.SetPixel(2, %Dec(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),2), 1)
%Graph.SetPixel(1, %Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),1), 1)
%Graph.SetPixel(2, %Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),2), 1)
#EndGfxMode

This are my settings for a G15

The dubblepoint.bmp i use on a 7-Segment-LCD Clock/
And it works without a tail

And vor A bar verertical

CODE
%Format.Bar(Vertical, 1, 41, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(), 1, 0, 0, 1)/Left/
#34
QUOTE (Alyx @ October 03, 2013 11:18 pm)
CODE

#Header
%Graph.SetTextArea(0,0,160,43)
%Graph.SetRefreshArea(0, 0, 160, 43)
%Common.SetPriority(1)  
%Graph.SetInvertArea(0,0,160,43)
#EndHeader
#GfxMode
%Param.OverlayMode()
/Horizontal/
%Graph.LoadBitmap('bmp/Doppelpunkt1.bmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),6369)),0,0,0,3,37,1,NONE)
/Vertical/
%Graph.LoadBitmap('bmp/Doppelpunkt1.bmp',80,%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),0,0,3,37,1,NONE)

/Moves Graf Dots in shape of an arrow/
%Graph.SetPixel(0, %Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)), 1)
%Graph.SetPixel(1, %Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)), 1)
%Graph.SetPixel(2, %Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)), 1)
%Graph.SetPixel(3, %Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)), 1)
%Graph.SetPixel(1, %Dec(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),1), 1)
%Graph.SetPixel(2, %Dec(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),2), 1)
%Graph.SetPixel(1, %Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),1), 1)
%Graph.SetPixel(2, %Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),2), 1)
#EndGfxMode

This are my settings for a G15

The dubblepoint.bmp i use on a 7-Segment-LCD Clock/
And it works without a tail

And vor A bar verertical

CODE
%Format.Bar(Vertical, 1, 41, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(), 1, 0, 0, 1)/Left/

I have a problem.
can not get the image shift vertically to the volume is incorrect
when I go up, volume down image.
when low, the image volume up.
thanks huh.gif

%Graph.LoadBitmap('cursor1.bmp',80,%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),0,0,3,37,1,NONE)
#35
Post your wohle Script I'll see
#36
QUOTE (Alyx @ October 04, 2013 07:31 am)
Post your wohle Script I'll see

this is what I have written for 240x128 lcd.

#Header
%Graph.SetTextArea(0,0,240,128)
%Graph.SetRefreshArea(0,0,240, 128)
%Param.RenderMode(Full)
%Param.RenderMode(Full)
%Common.SetPriority(100)

%Param.RenderMode(Full)
%CleanUp.TextArea(All)
%Param.OverlayMode()
%Common.SetPriority(1)
/%Graph.SetInvertArea(0, 0, 240, 128)/

#EndHeader

#GfxMode
%LCD.Gfx_SetOverlayMode()
%Common.CreateNewLine(1,)
%If( %System.Input(GetCode) = 8 )
Then { %Common.ChangeScreen(0,Next) }
%Common.CreateNewLine(1,)
%Format.Bar(Horizontal, 239, 3, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(), 1, 0, 0, 115)/Volumen/
/%Graph.LoadBitmap('cursor1.bmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),4369)),111,0,0,10,10,1,NONE)/

%Graph.LoadBitmap('cursor1.bmp',80,%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),23809)),0,0,3,37,1,NONE)
/ /
/%Format.Bar(Vertical, 4, 83, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(1), 1, 0, 2, 1)/
/%Format.Bar(Vertical, 4, 83, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(2), 1, 0, 233, 1)/
/%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(5), 1, 0, 8, 95)/
/%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(6), 1, 0, 160, 95)/
/%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(3), 1, 0, 85, 83)/
/%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(4), 1, 0, 85, 5)/
/ /

/%Common.CreateNewLine(1,35,20)
%Graph.Font('Arial', 8, 1,NONE)
'Vol '%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),10000))' %'
%Common.CreateNewLine(1,35,35)
'dB '%Trunc(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevel(),1000000),4)' Inc '%Div(%Plugin.VolumePeakmeter.GetVolumeRangeLevel('IncrementDB'),1000000)
%Common.CreateNewLine(1,35,50)
'Step '%Plugin.VolumePeakmeter.GetVolumeStepInfo('Step')' von '%Plugin.VolumePeakmeter.GetVolumeStepInfo('Count')/
/ /
/%Graph.Font('Arial', 8, 1)
%Common.CreateNewLine(1,10,35)
'L'
%Common.CreateNewLine(2,220,35)
'R'
%Common.CreateNewLine(3,35,75)
'HL'
%Common.CreateNewLine(4,187,75)
'HR'
%Common.CreateNewLine(5,98,65)
'Center'
%Common.CreateNewLine(6,110,13)
'sub'
%Common.CreateNewLine(7,165,1)
'Mute'
%If( %Plugin.VolumePeakmeter.GetMute() = 1 ) Then
{
%Graph.LoadBitmap('altavoz off.bmp', 200, 1, 0, 0, 14, 20, 1, NONE)
} Else
{
%Graph.LoadBitmap('altavoz on.bmp', 200, 1, 0, 0, 14, 20, 1, NONE)
}/

#EndGfxMode



#37
and this is what I want to achieve but that nozzle.
left channel has opposite and right channel has the opposite direction.
thanks

#Header
%Graph.SetTextArea(0,0,240,128)
%Graph.SetRefreshArea(0,0,240, 128)
%Param.RenderMode(Full)
%Param.RenderMode(Full)
%Common.SetPriority(100)

%Param.RenderMode(Full)
%CleanUp.TextArea(All)
%Param.OverlayMode()
%Common.SetPriority(1)
/%Graph.SetInvertArea(0, 0, 240, 128)/

#EndHeader

#GfxMode
%LCD.Gfx_SetOverlayMode()
%Common.CreateNewLine(1,)
%If( %System.Input(GetCode) = 8 )
Then { %Common.ChangeScreen(0,Next) }
%Common.CreateNewLine(1,)
%Format.Bar(Horizontal, 239, 3, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(), 1, 0, 0, 115)/Volumen/
%Graph.LoadBitmap('cursor1.bmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),4369)),111,0,0,10,10,1,NONE)/Volumen/
/ /
%Format.Bar(Vertical, 4, 83, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(1), 1, 0, 2, 1)/Left/
%Format.Bar(Vertical, 4, 83, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(2), 1, 0, 233, 1)/Right/
%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(5), 1, 0, 8, 95)/BackLeft/
%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(6), 1, 0, 160, 95)/BackRight/
%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(3), 1, 0, 85, 83)/Center/
%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(4), 1, 0, 85, 5)/Sub/
/ /
%Common.CreateNewLine(1,)
%Graph.LoadBitmap('cursor.bmp',0,%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(1),20000)),0,0,10,15,1,)/Left Vertical/
%Common.CreateNewLine(1,)
%Graph.LoadBitmap('cursor.bmp',230,%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(2),20000)),0,0,10,15,1,)/Right Vertical /
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(5),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),9),90,0,0,10,15,1,NONE)/BackLeft/
%Common.CreateNewLine(1)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(3),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),86),78,0,0,10,15,1,NONE)/center/
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(6),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),161),90,0,0,10,15,1,NONE)/BackRight/
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(4),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),86),0,0,0,10,15,1,NONE)/Sub/
/ /
%Common.CreateNewLine(1,35,20)
%Graph.Font('Arial', 8, 1,NONE)
'Vol '%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),10000))' %'
%Common.CreateNewLine(1,35,35)
'dB '%Trunc(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevel(),1000000),4)' Inc '%Div(%Plugin.VolumePeakmeter.GetVolumeRangeLevel('IncrementDB'),1000000)
%Common.CreateNewLine(1,35,50)
'Step '%Plugin.VolumePeakmeter.GetVolumeStepInfo('Step')' von '%Plugin.VolumePeakmeter.GetVolumeStepInfo('Count')
/ /
%Graph.Font('Arial', 8, 1)
%Common.CreateNewLine(1,10,35)
'L'
%Common.CreateNewLine(2,220,35)
'R'
%Common.CreateNewLine(3,35,75)
'HL'
%Common.CreateNewLine(4,187,75)
'HR'
%Common.CreateNewLine(5,98,65)
'Center'
%Common.CreateNewLine(6,110,13)
'sub'
%Common.CreateNewLine(7,165,1)
'Mute'
%If( %Plugin.VolumePeakmeter.GetMute() = 1 ) Then
{
%Graph.LoadBitmap('altavoz off.bmp', 200, 1, 0, 0, 14, 20, 1, NONE)
} Else
{
%Graph.LoadBitmap('altavoz on.bmp', 200, 1, 0, 0, 14, 20, 1, NONE)
}

#EndGfxMode



#38
QUOTE (Novax1 C.P @ October 04, 2013 07:57 am)
and this is what I want to achieve but that nozzle.
left channel has opposite and right channel has the opposite direction.
thanks

#Header
%Graph.SetTextArea(0,0,240,128)
%Graph.SetRefreshArea(0,0,240, 128)
%Param.RenderMode(Full)
%Param.RenderMode(Full)
%Common.SetPriority(100)

%Param.RenderMode(Full)
%CleanUp.TextArea(All)
%Param.OverlayMode()
%Common.SetPriority(1)
/%Graph.SetInvertArea(0, 0, 240, 128)/

#EndHeader

#GfxMode
%LCD.Gfx_SetOverlayMode()
%Common.CreateNewLine(1,)
%If( %System.Input(GetCode) = 8 )
Then { %Common.ChangeScreen(0,Next) }
%Common.CreateNewLine(1,)
%Format.Bar(Horizontal, 239, 3, 0, 1000000, %Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(), 1, 0, 0, 115)/Volumen/
%Graph.LoadBitmap('cursor1.bmp',%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),4369)),111,0,0,10,10,1,NONE)/Volumen/
/               /
%Format.Bar(Vertical, 4, 83, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(1), 1, 0, 2, 1)/Left/
%Format.Bar(Vertical, 4, 83, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(2), 1, 0, 233, 1)/Right/
%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(5), 1, 0, 8, 95)/BackLeft/
%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(6), 1, 0, 160, 95)/BackRight/
%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(3), 1, 0, 85, 83)/Center/
%Format.Bar(Horizontal, 70, 4, 0, 1000000, %Plugin.VolumePeakmeter.GetPeakChannel(4), 1, 0, 85, 5)/Sub/
      /              /
%Common.CreateNewLine(1,)   
%Graph.LoadBitmap('cursor.bmp',0,%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(1),20000)),0,0,10,15,1,)/Left Vertical/
%Common.CreateNewLine(1,)
%Graph.LoadBitmap('cursor.bmp',230,%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(2),20000)),0,0,10,15,1,)/Right Vertical /
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(5),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),9),90,0,0,10,15,1,NONE)/BackLeft/
%Common.CreateNewLine(1)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(3),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),86),78,0,0,10,15,1,NONE)/center/
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(6),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),161),90,0,0,10,15,1,NONE)/BackRight/
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(4),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),86),0,0,0,10,15,1,NONE)/Sub/
    /                /  
%Common.CreateNewLine(1,35,20)
%Graph.Font('Arial', 8, 1,NONE)
'Vol '%Round(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),10000))' %'
%Common.CreateNewLine(1,35,35)
'dB '%Trunc(%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevel(),1000000),4)' Inc '%Div(%Plugin.VolumePeakmeter.GetVolumeRangeLevel('IncrementDB'),1000000)
%Common.CreateNewLine(1,35,50)
'Step '%Plugin.VolumePeakmeter.GetVolumeStepInfo('Step')' von '%Plugin.VolumePeakmeter.GetVolumeStepInfo('Count')
  /                /
%Graph.Font('Arial', 8, 1)
%Common.CreateNewLine(1,10,35)
'L'
%Common.CreateNewLine(2,220,35)
'R'
%Common.CreateNewLine(3,35,75)
'HL'
%Common.CreateNewLine(4,187,75)
'HR'
%Common.CreateNewLine(5,98,65)
'Center'
%Common.CreateNewLine(6,110,13)
'sub'
%Common.CreateNewLine(7,165,1)
'Mute'
%If( %Plugin.VolumePeakmeter.GetMute() = 1 ) Then
{
%Graph.LoadBitmap('altavoz off.bmp', 200, 1, 0, 0, 14, 20, 1, NONE)
} Else
{
%Graph.LoadBitmap('altavoz on.bmp', 200, 1, 0, 0, 14, 20, 1, NONE)
}

#EndGfxMode

Alyx and fixed the error and image shift with movement
thank you very much for your help. wink.gif
forgive the inconvenience

%Common.CreateNewLine(1,)
%Graph.LoadBitmap('cursor.bmp',0,%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(1),-2000%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),68),0,0,10,15,1,)/Left Vertical/
%Common.CreateNewLine(1,)
%Graph.LoadBitmap('cursor.bmp',230,%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(2),-2000%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),68),0,0,10,15,1,)/Right Vertical /
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(5),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),9),90,0,0,10,15,1,NONE)/BackLeft/
%Common.CreateNewLine(1)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(3),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),86),78,0,0,10,15,1,NONE)/center/
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(6),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),161),90,0,0,10,15,1,NONE)/BackRight/
%Common.CreateNewLine(1,)
%LCD.Gfx_LoadBitmap('cursor.bmp',%Inc(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(4),1600%Div(%Plugin.VolumePeakmeter.GetVolumeMasterLevelScalar(),1000000))),86),0,0,0,10,15,1,NONE)/Sub/
#39
Right Sorry for my late answer
i haveid made it a little diffrent

CODE
%Graph.LoadBitmap('cursor.bmp',0,%Inc(%Mul(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(1),20000)),-1),80),0,0,10,15,1,)/Left Vertical/
Or
CODE
%Graph.LoadBitmap('cursor.bmp',0,%Dec(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(1),20000)),80),0,0,10,15,1,)/Left Vertical/

here you have only calc the 100000 to some othe value to geht the pixel
#40
QUOTE (Alyx @ October 05, 2013 01:20 am)
Right Sorry for my late answer
i haveid  made it a little diffrent

CODE
%Graph.LoadBitmap('cursor.bmp',0,%Inc(%Mul(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(1),20000)),-1),80),0,0,10,15,1,)/Left Vertical/
Or
CODE
%Graph.LoadBitmap('cursor.bmp',0,%Dec(%Round(%Div(%Plugin.VolumePeakmeter.GetPeakChannel(1),20000)),80),0,0,10,15,1,)/Left Vertical/

here you have only calc the 100000 to some othe value to geht the pixel


user posted image
Alyx Thanks for your help I put a design for 240x128 Aphacool your plugin and Winamp.
Themselves to adapt the same design for G15, for, g19 does not show you, there are problems with design background images in color.
Greetings i thank you again biggrin.gif


Forum Jump:


Users browsing this thread: 1 Guest(s)