This image is the top of the content box. Unfortunately, there is no information-based reason for this div to be here. It's just here for design reasons. Sorry.
Go Back   MisticRiver :: For iriver Enthusiasts > All things Rockbox > ROCKbox Forums > ROCKbox for H3xx Series
Home Forums Register FAQ Search Today's Posts Mark Forums Read


Welcome to the misticriver forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags: , ,

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old February 21st, 2007, 12:05 PM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2005
Posts: 13
[WPS] problem with 84 levels volume display

Hi,

I have a little problem: I wanted to use the volume tag (%pv) to the max, so instead of the usual 10 bars I wanted to show all 84 volume positions. Because there are only 52 images allowed and because you can only load an image on one particular position, I needed to improvise and use text to display a bar.

I thought it could easily be done by using a code somewhat similar to this:
Code:
%e|43|88+%pv|26|1|000000|%?pv<__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__>
(I use the norbu multifont build and the font used for this part is the HelvR8 )
I turned out that it's not possible to use calculations in your WPS. So, because that didn't work, I needed to do it the big way, like this:
Code:
%e|43|89|26|1|000000|%?pv<__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|88|26|1|000000|%?pv<|__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|87|26|1|000000|%?pv<||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|86|26|1|000000|%?pv<|||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|85|26|1|000000|%?pv<||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|84|26|1|000000|%?pv<|||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|83|26|1|000000|%?pv<||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|82|26|1|000000|%?pv<|||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|81|26|1|000000|%?pv<||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|80|26|1|000000|%?pv<|||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|79|26|1|000000|%?pv<||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|78|26|1|000000|%?pv<|||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|77|26|1|000000|%?pv<||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|76|26|1|000000|%?pv<|||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|75|26|1|000000|%?pv<||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|74|26|1|000000|%?pv<|||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|73|26|1|000000|%?pv<||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|72|26|1|000000|%?pv<|||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|71|26|1|000000|%?pv<||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|70|26|1|000000|%?pv<|||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|69|26|1|000000|%?pv<||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|68|26|1|000000|%?pv<|||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|67|26|1|000000|%?pv<||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|66|26|1|000000|%?pv<|||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|65|26|1|000000|%?pv<||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|64|26|1|000000|%?pv<|||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|63|26|1|000000|%?pv<||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|62|26|1|000000|%?pv<|||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|61|26|1|000000|%?pv<||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|60|26|1|000000|%?pv<|||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|59|26|1|000000|%?pv<||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|58|26|1|000000|%?pv<|||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|57|26|1|000000|%?pv<||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|56|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|55|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|54|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|53|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|52|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||||>
%e|43|51|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||||>
%e|43|50|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||||>
%e|43|49|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||||>
%e|43|48|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||||>
%e|43|47|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||||>
%e|43|46|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||||>
%e|43|45|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||||>
%e|43|44|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||||>
%e|43|43|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||||>
%e|43|42|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||||>
%e|43|41|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||||>
%e|43|40|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||||>
%e|43|39|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||||>
%e|43|38|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||||>
%e|43|37|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||||>
%e|43|36|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||||>
%e|43|35|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||||>
%e|43|34|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||||>
%e|43|33|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||||>
%e|43|32|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||||>
%e|43|31|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||||>
%e|43|30|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||||>
%e|43|29|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||||>
%e|43|28|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||||>
%e|43|27|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||||>
%e|43|26|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||||>
%e|43|25|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||||>
%e|43|24|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||||>
%e|43|23|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||||>
%e|43|22|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||||>
%e|43|21|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||||>
%e|43|20|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||||>
%e|43|19|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||||>
%e|43|18|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||||>
%e|43|17|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||||>
%e|43|16|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||||>
%e|43|15|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||||>
%e|43|14|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||||>
%e|43|13|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||||>
%e|43|12|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||||>
%e|43|11|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||||>
%e|43|10|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||||>
%e|43|9|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|||>
%e|43|8|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__||>
%e|43|7|26|1|000000|%?pv<||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__|>
%e|43|6|26|1|000000|%?pv<|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||__>
As you can see: that's an awful lot of code, which means that the file would become over 10,000 bytes, a lot bigger than the 1600 bytes allowed for a full working WPS. So this option doesn't (fully) work either.

So, my question to you all is: is there a way to let a bar be shown (at a lower position if the volume is low, and at a higher if the volume is high), while keeping the code small? Or is it even possible to use one image at different positions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old February 21st, 2007, 02:01 PM
Denny's Avatar
mistic mad scientist
 
Join Date: Jan 2005
Location: UK - Newcastle
Posts: 1,134
What you are wanting to do is not really possible. However, there is a way of shortening your code (i think):

Code:
%?pv<%||%|%||%|%|%||%|%|%|%||%|%|%|%|%||%|%|%|%|%|%||%|%|%|%|%|%|%||%|%|%|%|%|

%|%|%||%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%||%|

%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%

|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|

%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|

%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%||%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|>
But I dont see how a display like that can be practical as it will go off the edge of the screen... Maybe use half of the potential increments. The code above goes up to 30 |'s and is 952 bytes already. (did it quickly so sorry if its not quite perfect, it works fine on my simulator though). Ignore the dodgy word wrapping, the forum did it.

*EDIT: just noticed I put in the battery tag instead of the volume one. Changed.*

Last edited by Denny : February 21st, 2007 at 03:22 PM. Reason: wrong tag
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old February 22nd, 2007, 04:06 AM
Hoping For A Cool Title
 
Join Date: Jan 2006
Posts: 56
maybe someone could make a new patch which uses 3 pictures for a volume-display:
one for "mute" (-80), one for "max" (0) and one for all the rest, which is used just like the progress-bar (1px size for -79dB, image-size minus 1px for -1dB)
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old February 24th, 2007, 04:17 PM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2005
Posts: 13
Tnx for the remarks.

It seems that I have to wait for some patches. In the meanwhile I'll use 21 different levels, which can be done by images.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 10:50 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
This image is the bottom of the content box. Unfortunately, there is no information-based reason for this div to be here. It's just here for design reasons. Sorry.