Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 1 | Custom WPS Display |
Justin Heiner | 5268147 | 2002-09-05 16:52:47 +0000 | [diff] [blame] | 2 | File Format Specifications |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 3 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 4 | Description / General Info |
| 5 | -------------------------- |
Justin Heiner | 7189bf2 | 2002-08-29 05:58:23 +0000 | [diff] [blame] | 6 | * The Custom WPS Display is used on both the Rockbox Player and Recorder, |
| 7 | as a means to customize the WPS to the user's likings. |
Björn Stenberg | 3e92ef4 | 2002-09-06 23:25:24 +0000 | [diff] [blame] | 8 | * After editing the .wps file, "play" it to make it take effect. |
| 9 | * The file may be 2 lines long for the Player, and 10 lines for the Recorder. |
Justin Heiner | 7189bf2 | 2002-08-29 05:58:23 +0000 | [diff] [blame] | 10 | * The line that has the time displayed on it MUST NOT be the line that |
| 11 | is scrolled, or the time will not be updated. |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 12 | * All characters not preceded by % are displayed as typed. |
| 13 | |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 14 | File Location |
| 15 | ------------- |
Daniel Stenberg | 0cf2174 | 2002-10-10 14:44:39 +0000 | [diff] [blame] | 16 | Custom WPS files may be located anywhere on the drive. The only restriction is |
| 17 | that they must end in .wps. When you PLAY a .wps file, it'll be used for the |
| 18 | future WPS screens. If the "played" wps file is located in the /.rockbox |
| 19 | folder, it'll be remembered and used for subsequent restarts. |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 20 | |
| 21 | Tags |
| 22 | ---- |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 23 | ID3 Info Tags: |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 24 | %ia : ID3 Artist |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 25 | %id : ID3 Album Name |
Daniel Stenberg | 938d3b4 | 2002-12-05 18:38:01 +0000 | [diff] [blame] | 26 | %ig : ID3 Genre Name |
| 27 | %in : ID3 Track Number |
| 28 | %it : ID3 Track Title |
| 29 | %iy : ID3 Year |
| 30 | |
| 31 | |
| 32 | Battery Info: |
| 33 | %bl : Show numeric battery level |
| 34 | %bt : Show estimated battery time left |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 35 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 36 | File Info Tags: |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 37 | %fb : File Bitrate (in kbps) |
| 38 | %ff : File Frequency (in Hz) |
Mats Lidell | 09ae8cb | 2002-09-01 21:13:07 +0000 | [diff] [blame] | 39 | %fm : File Name |
Daniel Stenberg | 938d3b4 | 2002-12-05 18:38:01 +0000 | [diff] [blame] | 40 | %fn : File Name (without extension) |
| 41 | %fp : File Path |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 42 | %fs : File Size (In Kilobytes) |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 43 | %fv : "(vbr)" if variable bit rate or "" if constant bit rate |
| 44 | %d1 : First directory from end of file path. |
| 45 | %d2 : Second directory from end of file path. |
Björn Stenberg | ef41370 | 2002-09-06 23:57:09 +0000 | [diff] [blame] | 46 | %d3 : Third directory from end of file path. |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 47 | |
| 48 | Example for the the %dN commands: If the path is "/Rock/Kent/Isola/11 - |
| 49 | 747.mp3", %d1 is "Isola", %d2 is "Kent"... You get the picture. |
| 50 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 51 | Playlist/Song Info Tags: |
Björn Stenberg | 3e92ef4 | 2002-09-06 23:25:24 +0000 | [diff] [blame] | 52 | %pb : Progress Bar |
| 53 | Player: This will display a 1 character "cup" that empties as the |
| 54 | progresses. |
| 55 | Recorder: This will replace the entire line with a progress bar. |
Daniel Stenberg | 938d3b4 | 2002-12-05 18:38:01 +0000 | [diff] [blame] | 56 | %pc : Current Time In Song |
| 57 | %pe : Total Number of Playlist Entries |
Linus Nielsen Feltzing | bb572c4 | 2002-09-27 09:31:31 +0000 | [diff] [blame] | 58 | %pm : Peak Meter (Recorder only) |
| 59 | The entire line is used as volume peak meter. |
Robert Hak | 52f1bca | 2002-10-15 11:52:50 +0000 | [diff] [blame] | 60 | %pn : Playlist Name (Without path or extension) |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 61 | %pp : Playlist Position |
Justin Heiner | 87f5324 | 2002-08-30 03:08:02 +0000 | [diff] [blame] | 62 | %pr : Remaining Time In Song |
Daniel Stenberg | 938d3b4 | 2002-12-05 18:38:01 +0000 | [diff] [blame] | 63 | %ps : Shuffle. Shows 's' if shuffle mode is enabled. |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 64 | %pt : Total Track Time |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 65 | |
| 66 | Conditional Tags (If/Else block): |
| 67 | %?xx<|> : Conditional: if the tag specified by "xx" has a value, the |
| 68 | text between the "<" and the "|" is displayed, else the text |
| 69 | between the "|" and the ">" is displayed. |
| 70 | The else part is optional, so the "|" does not have to be |
| 71 | specified if no else part is desired. The conditionals nest, |
| 72 | so the text in the if and else part can contain all % |
| 73 | commands, including conditionals. |
| 74 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 75 | Other Tags: |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 76 | %% : Display a '%' |
| 77 | %< : Display a '<' |
| 78 | %| : Display a '|' |
| 79 | %> : Display a '>' |
| 80 | %s : Indicate that the line should scroll. Can occur anywhere in |
| 81 | a line (given that the text is displayed; see conditional |
Markus Braun | bc254fe | 2002-10-21 13:14:25 +0000 | [diff] [blame] | 82 | below). You can specify up to 10 scrolling lines. |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 83 | %s is ignored if combined with %pb, %pc or %pr on the same |
| 84 | line (the result wouldn't be good anyway). |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 85 | |
Justin Heiner | eb94e0b | 2002-09-06 06:14:52 +0000 | [diff] [blame] | 86 | Example File |
| 87 | ------------ |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 88 | %s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]> |
| 89 | %pb%pc/%pt |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 90 | |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 91 | That is, "tracknum - title [artist, album]", where most fields are only |
| 92 | displayed if available. Could also be rendered as "filename" or |
| 93 | "tracknum - title [artist]". |
Björn Stenberg | 2042c50 | 2002-09-23 05:19:11 +0000 | [diff] [blame] | 94 | |
| 95 | Default |
| 96 | ------- |
Daniel Stenberg | 0cf2174 | 2002-10-10 14:44:39 +0000 | [diff] [blame] | 97 | If you haven't selected a .wps file in the .rockbox directory, you get the |
| 98 | hardcoded wps layout. The default WPS screen is for player: |
Björn Stenberg | 2042c50 | 2002-09-23 05:19:11 +0000 | [diff] [blame] | 99 | |
| 100 | %s%pp/%pe: %?ia<%ia - >%?it<%it|%fm> |
Björn Stenberg | 3a44d4d | 2002-10-11 12:15:49 +0000 | [diff] [blame] | 101 | %pc%pb%pt |
Björn Stenberg | 2042c50 | 2002-09-23 05:19:11 +0000 | [diff] [blame] | 102 | |
| 103 | and for recorder: |
| 104 | |
| 105 | %s%fp |
| 106 | %it |
| 107 | %id |
| 108 | %ia |
| 109 | %fb kbit %fv |
| 110 | Time: %pc / %pt |
| 111 | %pb |
Björn Stenberg | 3a44d4d | 2002-10-11 12:15:49 +0000 | [diff] [blame] | 112 | %pm |