Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Equalizer in WPS Screen
« previous next »
  • Print
Pages: [1]

Author Topic: Equalizer in WPS Screen  (Read 2090 times)

Offline Wishmaster

  • Member
  • *
  • Posts: 5
Equalizer in WPS Screen
« on: September 03, 2014, 08:18:06 AM »
I want give EQ in WPS screen. I have problem. EQ gain is from -240 to +240. It is 481 steps. I must have 10x (10 bands):
%xl(Q,eq.bmp,0,0,25)

%V(151,104,16,49,-)
%?St(eq band 0 gain)<%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qa)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qb)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qc)|%xd(Qd)|%xd(Qd)|%xd(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(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qv)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qw)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qx)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)|%xd(Qy)>

This is working good, but .wps file is too big. 8 bands is OK, but with 9 theme not working.

I tryied it over bar, but this not function. Bar is displayed full without any effect of gain setting.
%xl(R,eqbar.bmp,0,0)
%V(151,104,16,49,-)
%St(0,0,15,49,R,vertical,eq band 0 gain)

Number reading from EQ gain working OK
%St(eq band 0 gain)

Can I use %St(bar params, setting, (setting name)) for EQ gain? And how?
Or have anyone any example for use %St(bar params, setting, (setting name))?
« Last Edit: September 03, 2014, 12:09:44 PM by Wishmaster »
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Equalizer in WPS Screen
« Reply #1 on: September 03, 2014, 07:04:54 PM »
Code: [Select]
%St(x,y,w,h,<bar params>,setting,<setting name as it appears in config.cfg>)

Here's an example using balance:

Code: [Select]
%St(0,0,-,-,GENERIC_BAR,backdrop,GENERIC_BAR_BACKDROP,slider,SCRUBBER_HANDLE,setting,balance)

Note that the sections in CAPS are all image identifiers preloaded at an earlier stage.

Also, please note, that purely from a function and design standpoint, this is potentially a pretty horrible idea.
This will sacrifice a major portion on the available real estate of the wps/sbs for the sake of duplicated functionality, and unless your theme is touchscreen enabled, you can't actually do anything practical with these bars, and even if it is touchscreen enabled, at present, this won't function as expected (it will manipulate the config parameter but never actually save the config, and as such, never apply the setting) unless you compile your own build containing these pending patches.

The basic gist of what I'm saying is that to me this seems pretty impractical unless the device is touch enabled, making these bars: a - useful, and b - allowing the screen view to be toggled on demand so that there isn't a massive area of screen real estate wasted presenting information that will be static 99% of the time.

If the device is touchscreen, you can easily toggle this view conditionally, but with a non-touch target, you would be limited to either displaying this full-time (which is incredibly wasteful as this real estate could be used to display much more relevant data), or toggle it via one of the hardware or state sensitive conditions.

I note that you said that this made the theme "too big", and that concerns me somewhat, that tells me that you have either a low resolution device, a low memory device, or potentially both. And if you're getting to a point that a few bytes of theme code makes a difference, this means you've reduced the audio buffer to near non-existence, which will screw you on efficiency and battery life down the track due to having to pretty much constantly refresh the now tiny buffer. This is an audio player, primarily, having it look sexy isn't too appealing if a side effect of that is that you'll be unable to play audio.

If you want to have a look at how these bars work, and/or examine other instances of syntax usage, you can have a look at the bones of a project I have been working on for the past...forever, here.


[Saint]
« Last Edit: September 03, 2014, 07:10:24 PM by [Saint] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Re: Equalizer in WPS Screen
« Reply #2 on: November 08, 2014, 11:59:11 PM »
hi im not sure if this is what you are asking about or need
but i made a eq in my wps and it works great!

http://forums.rockbox.org/index.php/topic,43467.msg220739.html#msg220739

Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Equalizer in WPS Screen
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.074 seconds with 15 queries.