
Fx-9860gii Music Player
Started by
immibis
, Sep 19 2011 09:33 PM
9 replies to this topic
#1
Posted 19 September 2011 - 09:33 PM
Not a lot to say about this. It plays music through the serial port of a 9860gii (or hacked 9750gii, or hacked 9860g, etc).
#2
Posted 19 September 2011 - 09:44 PM
I thought it only worked with the SD version.
#3
Posted 20 September 2011 - 03:57 AM
I thought it only worked with the SD version.
That was the one Martin Poupe made.
This one was made by me, and embeds the music inside the .G1A file (since I don't have an SD calc) - so it can't fit very music music.
The chiptune shown in the video compresses to ~3000 bytes/sec, so I could fit 8-9 minutes in the 1.5MB flash memory.
Most music doesn't compress at all (I'm just using simple RLE compression) and takes ~3900 bytes/sec, fitting 6-7 minutes total.
#4
Posted 21 September 2011 - 02:26 PM
Cool man! Great Job!
#5
Posted 21 September 2011 - 06:09 PM
Where can I download this magnific program ?

#6
Posted 29 September 2011 - 04:25 AM
Source code:
http://www.mediafire...l0gwmk9x25g9124
I cleaned it up a bit before I uploaded it, but I can't test it right now. PM me if it doesn't build since I'm not usually active on these forums, and I get notified of PM's by email.
How to build:
* Convert your music to an 8-bit unsigned WAV file. If there isn't an option for signed/unsigned, in whatever program you use, then it's probably unsigned by default.
* Save it as audio.wav in the converter folder (or change the converter's main.cpp to point to it)
* Open main.cpp in the converter folder, and change the following options if necessary (they're all near the start of the file):
* Compile and run the converter, this generates out.cpp in the player's folder.
* Build the player using the CASIO SDK, and upload it to your calculator.
http://www.mediafire...l0gwmk9x25g9124
I cleaned it up a bit before I uploaded it, but I can't test it right now. PM me if it doesn't build since I'm not usually active on these forums, and I get notified of PM's by email.
How to build:
* Convert your music to an 8-bit unsigned WAV file. If there isn't an option for signed/unsigned, in whatever program you use, then it's probably unsigned by default.
* Save it as audio.wav in the converter folder (or change the converter's main.cpp to point to it)
* Open main.cpp in the converter folder, and change the following options if necessary (they're all near the start of the file):
// This isn't actually bits-per-sample, it's 2^bits-per-sample.// Supported values are 2 and 4. If 4, uncomment TWO_BPS in the player.#define BPS 2// if uncommented, creates a file out.wav containing the exact sound the// calculator will play. Doesn't work properly - the resulting file sounds// nothing like the calculator's output.//#define WRITE_WAV// uncomment if a chiptune created with Beepola#define BEEPOLA// uncomment if stereo//#define STEREO// must be 44kHz 8-bit WAV#define INFILE "audio.wav"// maximum output size. It may go up to 255 bytes over this.#define SIZE_LIMIT 1200000If you aren't familiar with C/C++, then "uncomment" means to remove the // at the start. You probably want to re-comment BEEPOLA, by re-adding the //. The chiptune I used in the video was made with Beepola.
* Compile and run the converter, this generates out.cpp in the player's folder.
* Build the player using the CASIO SDK, and upload it to your calculator.
#7
Posted 29 September 2011 - 01:09 PM
Thank you for releaseing the source code.

#8
Posted 30 September 2011 - 08:37 AM
Thanks for you work. I will PM you more later for the result.

#9
Posted 05 October 2011 - 05:03 PM
Good job immibis, thanks for the sources

#10
Posted 05 October 2011 - 05:06 PM
With a friend i want to make a tracker NES-like system.
WIll you help us?
WIll you help us?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users