Old 28th January 2008, 03:48   #1
Senior Member
Join Date: Oct 2006
Posts: 357
Precision slider impossible?

I am trying to make a precision equalization slider and it seems that this may not be possible. Here is an example of the XML.

low="-127" high="127"
x="134" y="0"
w="13" h="80"
The button has a size of 13widex8high

I trap the changes and display them. It seems that in the middle the button stays in one place and has 2 possible values when you move the mouse. In the middle -3 and 0 are the same button position. This also happens in other places in the range. This is very obvious if you go to 200% magnification.

The current modern skin slider is a bit cuckoo. It has something like 7 tick intervals from 0 to 6 dB. The ticks are just decorative rather than functional. Also with the detent at 0 it is not possible to equalize less that 2.5dB or so. So this is why I am trying to make a more precise equalizer.

Does anyone have a solution, workaround, or explanation?
clementj is offline   Reply With Quote
Old 28th January 2008, 09:50   #2
Major Dude
SLoB's Avatar
Join Date: Jul 2003
Location: UK
Posts: 1,316
i think vertical sliders are borked atm, checkout pre amp slider on eq on modern skin or any skin
SLoB is offline   Reply With Quote
Old 28th January 2008, 23:40   #3
Senior Member
Join Date: Oct 2006
Posts: 357
The equalizer sliders on the modern skin have exactly the same problems. At the ends they have 2 values for the same position of the button. They also have the additional difficulty that the minimum possible gain or cut is around 2dB due to the strong detent. So I am fairly sure that the sliders are all based on the same code.

For some reason the slider button jumps, and fails to jump at points on its range. The volume slider exhibits exactly this same problem. It would not be noticieable except if you wish precision adjustement. In addition some identical sliders which vary only in the X position have different characteristics in terms of this problem.

My equalizer has no detent, which means that you can have less than 1dB gain or cut, and the ticks correspond to 1dB steps unlike the Modern skin where the ticks are ficticious, and are merely decorations. There are 7 steps for 6dB gain,and the middle of the slider never gets to the maximum or minimum value in the Modern Skin.

I may have to put in a small detent around zero at +- 0.5 dB in order to allow the user to set the gain reliably to 0. Another possibility is to parse both the button position and equalizer setting.
clementj is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump