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 | %it : ID3 Track Title |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 26 | %in : ID3 Track Number |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 27 | %id : ID3 Album Name |
| 28 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 29 | File Info Tags: |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 30 | %fb : File Bitrate (in kbps) |
| 31 | %ff : File Frequency (in Hz) |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 32 | %fp : File Path |
Mats Lidell | 09ae8cb | 2002-09-01 21:13:07 +0000 | [diff] [blame] | 33 | %fn : File Name (without extension) |
| 34 | %fm : File Name |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 35 | %fs : File Size (In Kilobytes) |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 36 | %fv : "(vbr)" if variable bit rate or "" if constant bit rate |
| 37 | %d1 : First directory from end of file path. |
| 38 | %d2 : Second directory from end of file path. |
Björn Stenberg | ef41370 | 2002-09-06 23:57:09 +0000 | [diff] [blame] | 39 | %d3 : Third directory from end of file path. |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 40 | |
| 41 | Example for the the %dN commands: If the path is "/Rock/Kent/Isola/11 - |
| 42 | 747.mp3", %d1 is "Isola", %d2 is "Kent"... You get the picture. |
| 43 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 44 | Playlist/Song Info Tags: |
Björn Stenberg | 3e92ef4 | 2002-09-06 23:25:24 +0000 | [diff] [blame] | 45 | %pb : Progress Bar |
| 46 | Player: This will display a 1 character "cup" that empties as the |
| 47 | progresses. |
| 48 | Recorder: This will replace the entire line with a progress bar. |
Linus Nielsen Feltzing | bb572c4 | 2002-09-27 09:31:31 +0000 | [diff] [blame] | 49 | %pm : Peak Meter (Recorder only) |
| 50 | The entire line is used as volume peak meter. |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 51 | %pp : Playlist Position |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 52 | %pe : Total Number of Playlist Entries |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 53 | %pc : Current Time In Song |
Justin Heiner | 87f5324 | 2002-08-30 03:08:02 +0000 | [diff] [blame] | 54 | %pr : Remaining Time In Song |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 55 | %pt : Total Track Time |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 56 | |
| 57 | Conditional Tags (If/Else block): |
| 58 | %?xx<|> : Conditional: if the tag specified by "xx" has a value, the |
| 59 | text between the "<" and the "|" is displayed, else the text |
| 60 | between the "|" and the ">" is displayed. |
| 61 | The else part is optional, so the "|" does not have to be |
| 62 | specified if no else part is desired. The conditionals nest, |
| 63 | so the text in the if and else part can contain all % |
| 64 | commands, including conditionals. |
| 65 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 66 | Other Tags: |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 67 | %% : Display a '%' |
| 68 | %< : Display a '<' |
| 69 | %| : Display a '|' |
| 70 | %> : Display a '>' |
| 71 | %s : Indicate that the line should scroll. Can occur anywhere in |
| 72 | a line (given that the text is displayed; see conditional |
| 73 | below). Only the first line with a %s will actually scroll. |
| 74 | %s is ignored if combined with %pb, %pc or %pr on the same |
| 75 | line (the result wouldn't be good anyway). |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 76 | |
Justin Heiner | eb94e0b | 2002-09-06 06:14:52 +0000 | [diff] [blame] | 77 | Example File |
| 78 | ------------ |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 79 | %s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]> |
| 80 | %pb%pc/%pt |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 81 | |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 82 | That is, "tracknum - title [artist, album]", where most fields are only |
| 83 | displayed if available. Could also be rendered as "filename" or |
| 84 | "tracknum - title [artist]". |
Björn Stenberg | 2042c50 | 2002-09-23 05:19:11 +0000 | [diff] [blame] | 85 | |
| 86 | Default |
| 87 | ------- |
Daniel Stenberg | 0cf2174 | 2002-10-10 14:44:39 +0000 | [diff] [blame] | 88 | If you haven't selected a .wps file in the .rockbox directory, you get the |
| 89 | hardcoded wps layout. The default WPS screen is for player: |
Björn Stenberg | 2042c50 | 2002-09-23 05:19:11 +0000 | [diff] [blame] | 90 | |
| 91 | %s%pp/%pe: %?ia<%ia - >%?it<%it|%fm> |
Björn Stenberg | 3a44d4d | 2002-10-11 12:15:49 +0000 | [diff] [blame^] | 92 | %pc%pb%pt |
Björn Stenberg | 2042c50 | 2002-09-23 05:19:11 +0000 | [diff] [blame] | 93 | |
| 94 | and for recorder: |
| 95 | |
| 96 | %s%fp |
| 97 | %it |
| 98 | %id |
| 99 | %ia |
| 100 | %fb kbit %fv |
| 101 | Time: %pc / %pt |
| 102 | %pb |
Björn Stenberg | 3a44d4d | 2002-10-11 12:15:49 +0000 | [diff] [blame^] | 103 | %pm |