Omnimaga

Calculator Community => Casio Calculators => Topic started by: flyingfisch on September 21, 2011, 06:25:04 pm

Title: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: flyingfisch on September 21, 2011, 06:25:04 pm
See the post on CasioCalc.org here: http://www.casiocalc.org/?showtopic=6428

 :thumbsup: :thumbsup:
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Yeong on September 21, 2011, 06:48:49 pm
That's the win XD
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: flyingfisch on September 21, 2011, 06:56:16 pm
its pretty cool.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Eiyeron on September 28, 2011, 01:15:56 pm
Where is the source code? :p
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: flyingfisch on September 28, 2011, 02:18:14 pm
I didn't make it so i dont know. you can pm immibis, though, if you are a member there.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: flyingfisch on September 29, 2011, 09:08:28 am
Go ahead and double check the post, Eiyeron. He has just released the source.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Billeekid on September 29, 2011, 11:57:07 am
lol, I thought this post was about a graphics card when I first saw it.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Eiyeron on October 06, 2011, 11:30:43 am
I konw for the source, I already dled... But I don't know how to read someone else's source than me.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Eiyeron on October 16, 2011, 01:18:22 pm
Bump: EDITED: (saw his point counter decreases... Damn!) Okay, okay, I will argue my posts. But yeah, the sound, compared to TruSound, is a bit crappy
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on October 17, 2011, 07:14:29 am
Is there any chance to get somthing that would be 100 times better?
Probably no, but if you have the SD version, I can offer 5.8 times better quality :-)
http://www.casiocalc.org/?showtopic=5466
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Eiyeron on October 17, 2011, 10:28:47 am
I need your help to make some good nes-like music for games. Will you help me?
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: DJ Omnimaga on October 17, 2011, 11:30:18 pm
Hmm interesting, I'm glad to see more music programs for Casio calcs. Is it available for download in compiled form? I would like to try it because I can't hear anything in the video. :(
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on October 18, 2011, 11:14:27 am
I need your help to make some good nes-like music for games. Will you help me?
What kind of help do you mean?
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Eiyeron on October 18, 2011, 01:21:40 pm
Indicating what process are you using, and how do you access the prot corretcly for example: I will make some tests to see what quality may I obtain without help, even for just one note!

I will make maybe a tracker-based system, like Midi or NSF, that would be easier than just read the file, isn't it?

EDIT/ I saw -2 to my precdent post, but have you really heard what quality have you got? I don't want  to blame the lector, but this is freaky: i tested with the famous megaman II tracki, but i dind't could recgnize it with the interferences and the sharp noise...
If you want, i'll post a record direclty from my G35+ to the computer micro with an aux wire...
anyway, this is a good work, but i think that we could obtain something that would be better.

(Bon... j'ai compris, j'argumente...)

EDIT.2: Here a record. THink there is noise reductor on my sound card, so the sound is just a bit (a bit, nah? ;) ) crispy... This is a remix from said megaman II track
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: DJ Omnimaga on October 18, 2011, 02:01:03 pm
I think the -2 might have been because the post sounded like (in English) you were insulting the authors work despite his hard work and on Omni when criticising projects you have to remain respectful and constructive (ie give advice on how to make it better instead of just saying it sucks). Not sure if this is what you meant, though, since English isn't your native language, which is why I didn't rate the post myself.

As for the sound it doesn't sound too bad by calc standard. On the 84+ this is the max quality possible we can get in the middle of a game execution. When nothing else is executed we can get better quality but otherwise sound takes just too much processing power.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Eiyeron on October 18, 2011, 03:12:21 pm
I do'nt know already how to express in my native language (french), also express them in English is a hard work...
Please, don't hate me, or see me just like a troll...
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Yeong on October 18, 2011, 03:15:26 pm
Indicating what process are you using, and how do you access the prot corretcly for example: I will make some tests to see what quality may I obtain without help, even for just one note!

I will make maybe a tracker-based system, like Midi or NSF, that would be easier than just read the file, isn't it?

EDIT/ I saw -2 to my precdent post, but have you really heard what quality have you got? I don't want  to blame the lector, but this is freaky: i tested with the famous megaman II tracki, but i dind't could recgnize it with the interferences and the sharp noise...
If you want, i'll post a record direclty from my G35+ to the computer micro with an aux wire...
anyway, this is a good work, but i think that we could obtain something that would be better.

(Bon... j'ai compris, j'argumente...)

EDIT.2: Here a record. THink there is noise reductor on my sound card, so the sound is just a bit (a bit, nah? ;) ) crispy... This is a remix from said megaman II track
I just listened to it, but its really fast O.O
EDIT:It's MM2 Wily 1 and MM9 Wily 1 theme :D
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Eiyeron on October 18, 2011, 03:39:28 pm
http://dl.dropbox.com/u/23313407/audio.rar (http://dl.dropbox.com/u/23313407/audio.rar)
Here comes (die SOnne) the original music file...
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: Jim Bauwens on October 19, 2011, 03:54:22 am
Very cool project :D
I'm kinda jealous that you can control the signal quite good, in comparison with my version on nspire lua :p (that means my sound quality is much worse)
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on January 30, 2012, 05:53:10 am
Hello,
I updated fxPlayer to support the non-SD 9860G models.
You can download it on my page at http://martin.poupe.org/casio/9860player/index.html
Source code included.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: bynary_man on January 30, 2012, 02:15:00 pm
Can you say how you make .wav file for this add-in ? Because, i want to make .wav, it works but when i listen my songs on my calc, they are very slows.

What are the parameter to convert my files ?
8 bits ?
Kbs ?
mono ?
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on January 31, 2012, 04:12:19 am
What are the parameter to convert my files ?
8 bits ?
Kbs ?
mono ?
PCM,22050 Hz,8 bit,mono
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: bynary_man on January 31, 2012, 12:45:44 pm
Thanks, i will try today ;)

