2002-08-22 02:26:08 +00:00
|
|
|
Custom WPS Display
|
2002-09-05 16:52:47 +00:00
|
|
|
File Format Specifications
|
2002-08-22 02:26:08 +00:00
|
|
|
|
2002-08-27 01:05:19 +00:00
|
|
|
Description / General Info
|
|
|
|
--------------------------
|
2002-08-29 05:58:23 +00:00
|
|
|
* The Custom WPS Display is used on both the Rockbox Player and Recorder,
|
|
|
|
as a means to customize the WPS to the user's likings.
|
2002-09-06 23:25:24 +00:00
|
|
|
* After editing the .wps file, "play" it to make it take effect.
|
|
|
|
* The file may be 2 lines long for the Player, and 10 lines for the Recorder.
|
2002-08-27 01:05:19 +00:00
|
|
|
* All characters not preceded by % are displayed as typed.
|
2003-11-04 13:46:37 +00:00
|
|
|
* A line beginning with # is a comment
|
2002-08-27 01:05:19 +00:00
|
|
|
|
2002-08-22 02:26:08 +00:00
|
|
|
File Location
|
|
|
|
-------------
|
2002-10-10 14:44:39 +00:00
|
|
|
Custom WPS files may be located anywhere on the drive. The only restriction is
|
|
|
|
that they must end in .wps. When you PLAY a .wps file, it'll be used for the
|
|
|
|
future WPS screens. If the "played" wps file is located in the /.rockbox
|
2003-02-09 11:19:07 +00:00
|
|
|
folder, it'll be remembered and used for subsequent restarts. Filenames in the
|
|
|
|
/.rockbox folder must be no more than 24 characters long.
|
2002-08-22 02:26:08 +00:00
|
|
|
|
|
|
|
Tags
|
|
|
|
----
|
2002-08-27 01:05:19 +00:00
|
|
|
ID3 Info Tags:
|
|
|
|
%ia : ID3 Artist
|
2003-06-04 15:09:35 +00:00
|
|
|
%ic : ID3 Composer
|
2002-09-01 20:00:05 +00:00
|
|
|
%id : ID3 Album Name
|
2003-04-15 12:57:25 +00:00
|
|
|
%ig : ID3 Genre Name
|
2002-12-05 18:38:01 +00:00
|
|
|
%in : ID3 Track Number
|
|
|
|
%it : ID3 Track Title
|
2003-06-04 15:09:35 +00:00
|
|
|
%iv : ID3 Version (1.0, 1.1, 2.2, 2.3, 2.4 or empty if no id3 tag)
|
2002-12-05 18:38:01 +00:00
|
|
|
%iy : ID3 Year
|
|
|
|
|
|
|
|
|
|
|
|
Battery Info:
|
2003-04-15 12:57:25 +00:00
|
|
|
%bl : Show numeric battery level in percent
|
|
|
|
%bt : Show estimated battery time left
|
2002-09-01 20:00:05 +00:00
|
|
|
|
2002-08-27 01:05:19 +00:00
|
|
|
File Info Tags:
|
2002-09-01 20:00:05 +00:00
|
|
|
%fb : File Bitrate (in kbps)
|
|
|
|
%ff : File Frequency (in Hz)
|
2002-09-01 21:13:07 +00:00
|
|
|
%fm : File Name
|
2002-12-05 18:38:01 +00:00
|
|
|
%fn : File Name (without extension)
|
|
|
|
%fp : File Path
|
2002-08-27 01:05:19 +00:00
|
|
|
%fs : File Size (In Kilobytes)
|
2002-09-01 20:00:05 +00:00
|
|
|
%fv : "(vbr)" if variable bit rate or "" if constant bit rate
|
|
|
|
%d1 : First directory from end of file path.
|
|
|
|
%d2 : Second directory from end of file path.
|
2002-09-06 23:57:09 +00:00
|
|
|
%d3 : Third directory from end of file path.
|
2002-09-01 20:00:05 +00:00
|
|
|
|
|
|
|
Example for the the %dN commands: If the path is "/Rock/Kent/Isola/11 -
|
|
|
|
747.mp3", %d1 is "Isola", %d2 is "Kent"... You get the picture.
|
|
|
|
|
2002-08-27 01:05:19 +00:00
|
|
|
Playlist/Song Info Tags:
|
2002-09-06 23:25:24 +00:00
|
|
|
%pb : Progress Bar
|
|
|
|
Player: This will display a 1 character "cup" that empties as the
|
|
|
|
progresses.
|
|
|
|
Recorder: This will replace the entire line with a progress bar.
|
2003-03-11 12:49:36 +00:00
|
|
|
%pf : Player: Full-line progress bar + time display
|
2002-12-05 18:38:01 +00:00
|
|
|
%pc : Current Time In Song
|
|
|
|
%pe : Total Number of Playlist Entries
|
2002-09-27 09:31:31 +00:00
|
|
|
%pm : Peak Meter (Recorder only)
|
|
|
|
The entire line is used as volume peak meter.
|
2002-10-15 11:52:50 +00:00
|
|
|
%pn : Playlist Name (Without path or extension)
|
2002-08-27 01:05:19 +00:00
|
|
|
%pp : Playlist Position
|
2002-08-30 03:08:02 +00:00
|
|
|
%pr : Remaining Time In Song
|
2002-12-05 18:38:01 +00:00
|
|
|
%ps : Shuffle. Shows 's' if shuffle mode is enabled.
|
2002-08-27 01:05:19 +00:00
|
|
|
%pt : Total Track Time
|
2003-03-11 12:49:36 +00:00
|
|
|
%pv : Current volume
|
2002-08-27 01:05:19 +00:00
|
|
|
|
2002-09-01 20:00:05 +00:00
|
|
|
Conditional Tags (If/Else block):
|
|
|
|
%?xx<|> : Conditional: if the tag specified by "xx" has a value, the
|
|
|
|
text between the "<" and the "|" is displayed, else the text
|
|
|
|
between the "|" and the ">" is displayed.
|
|
|
|
The else part is optional, so the "|" does not have to be
|
|
|
|
specified if no else part is desired. The conditionals nest,
|
|
|
|
so the text in the if and else part can contain all %
|
|
|
|
commands, including conditionals.
|
2002-08-27 01:05:19 +00:00
|
|
|
|
2004-05-19 08:30:48 +00:00
|
|
|
Next Song Info
|
|
|
|
--------------
|
|
|
|
You can display information about the next song - the song that is about to
|
|
|
|
play after the one currently playing (unless you change the plan).
|
|
|
|
|
|
|
|
If you use the uppercase versions of the three tags: F, I and D, they will
|
|
|
|
instead refer to the next song instead of the current one. Example: %Ig is
|
|
|
|
the genre name used in the next song and %Ff is the mp3 frequency.
|
|
|
|
|
|
|
|
Take note that the next song information WILL NOT be available at all times,
|
|
|
|
but will most likely be available at the end of a song. We suggest you use the
|
|
|
|
conditional display tag a lot when displaying information about the next song!
|
|
|
|
|
2004-01-14 07:59:06 +00:00
|
|
|
Alternating Sublines
|
|
|
|
--------------------
|
|
|
|
It is possible to group items on each line into 2 or more groups or "sublines".
|
|
|
|
Each subline will be displayed in succession on the line for a specified time,
|
|
|
|
alternating continuously through each defined subline.
|
|
|
|
|
|
|
|
Items on a line are broken into sublines with the semicolon ';' character. The
|
|
|
|
display time for each subline defaults to 2 seconds unless modified by using
|
|
|
|
the '%t' tag to specify an alternate time (in seconds and optional tenths of a
|
|
|
|
second) for the subline to be displayed.
|
|
|
|
|
|
|
|
Subline related special characters and tags:
|
|
|
|
; : Split items on a line into separate sublines
|
|
|
|
%t : Set the subline display time. The '%t' is followed by either integer
|
|
|
|
seconds (%t5), or seconds and tenths of a second (%t3.5).
|
|
|
|
|
|
|
|
|
|
|
|
Each alternating subline can still be optionally scrolled while it is being
|
|
|
|
displayed, and scrollable formats can be displayed on the same line with
|
|
|
|
non-scrollable formats (such as track elapsed time) as long as they are
|
|
|
|
separated into different sublines.
|
|
|
|
|
|
|
|
Example subline definition:
|
|
|
|
|
|
|
|
%s%t4%ia;%s%it;%t3%pc %pr : Display id3 artist for 4 seconds,
|
|
|
|
Display id3 title for 2 seconds,
|
|
|
|
Display current and remaining track time
|
|
|
|
for 3 seconds,
|
|
|
|
repeat...
|
|
|
|
|
|
|
|
Conditionals can be used with sublines to display a different set and/or number
|
|
|
|
of sublines on the line depending on the evaluation of the conditional.
|
|
|
|
|
|
|
|
Example subline with conditionals:
|
|
|
|
|
|
|
|
%?it<%t8%s%it|%s%fn>;%?ia<%t3%s%ia|%t0>
|
|
|
|
|
|
|
|
The format above will do two different things depending if ID3
|
|
|
|
tags are present. If the ID3 artist and title are present :
|
|
|
|
|
|
|
|
Display id3 title for 8 seconds,
|
|
|
|
Display id3 artist for 3 seconds,
|
|
|
|
repeat...
|
|
|
|
|
|
|
|
If the ID3 artist and title are not present :
|
|
|
|
Display the filename continuously.
|
|
|
|
|
|
|
|
Note that by using a subline display time of 0 in one branch of a conditional,
|
|
|
|
a subline can be skipped (not displayed) when that condition is met.
|
|
|
|
|
|
|
|
-----------
|
|
|
|
|
2002-09-01 20:00:05 +00:00
|
|
|
Other Tags:
|
|
|
|
%% : Display a '%'
|
|
|
|
%< : Display a '<'
|
|
|
|
%| : Display a '|'
|
|
|
|
%> : Display a '>'
|
2004-01-14 07:59:06 +00:00
|
|
|
%; : Display a ';'
|
2002-09-01 20:00:05 +00:00
|
|
|
%s : Indicate that the line should scroll. Can occur anywhere in
|
2002-12-20 12:18:16 +00:00
|
|
|
a line (given that the text is displayed; see conditionals
|
2003-04-15 12:57:25 +00:00
|
|
|
above). You can specify up to 10 scrolling lines.
|
|
|
|
Scrolling lines can not contain dynamic content such as timers,
|
|
|
|
peak meters or progress bars.
|
2002-08-27 01:05:19 +00:00
|
|
|
|
2002-09-06 06:14:52 +00:00
|
|
|
Example File
|
|
|
|
------------
|
2002-09-01 20:00:05 +00:00
|
|
|
%s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]>
|
|
|
|
%pb%pc/%pt
|
2002-08-22 02:26:08 +00:00
|
|
|
|
2002-09-01 20:00:05 +00:00
|
|
|
That is, "tracknum - title [artist, album]", where most fields are only
|
|
|
|
displayed if available. Could also be rendered as "filename" or
|
|
|
|
"tracknum - title [artist]".
|
2002-09-23 05:19:11 +00:00
|
|
|
|
|
|
|
Default
|
|
|
|
-------
|
2002-10-10 14:44:39 +00:00
|
|
|
If you haven't selected a .wps file in the .rockbox directory, you get the
|
|
|
|
hardcoded wps layout. The default WPS screen is for player:
|
2002-09-23 05:19:11 +00:00
|
|
|
|
2003-11-04 13:46:37 +00:00
|
|
|
# Default WPS for Player
|
2003-04-15 12:57:25 +00:00
|
|
|
%s%pp/%pe: %?it<%it|%fn> - %?ia<%ia|%d2> - %?id<%id|%d1>
|
|
|
|
%pc%?ps<*|/>%pt
|
2002-09-23 05:19:11 +00:00
|
|
|
|
|
|
|
and for recorder:
|
|
|
|
|
2003-11-04 13:46:37 +00:00
|
|
|
# Default WPS for Recorder
|
2003-04-15 12:57:25 +00:00
|
|
|
%s%?it<%?in<%in. |>%it|%fn>
|
|
|
|
%s%?ia<%ia|%?d2<%d2|(root)>>
|
|
|
|
%s%?id<%id|%?d1<%d1|(root)>> %?iy<(%iy)|>
|
|
|
|
|
|
|
|
%pc/%pt [%pp:%pe]
|
|
|
|
%fbkBit %?fv<avg|> %?iv<(id3v%iv)|(no id3)>
|
2002-09-23 05:19:11 +00:00
|
|
|
%pb
|
2002-10-11 12:15:49 +00:00
|
|
|
%pm
|