Omnimaga

Calculator Community => Other Calculators => Topic started by: SirCmpwn on July 05, 2011, 03:56:21 pm

Title: Music from a Flash Drive
Post by: SirCmpwn on July 05, 2011, 03:56:21 pm
Title: Re: Music from a Flash Drive
Post by: ZippyDee on July 05, 2011, 03:59:36 pm
WOW NICE! :D Genius!
Title: Re: Music from a Flash Drive
Post by: Scipi on July 05, 2011, 04:10:30 pm
+1 for the James Bond music! :P
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 05, 2011, 04:17:28 pm
I especially like the penguin pajamas that are visible at times during this video.

Anyway, a while back I picked up some source code that Jim_E left behind upon leaving the community, and started making improvements.  This is currently what I have, and I'm about ready to pull the code out of msd8x and into a dedicated application.
Title: Re: Music from a Flash Drive
Post by: qazz42 on July 05, 2011, 06:58:01 pm
Wait, I am curious, does this program require use of extra ram pages? I think that some flash drive apps on ti did not work for me because of that x.x

speaking of which, I still need to get that USB converter.... I gave the last one back to my friend..
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 05, 2011, 08:46:45 pm
Wait, I am curious, does this program require use of extra ram pages? I think that some flash drive apps on ti did not work for me because of that x.x

speaking of which, I still need to get that USB converter.... I gave the last one back to my friend..
It does now, sort of.  Mine doesn't have extra RAM, if it means anything to you.  When it is released, it won't.
Title: Re: Music from a Flash Drive
Post by: shmibs on July 05, 2011, 08:56:43 pm
is there any upper limit for what size flash drives this can handle? if not then i don't think i'll bother buying a new music player :P
Title: Re: Music from a Flash Drive
Post by: calc84maniac on July 05, 2011, 09:39:42 pm
I'm guessing only FAT16 is supported, which only supports up to 2GB of data.
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 05, 2011, 09:40:28 pm
That's correct.  However, I've been using a 4 GB flash drive with mild issues.  usb8x is fussy.
Title: Re: Music from a Flash Drive
Post by: XVicarious on July 05, 2011, 10:41:34 pm
Woo!
Quote
Teacher: Brian, what are you doing?
Me: Its a calculator.
Teacher: Why is it playing music?
Me: Because it can.

Can't wait for a release. Hopefully I'll have my new calculator when you do release it. And what about a partitioned flash drive on Fat16 with two 2gb partitions? Do-able?
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 05, 2011, 10:45:58 pm
Woo!
Quote
Teacher: Brian, what are you doing?
Me: Its a calculator.
Teacher: Why is it playing music?
Me: Because it can.

Can't wait for a release. Hopefully I'll have my new calculator when you do release it. And what about a partitioned flash drive on Fat16 with two 2gb partitions? Do-able?
Not even going to try.
Title: Re: Music from a Flash Drive
Post by: XVicarious on July 05, 2011, 10:47:06 pm
Lol true, that would be overly complicated.
Title: Re: Music from a Flash Drive
Post by: ralphdspam on July 05, 2011, 11:32:37 pm
Sounds awesome!  :D

And what about a partitioned flash drive on Fat16 with two 2gb partitions? Do-able?
Not even going to try.

The drive partitioning would be nice, but I'm not sure if too many people would take advantage of it. 
Title: Re: Music from a Flash Drive
Post by: JustCause on July 06, 2011, 12:41:24 am
You. Are. Screwing. With. Me. This is impossible. I...I...*dies*

If I hadn't seen it with my own eyes, pajamas and all, I wouldn't believe it. Epic work!
Title: Re: Music from a Flash Drive
Post by: Eeems on July 06, 2011, 12:59:33 am
Well Done Sir!
Title: Re: Music from a Flash Drive
Post by: z80man on July 06, 2011, 01:05:14 am
That's one of the most innovative things I've seen all year for the calc. This will deserve a news article once released for sure. And with 2 gigs I can fit a lot of songs in there especially if they are at reduced quality.
Title: Re: Music from a Flash Drive
Post by: calc84maniac on July 06, 2011, 01:05:47 am
That's one of the most innovative things I've seen all year for the calc. This will deserve a news article once released for sure. And with 2 gigs I can fit a lot of songs in there especially if they are at reduced quality.
They are wavs though, so don't expect as much as you'd fit with mp3
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 06, 2011, 01:08:33 am
calc84maniac is right, they are pretty big files.  Pretty Lights by Total Fascination is the only song I have readily converted at the moment, and it is 5.3 MB.
Title: Re: Music from a Flash Drive
Post by: z80man on July 06, 2011, 01:13:20 am
I remember thepenguin saying with his sound player was that he only had so many clock cycles to load each byte of data which made loading from usb difficult. But now that you're probably riding the limit with usb, adding compression would take too much time
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 06, 2011, 01:14:39 am
Definitely no time for compression.  However, there is probably time to display video./me runs
Spoiler For Spoiler:
Except I'm serious.
Title: Re: Music from a Flash Drive
Post by: XVicarious on July 06, 2011, 01:24:04 am
That would be wicked. But how about an equalizer? That would be cool to display.
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 06, 2011, 01:25:51 am
There already is a sort-of visualization, which you can partially see in the video, which is just a raw stream of the data being played.
Although it wouldn't be as cool as watching The Matrix on your calculator.
Title: Re: Music from a Flash Drive
Post by: XVicarious on July 06, 2011, 01:31:19 am
True, but the file size of the movie would be massive, most likely more than 2gb. Plus how many levels of greyscale would it have to be? Maybe try to implement 7-level gray scale, which has been done with TrueGray (http://www.ticalc.org/archives/files/fileinfo/341/34172.html), to display videos.
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 06, 2011, 01:32:23 am
No, 4 level grayscale videos.  They would be run through special software before-hand, and yes, would be massive (though as I said before, experiments with larger flashdrives works fine).
Title: Re: Music from a Flash Drive
Post by: XVicarious on July 06, 2011, 01:35:28 am
Would 7-level be possible to run at a decent framerate for a video?
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 06, 2011, 01:36:18 am
Maybe video alone, without audio.
Title: Re: Music from a Flash Drive
Post by: XVicarious on July 06, 2011, 01:38:37 am
Hum... What about:
1) have two calculators. One with headphones with an audio file for the movie. the other calc with a movie.
2) play both at same time.
3) have your 7-level gray movie, with audio, little lag
4) ???
5) profit
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 06, 2011, 01:40:13 am
That would work.  For the record, 4 level grayscale video with no audio already works.
Title: Re: Music from a Flash Drive
Post by: XVicarious on July 06, 2011, 01:41:25 am
Wow. Thats so cool :D Can't wait. I want to have my new calc by the time you have a nice 'n' stable release.
Title: Re: Music from a Flash Drive
Post by: Juju on July 06, 2011, 02:35:20 am
Well, that's pretty cool. Nice job Sir.
Title: Re: Music from a Flash Drive
Post by: calcdude84se on July 08, 2011, 05:18:32 pm
Nice! Now to get that headphone adapter and USB adapter that I don't have <_< (I really should get them at some point to take advantage of things like this)
It's been two days since the last post, so how's progress? :)
Title: Re: Music from a Flash Drive
Post by: ztrumpet on July 08, 2011, 08:46:24 pm
This is awesome!  Sir, you've done a wonderful job with this.  It looks like I may have a new way to impress my friends and/or teachers at school...

Also, Sir, would it be possible for you to redo MSD8x so it works fully on the only-48-kb calcs?  Please?  ;D
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 08, 2011, 08:48:16 pm
This is awesome!  Sir, you've done a wonderful job with this.  It looks like I may have a new way to impress my friends and/or teachers at school...

Also, Sir, would it be possible for you to redo MSD8x so it works fully on the only-48-kb calcs?  Please?  ;D
If I get around to it, I might.  I have no idea why, of all programs, this one needs extra RAM.
Title: Re: Music from a Flash Drive
Post by: DrDnar on July 08, 2011, 08:48:50 pm
BrandonW uses the extra RAM for caching directory listings.
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 08, 2011, 08:49:54 pm
BrandonW uses the extra RAM for caching directory listings.
I see.  I may have to lose sorting on other calculators, but it should be doable.
Title: Re: Music from a Flash Drive
Post by: Darl181 on July 08, 2011, 08:50:22 pm
Hmm...while you're at it..

How hard would it be to make it so it lists the programs in a way other than just reading through the vat?  Sometimes it's so hard just to find a single program...esp. because the appvars are usually before the programs :P
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 08, 2011, 08:51:10 pm
Hmm...while you're at it..

How hard would it be to make it so it lists the programs in a way other than just reading through the vat?  Sometimes it's so hard just to find a single program...esp. because the appvars are usually before the programs :P
What are you talking about?
Title: Re: Music from a Flash Drive
Post by: Darl181 on July 08, 2011, 08:52:48 pm
When you go to send a program to the flash drive, it has a window that pops up and you scroll through the vars to the program/appvar/whetever.  Most of the time the stuff is scrambled around.
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 08, 2011, 08:53:24 pm
When you go to send a program to the flash drive, it has a window that pops up and you scroll through the vars to the program.  Most of the time the stuff is scrambled around.
Oh, that.  Sure, I could make a better VAT browser.
Title: Re: Music from a Flash Drive
Post by: ralphdspam on July 08, 2011, 09:48:07 pm
I remember thepenguin saying with his sound player was that he only had so many clock cycles to load each byte of data which made loading from usb difficult. But now that you're probably riding the limit with usb, adding compression would take too much time
What if you ran decompression before the song starts? (Of course, you would have to have enough free memory on the usb to hold one uncompressed song.)

Edit: After thinking about it, it doesn't seem too practical...
Title: Re: Music from a Flash Drive
Post by: TIfanx1999 on July 09, 2011, 07:54:09 am
Cool stuff Sir! Looking good! =)
Title: Re: Music from a Flash Drive
Post by: DJ Omnimaga on July 31, 2011, 06:06:50 pm
Looks like you made hackaday. \o/ http://hackaday.com/2011/07/31/hackaday-links-july-31-2011/

By the way nice stuff. I didn't notice this until now. Why no playin' my music tho? D:  j/k
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 31, 2011, 06:12:56 pm
Hooray!

And I'm not playing your music because I didn't think to!  I also wanted to get something that was really recognizable as not beeps (not saying your music isn't)
Title: Re: Music from a Flash Drive
Post by: DJ Omnimaga on July 31, 2011, 06:22:52 pm
Hooray!

And I'm not playing your music because I didn't think to!  I also wanted to get something that was really recognizable as not beeps (not saying your music isn't)
O.O :'(

jk it's fine. I think it was best to play a popular song and not a rickroll either, since with a rickroll people would have thought it's fake.
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on July 31, 2011, 06:24:26 pm
My thoughts exactly.
Title: Re: Music from a Flash Drive
Post by: ztrumpet on July 31, 2011, 06:25:15 pm
Congrats, Sir. :D
Title: Re: Music from a Flash Drive
Post by: Juju on July 31, 2011, 06:27:25 pm
Well that's awesome :D
Title: Re: Music from a Flash Drive
Post by: calcdude84se on July 31, 2011, 09:45:09 pm
Nice. Very nice.
Making Hack a Day is always an impressive achievement. :)
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on August 02, 2011, 01:35:15 am
Yep!
Title: Re: Music from a Flash Drive
Post by: p2 on August 02, 2011, 12:54:28 pm
wow! Thatz seems impossible but you've really made it!!

+1



So what must I send on my TI if I want to listen to music on a flash drive?
And which music-format should it be?

(I have all cables I need, but not any programs for it)  :P
Title: Re: Music from a Flash Drive
Post by: Happybobjr on August 02, 2011, 01:20:02 pm
he hasn't released a demo.
Title: Re: Music from a Flash Drive
Post by: p2 on August 02, 2011, 01:30:40 pm
That's why I was wondering - I haven't seen anything to download
when will he upload one?
Title: Re: Music from a Flash Drive
Post by: Munchor on August 02, 2011, 01:35:36 pm
4 pages late, this is awesome! Nice work SirCmpwn!
Title: Re: Music from a Flash Drive
Post by: SirCmpwn on August 02, 2011, 08:27:09 pm
I won't upload one any time soon.  As for sound files, they're completely uncompressed, with some special editing done on them, so until I make an automated converter you'll just have to wait.