Discussion:
progress bar
Jacob Potter
2002-01-13 00:27:03 UTC
Permalink
I have noticed a few oddities: every now and again an underscore somewhere
else on the display will light up for a split second.
Hmm. For me, the underscore only lights up *during* a display update.
I'm stumped too. Sean, is there anything in the firmware that disables
the cursor?
I've only used the underscore feature where the underscore *is* the
location of the cursor, i.e. when you're putting in the IP addresses.
I think that's the only way (other than custom characters) that the
underscore can be used.
Because we send a display update to the player periodically (we could
change that behavior - it's not really needed) you're going to have the
cursor zipping across the screen, so I think that explains why the
underscore appears briefly.
The display was showing the cursor in the right place according to the
position in the song (not zipping across), and the cursor control code
was sent after the data - but it seemed to me that something (maybe the
firmware?) was turning the cursor off again after each update.
The are control codes for the display to set what kind of cursor and
whether it's off, solid, or blinking. I don't remember the details, but I
think we can just turn off the cursor when refreshing the display.
I posted them earlier in this thread:
0x0E Sets display on, cursor on, blinking off
0x0C Sets display on, cursor off, blinking off
0xC0 + n Puts cursor at point n in the bottom line

- Jacob
--
"Terminak #3 has bad keyboard. Pkease fix."

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sean Adams
2002-01-12 22:48:30 UTC
Permalink
I have noticed a few oddities: every now and again an underscore somewhere
else on the display will light up for a split second.
Hmm. For me, the underscore only lights up *during* a display update.
I'm stumped too. Sean, is there anything in the firmware that disables
the cursor?
I've only used the underscore feature where the underscore *is* the
location of the cursor, i.e. when you're putting in the IP addresses.

Because we send a display update to the player periodically (we could
change that behavior - it's not really needed) you're going to have the
cursor zipping across the screen, so I think that explains why the
underscore appears briefly.

The are control codes for the display to set what kind of cursor and
whether it's off, solid, or blinking. I don't remember the details, but I
think we can just turn off the cursor when refreshing the display.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Jacob Potter
2002-01-12 18:13:15 UTC
Permalink
Jacob - Thanks for all your help, I really appreciate it.
No problem.
I got my underscore progress bar, but it isn't as nifty as I had hoped. For
those who want to see my dirty hack (I put my code in the most convenient
place, probably not the best place)...you can download my VFD.pm from
http://clarkni5.user.msu.edu (I simply added lines 243 - 255).
I have noticed a few oddities: every now and again an underscore somewhere
else on the display will light up for a split second. I also had to
power-cycle the SliMP3 when the underscore was blinnking rapidly (it
shouldn't blink), but this could be from me playing with the code.
Hmm. For me, the underscore only lights up *during* a display update.
I'm stumped too. Sean, is there anything in the firmware that disables
the cursor?

- Jacob
--
"Terminak #3 has bad keyboard. Pkease fix."

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Nicholas Clark
2002-01-12 16:06:42 UTC
Permalink
Jacob - Thanks for all your help, I really appreciate it.

I got my underscore progress bar, but it isn't as nifty as I had hoped. For
those who want to see my dirty hack (I put my code in the most convenient
place, probably not the best place)...you can download my VFD.pm from
http://clarkni5.user.msu.edu (I simply added lines 243 - 255).

I have noticed a few oddities: every now and again an underscore somewhere
else on the display will light up for a split second. I also had to
power-cycle the SliMP3 when the underscore was blinnking rapidly (it
shouldn't blink), but this could be from me playing with the code.

I am going to try a few other ideas...I'll email the list when I get them
working.
Post by Jacob Potter
"Terminak #3 has bad keyboard. Pkease fix."
Jacob - You can copy and paste as needed: lowercase: l, uppercase: L

:)

----- Original Message -----
Post by Jacob Potter
0x0E Sets display on, cursor on, blinking off
0x0C Sets display on, cursor off, blinking off
0xC0 + n Puts cursor at point n in the bottom line
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Richard Smith
2002-01-11 22:11:39 UTC
Permalink
I am just learning how the server works so I don't know how to turn on the
underscore light thingy nor do I know if there is facility to find the
length of the song and the current position within the song.
Ok, here's how we do it... (I apologise if this stuff is common knowledge)

If we know the bit rate, we can divide the file size (in bits) by the
sample rate (in bits per second). The result of the calculation is the
amount of seconds. Calculations may not be entirely correct if ID3 tags are
added (which I believe are the last 128 bytes of the file). VBR is the
problem....

A more precise method is to scan the file and count the amount of valid MP3
frames. Each frame takes a fixed amount of time (1152 samples divided by the
sample rate in Hz: at 44.1kHz sample rate each frame is 26.1225 ms).
Multiply the frame time by the amount of frames and you get the play length.
This method also works for VBR.

Again, this method will have to alter slightly because we also have the
buffer to contend with, but we should be able to work out how much that's
going to store.



Richard Smith
richard-+***@public.gmane.org

- Free, REALLY customisable hosted messageboards
- http://www.chatbear.com/
- I wrote them, trust me, they're good... :)


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Jacob Potter
2002-01-11 21:55:10 UTC
Permalink
One underscore I suppose will do the trick. My head already hurts from
trying to make sense of the "Vacuum Fluorescent Display Module
Specification". Do you know how to set the cursor's position and how to turn
on the underscore?
The datasheet is easier to read if it's on paper, but you're right, it
needs better documentation.

The cursor-related VFD commands:
0x0E Sets display on, cursor on, blinking off
0x0C Sets display on, cursor off, blinking off
0xC0 + n Puts cursor at point n in the bottom line

Note that the cursor position will need to be reset as part of each
display update, because it is set to an off-screen position at the end
of the display update code.

- Jacob
--
"Terminak #3 has bad keyboard. Pkease fix."

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Richard Smith
2002-01-11 21:48:59 UTC
Permalink
Also, I agree that displaying the time (mm:ss or -mm:ss) would be great. I
think the biggest barrier to making this feature is the buffer in the
player, but I simply don't know enough about how it works yet.
I'm thinking we must be able to cheat this. Like simply start a counter on
the server when a track starts and keep counting up. It's easy to convert a
number of seconds into minutes and seconds and display it.

I see two problems here. One, the buffer. Is it always the same size? If so,
we just start that counter at -buffer size. And two, you couldn't do -mm:ss
this way.

Oh yea, and three, it's a dirty hack.


Richard Smith
richard-+***@public.gmane.org

- Free, REALLY customisable hosted messageboards
- http://www.chatbear.com/
- I wrote them, trust me, they're good... :)


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Nicholas Clark
2002-01-11 21:35:58 UTC
Permalink
One underscore I suppose will do the trick. My head already hurts from
trying to make sense of the "Vacuum Fluorescent Display Module
Specification". Do you know how to set the cursor's position and how to turn
on the underscore?

I know the firmware uses the underscore when you specify an IP address, but
unfortunately I can't see the code to serve as an example.

Also, I agree that displaying the time (mm:ss or -mm:ss) would be great. I
think the biggest barrier to making this feature is the buffer in the
player, but I simply don't know enough about how it works yet.

----- Original Message -----
From: "Jacob Potter" <jacobdp-***@public.gmane.org>
To: <slimp3-dev-***@public.gmane.org>
Sent: Friday, January 11, 2002 3:30 PM
Subject: Re: [slimp3-dev] progress bar
Very clever!
You can calculate the song position based on the file size and
current pointer into the file. This won't be exactly right for VBR
MP3s, but will probably be close enough.
I'd have to check the display documentation to figure out the codes
to put the underline in there, but it shouldn't be too hard. I
believe that this doc was checked into the source.
Without using custom characters (the VFD can only handle 8 of them),
there can be only one underscore on the screen at a time (where the
cursor is). However, just one underline moving across would be enough,
IMHO.
I agree, the progress bar would be a great touch. Also, with a progress
bar, just estimating the position (write pointer on SliMP3 / file size)
gives enough accuracy - an (nn:nn of nn:nn) display would need more
accuracy than that.
- Jacob
--
"Terminak #3 has bad keyboard. Pkease fix."
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Jacob Potter
2002-01-11 20:30:54 UTC
Permalink
Very clever!
You can calculate the song position based on the file size and
current pointer into the file. This won't be exactly right for VBR
MP3s, but will probably be close enough.
I'd have to check the display documentation to figure out the codes
to put the underline in there, but it shouldn't be too hard. I
believe that this doc was checked into the source.
Without using custom characters (the VFD can only handle 8 of them),
there can be only one underscore on the screen at a time (where the
cursor is). However, just one underline moving across would be enough,
IMHO.

I agree, the progress bar would be a great touch. Also, with a progress
bar, just estimating the position (write pointer on SliMP3 / file size)
gives enough accuracy - an (nn:nn of nn:nn) display would need more
accuracy than that.

- Jacob
--
"Terminak #3 has bad keyboard. Pkease fix."

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2002-01-11 17:11:55 UTC
Permalink
I'd have to check the display documentation to figure out the codes
to put the underline in there, but it shouldn't be too hard. I
believe that this doc was checked into the source.
Can characters be combined like that? I would have thought that displaying
an underscore would preclude displaying anything else in that character
space. Or is it possible to underline any character with the flip of bits
somewhere?
There's actually an extra display element under each character for an underbar.
Getting rid of the "Now Playing", putting the title on the top line, and
showing progress as a repeating character (maybe the block?) seems like an
alternative if the underscore idea can't be made to work.
I think it can work...

-dean

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Amos Hayes
2002-01-11 16:26:22 UTC
Permalink
I'd have to check the display documentation to figure out the codes
to put the underline in there, but it shouldn't be too hard. I
believe that this doc was checked into the source.
Can characters be combined like that? I would have thought that displaying
an underscore would preclude displaying anything else in that character
space. Or is it possible to underline any character with the flip of bits
somewhere?

Getting rid of the "Now Playing", putting the title on the top line, and
showing progress as a repeating character (maybe the block?) seems like an
alternative if the underscore idea can't be made to work.

--
Amos Hayes
ahayes-***@public.gmane.org


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2003-02-22 13:11:46 UTC
Permalink
<!doctype html public "-//W3C//DTD W3 HTML//EN">
<head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [slimp3-dev] progress bar</title></head><body>
<blockquote type="cite" cite>On Fri, 11 Jan 2002, dean blackketter
wrote:<br>
<br>
&gt; I'd have to check the display documentation to figure out the
codes<br>
&gt; to put the underline in there, but it shouldn't be too hard.&nbsp;
I<br>
&gt; believe that this doc was checked into the source.<br>
<br>
Can characters be combined like that? I would have thought that
displaying<br>
an underscore would preclude displaying anything else in that
character<br>
space. Or is it possible to underline any character with the flip of
bits<br>
somewhere?</blockquote>
<div><br></div>
<div>There's actually an extra display element under each character
for an underbar.</div>
<div><br></div>
<blockquote type="cite" cite>Getting rid of the &quot;Now
Playing&quot;, putting the title on the top line, and<br>
showing progress as a repeating character (maybe the block?) seems
like an</blockquote>
<blockquote type="cite" cite>alternative if the underscore idea can't
be made to work.</blockquote>
<div><br></div>
<div>I think it can work...</div>
<div><br></div>
<div>-dean</div>
</body>
</html>
dean blackketter
2002-01-11 15:46:21 UTC
Permalink
Very clever!

You can calculate the song position based on the file size and
current pointer into the file. This won't be exactly right for VBR
MP3s, but will probably be close enough.

I'd have to check the display documentation to figure out the codes
to put the underline in there, but it shouldn't be too hard. I
believe that this doc was checked into the source.

-dean
I want to add a progress bar so that I can visually see the duration of a
song...
I think using the underscore would be perfect. For example (please forgive
+-----------------------------------------+
| Now Playing (5 of 12): |
| 5. Crawling |
| _______________ |
+-----------------------------------------+
Picture the underscore directly under the second line. Obviously, once the
underscore reaches the end of the display, the song is over.
I am just learning how the server works so I don't know how to turn on the
underscore light thingy nor do I know if there is facility to find the
length of the song and the current position within the song.
Can anyone guide me in the right direction?
Thanks
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/oCuuSA/XdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Nicholas Clark
2002-01-11 15:42:43 UTC
Permalink
I want to add a progress bar so that I can visually see the duration of a
song...

I think using the underscore would be perfect. For example (please forgive
my ASCII art):

+-----------------------------------------+
| Now Playing (5 of 12): |
| 5. Crawling |
| _______________ |
+-----------------------------------------+
Picture the underscore directly under the second line. Obviously, once the
underscore reaches the end of the display, the song is over.

The problem:
I am just learning how the server works so I don't know how to turn on the
underscore light thingy nor do I know if there is facility to find the
length of the song and the current position within the song.

Can anyone guide me in the right direction?

Thanks


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2003-02-22 13:11:48 UTC
Permalink
<!doctype html public "-//W3C//DTD W3 HTML//EN">
<head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [slimp3-dev] progress bar</title></head><body>
<div>Very clever! </div>
<div><br></div>
<div>You can calculate the song position based on the file size and
current pointer into the file.&nbsp; This won't be exactly right for
VBR MP3s, but will probably be close enough.</div>
<div><br></div>
<div>I'd have to check the display documentation to figure out the
codes to put the underline in there, but it shouldn't be too hard.&nbsp;
I believe that this doc was checked into the source.</div>
<div><br></div>
<div>-dean</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite>I want to add a progress bar so that I
can visually see the duration of a<br>
song...<br>
<br>
I think using the underscore would be perfect. For example (please
forgive<br>
my ASCII art):<br>
<br>
+-----------------------------------------+<br>
| Now Playing (5 of
12):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
| 5.
Crawling&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
</span
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
|
_______________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
</span
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
</span>&nbsp;&nbsp;&nbsp;&nbsp; |<br>
+-----------------------------------------+<br>
Picture the underscore directly under the second line. Obviously, once
the<br>
underscore reaches the end of the display, the song is over.<br>
<br>
The problem:<br>
I am just learning how the server works so I don't know how to turn on
the<br>
underscore light thingy nor do I know if there is facility to find
the<br>
length of the song and the current position within the song.<br>
<br>
Can anyone guide me in the right direction?<br>
<br>
Thanks<br>
<br>
<br>
------------------------ Yahoo! Groups Sponsor
---------------------~--&gt;<br>
Sponsored by VeriSign - The Value of Trust<br>
Secure all your Web servers now - with a proven 5-part<br>
strategy. The FREE Server Security Guide shows you how.<br>
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/rIp0lB/TM<br>
---------------------------------------------------------------------<span </span>~-&gt;<br>
<br>
To unsubscribe from this group, send an email to:<br>
slimp3-dev-unsubscribe-***@public.gmane.org<br>
<br>
&nbsp;<br>
<br>
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ </blockquote>
<div><br></div>
</body>
</html>

Loading...