PS : it worsk very well but sounds is very down. (i don't hear it).
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on February 01, 2012, 07:32:00 am
PS : it worsk very well but sounds is very down. (i don't hear it).
So the volume is very low ?
Which audio mode have you selected?
For headphones - I recommend the first one - "Normal quality, loud".
Please be sure you have properly connected the 2.5 to 3.5 jack adapter to the calculator, I had exactly the same problems and proper inserting solved it. I have had to use some force.
Sound should come only from the left headphone.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: bynary_man on February 01, 2012, 02:27:52 pm
Yes, is that, the sound is very low. The adapter is properly connected to the calculator and to the headphone. Is the voltage the origin of that ?
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: DJ Omnimaga on February 01, 2012, 02:59:19 pm
Low volume is a problem accross every calc it seems. We have the same problem on the TI-83+ and 84+ models, where we can't even adjust volume too.

Btw for non-SD models how do I send WAV files on the calc? ??? Do I rename audio.wav to audio.g1a, for example? ???

EDIT Ok it works, but is it normal that FA-124 won't accept any file larger than 400 KB or so? I get a Memory Full Error otherwise ???
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on February 02, 2012, 04:31:40 am
Yes, is that, the sound is very low. The adapter is properly connected to the calculator and to the headphone. Is the voltage the origin of that ?
The analog features of COM port seems to be odd. When I tried to fully modulate the signal, the sound quality was very bad. Then I tried to use only half of the amplitude range - the low part sounded very well, I would call it "high quality", but it was very quiet. When I attached it to the amplifier, the quality was very similar to receiving long-distance FM transmitter.
The high part has lower quality, but it is much louder.
But this all behaves on my calculator with my headphones (it has 60 Ohm - measured DC).
So you can try another headphones and please also try the "High quality". This is audible, but only in quiet room.

EDIT Ok it works, but is it normal that FA-124 won't accept any file larger than 400 KB or so? I get a Memory Full Error otherwise ???
I tried only ~ 200KB file and I was not able to copy it from SD card to internal flash (with 1.1 MB free) until I optimized the storage.
It may help you too:-)
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: sjasogun1 on February 09, 2012, 01:10:51 pm
I can't seem to build it, it tells me the scif.h file is missing on lines 77, 94 and 111 even though #include"scif.h" is there just fine. The file itself is present as well. It should be in the same folder as the .g1w and .c files, outside of the DEBUG and Init folders right?
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: flyingfisch on February 09, 2012, 02:08:14 pm
Does this play mp3's?
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on February 13, 2012, 08:21:17 am
Does this play mp3's?
Not yet.
But if you know some nice free small mp3 decoder library, I would integrate it to the player.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: helder7 on February 13, 2012, 06:01:56 pm
Does this play mp3's?
Not yet.
But if you know some nice free small mp3 decoder library, I would integrate it to the player.
I did a search, what you think of this?

http://www.codepuppies.com/~ben/sens/pic/mp3/ - 50kb asm
http://sourceforge.net/projects/lame/files/lame/3.93.1/lame-3.93.1.tar.gz/download - 1mb , it possible put in on sd?
http://www.underbit.com/products/mad - 577 kb - C

more decoding libraries/tools here -> http://www.mp3-tech.org/programmer/decoding.html
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on February 14, 2012, 11:04:22 am
I did a search, what you think of this?
Interesting, but the conversion / porting would be difficult for some (or all :-( ) libraries.
It seems you use the size of the archive - this may be irrelevant, because some libraries include huge autoconf scripts which we do not use, contrariwise sources are good to be compressed so compilation may produce bigger result than compressing.

SD card would NOT help, because you cannot run code from SD card. But you can run code from flash, which is 1.5 MB.



Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: flyingfisch on February 14, 2012, 03:05:21 pm
How much music can be stored on 16MB?
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: DJ Omnimaga on February 14, 2012, 03:41:24 pm
It probably depends. I know a full WAV song around 5 minutes long takes roughly 60 MB of space, and if it's converted to 22 KHz it's 30 MB. Not sure if changing it from 16 bits to 8 halves the size once more, though. On the 84+SE we roughly had the same sound quality and we could store around 1 minute of audio in 1.54 MB.
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: flyingfisch on February 14, 2012, 06:07:42 pm
thats not really a whole lot of music, is it?
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on February 15, 2012, 05:17:53 am
It probably depends. I know a full WAV song around 5 minutes long takes roughly 60 MB of space, and if it's converted to 22 KHz it's 30 MB. Not sure if changing it from 16 bits to 8 halves the size once more, though. On the 84+SE we roughly had the same sound quality and we could store around 1 minute of audio in 1.54 MB.
I just did some measurement by winamp. Have music file 8:15 of length.
22KHz, 8bit (format for fxplayer) - 10,929,955 B
11KHz, 8bit - 5,465,000 B
8 KHz, 8bit - 3,965,932 B, but sound quality is like from analog telephone

The fxplayer uses only 5 bits so we can go to 11 KHz, 4 bit - 2732500 B (not tested)
How much music can be stored on 16MB?
So 16 MB storage would hold 5.85x more -> 48 minutes

BTW: why do you ask for 16 MB storage ?
9860 has 1.5 MB and SD card can be up to 2 GB (for the models where fxplayer works)
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: DJ Omnimaga on February 15, 2012, 03:20:02 pm
I'm glad you allow multiple qualities actually. On the 84+SE if you use a 8 KHz file, it plays 3 times faster or so. D:

Also I think he was asking 16 MB because he probably got confused with the PRIZM and the 9860G (the PRIZM has 16 MB of storage).
Title: Re: Music Player for FX-9860GII/hacked FX-9750GII (Does not need SD card!)
Post by: MPoupe on February 16, 2012, 03:47:10 am
I'm glad you allow multiple qualities actually. On the 84+SE if you use a 8 KHz file, it plays 3 times faster or so. D:
I'm afraid it was some misunderstanding. The fxPlayer supports only 1 format - 22 KHz, 8bit. My previous post was only about different wav formats and sizes.

But support for 11 KHz should be easy, 8 KHz can be supported only approximately.