Saturday, May 22, 2004

Rockbox just keeps getting better...

The latest version of Rockbox now supports displaying the filename of the NEXT song in the playlist... cool.
Using this information on a limited size screen is a bit of a challange, but with a combination of scrolling, alternating lines I have finally managed!

Batt:%bt Vol:%pv
%t5%s%?it<%?in<%in. |>%it|%fn>;%t5%s%?It%it|%fn>>
%t5%s%?ia<%ia|%?d2<%d2|(root)>>;%t5%s%?Ia<%Ia|%?ia<%ia|%?d2<%d2|(root)>>>
%t5%s%?id<%id|%?d1<%d1|(root)>> %?iy<(%iy)|>;%t5%s%?Id<%Id|%?id<%id|%?d1<%d1|(root)>>>
Trk: %pp of %pe%?ps<{%ps}|> %?iv
Trk Time: %pc/%pt

%pm


A Sample Translation:
%t5%s%?it<%?in<%in. |>%it|%fn>;%t5%s%?It%it|%fn>>
show the first section of data for 5 seconds (%t5)
If it does not fit on screen, scroll it (%s)
is there a valid id3 trackname tag for the current song? (%?it<)
If there is, is there a valid id3 tag for the track number (%?in<)
Yes there is, so display it, followed by a full stop (%in.)
No there is not, so display nothing (|>)
Yes there is, so display it (%it)
No there is not, so display the filename of the track instead (|%fn)
End of first display section(;)

show the second section of data for 5 seconds (%t5)
If it does not fit on screen, scroll it (%s)
is there a valid id3 trackname tag for the NEXT song? (%?It<)
If there is, display the word NEXT: followed by the track number, a full stop and the title (NEXT: %In. %It)
I have assumed at this section, if there is a trackname ID3 tag, all the tags are populated
If not, display the same information as for the 1st section... (|%?it<%?in<%in. |>%it|%fn>>)

Simple eh?

No comments: