Author Topic: Audio player for Casio Prizm  (Read 10414 times)

0 Members and 1 Guest are viewing this topic.

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 167
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Audio player for Casio Prizm
« on: February 23, 2012, 03:55:14 am »
Hello,
I wrote simple program demonstrating audio output on Casio fx cg 20.
Usage:
create wav from your favorite music, PCM,11025 Hz,8 bit,mono and store to the calculator's flash memory as demo.wav.
Copy CGPlayerA.g3a from the attachment here too.
Run it.

As you can see the program is very simple, it uses safe part of the user's stack to load about 450KB of the wav file (so the file doesn't need to be larger). Then it converts the samples and outputs by syscalls.

To be improved:
- increase speed of COM port, 115200 (maximum for syscall) is too slow
- output data asynchronously.

Unfortunately I do not know CPU enough to do it. :-(

Can somebody help ?


Offline SimonLothar

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 129
  • Rating: +35/-1
    • View Profile
Re: Audio player for Casio Prizm
« Reply #1 on: February 23, 2012, 09:13:02 am »
See fx_calculators_SuperH_based_10.chm
(http://ourl.ca/8207/238670).

Try topic: fx-CG20...Registers, MPU...Accessing the 3pin serial lines directly

Perhaps it helps.
I'll be back.

Offline xlibman

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55809
  • Rating: +3149/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • CodeWalrus
Re: Audio player for Casio Prizm
« Reply #2 on: February 23, 2012, 09:45:48 am »
I'll try later tonight MPoupe.
In case you are wondering where I went, I am still active in the TI community, but I left Omni back in 2015 for various  reasons. I might come back one day, depending of certain circumstances, but my new online home (despite me being Omnimaga founder in 2001) is now CodeWalrus ( https://codewalr.us ). Sorry for the inconveniences.

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 167
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Audio player for Casio Prizm
« Reply #3 on: February 23, 2012, 10:13:05 am »
See fx_calculators_SuperH_based_10.chm
(http://ourl.ca/8207/238670).

Try topic: fx-CG20...Registers, MPU...Accessing the 3pin serial lines directly

Perhaps it helps.
Thank you, of course I use your manual :-)
I will try to use 7730.h header (http://pastebin.com/xiyV8CZs)

Offline SimonLothar

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 129
  • Rating: +35/-1
    • View Profile
Re: Audio player for Casio Prizm
« Reply #4 on: February 23, 2012, 11:55:35 am »
I will try to use 7730.h header (http://pastebin.com/xiyV8CZs)
Be careful with this. 7730 register addresses and bit-assignments are not necessarily compatible with the 7305.
I'll be back.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Audio player for Casio Prizm
« Reply #5 on: February 23, 2012, 04:58:55 pm »
Sound like a cool Idea. Might try it later. I did it and it is really quiet to my ears. Good enough for me though.  ;D ;D ;D ;D ;D ;D
« Last Edit: February 23, 2012, 05:27:04 pm by Spenceboy98 »
I like milk.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3724
  • Rating: +276/-12
  • Survivor of Apocalypse
    • View Profile
Re: Audio player for Casio Prizm
« Reply #6 on: February 23, 2012, 06:37:56 pm »
Does it work for cg10?
Sig wipe!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5731
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Audio player for Casio Prizm
« Reply #7 on: February 23, 2012, 06:43:08 pm »
I'll try. Yay my Prizm could be a wav player. Also is it hard to implement some sort of OGG/MP3 compression?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline helder7

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 185
  • Rating: +33/-1
    • View Profile
Re: Audio player for Casio Prizm
« Reply #8 on: February 23, 2012, 07:15:11 pm »
only one ear gives sound, like fx9860?

the volume is the same as 9860 or is lower?


I can only test the player at the weekend, because now I have no headset compatible.



Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5731
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Audio player for Casio Prizm
« Reply #9 on: February 23, 2012, 07:55:45 pm »
It works fine on the fx-CG10. There's a lot of interferences though, and it stops just before the first chorus of Never Gonna Give You Up.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline xlibman

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55809
  • Rating: +3149/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • CodeWalrus
Re: Audio player for Casio Prizm
« Reply #10 on: February 23, 2012, 08:24:58 pm »
Ok I tried it and I was surprised because the volume is much louder than on the FX-9860G and the TI-84 Plus it seems. :O

There is a bit more noise than on those devices, but it's not too bad on my side it seems. And yeah I had the sound stopping issue too. I loaded in a 1:27 song and it stopped around 30 secs.

Btw I like how much easier it is to listen to calc music with this software than it was with other calc ones. On the 84+ you must open command prompt to convert a wav file to 8xk and stuff like that, and on the 9860G you must use an annoying linking software (FA-124). On the Prizm we don't even need to change the wav extension.

Good job so far. :)
In case you are wondering where I went, I am still active in the TI community, but I left Omni back in 2015 for various  reasons. I might come back one day, depending of certain circumstances, but my new online home (despite me being Omnimaga founder in 2001) is now CodeWalrus ( https://codewalr.us ). Sorry for the inconveniences.

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Audio player for Casio Prizm
« Reply #11 on: February 23, 2012, 09:19:44 pm »
Yes I agree. It is a lot easier. NO MORE HASSLE! It does stop after 30 seconds. That part disappointed me. :( Hopefully he can fix that.
« Last Edit: February 23, 2012, 09:23:28 pm by Spenceboy98 »
I like milk.

Offline Art_of_camelot

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6125
  • Rating: +191/-9
  • YouTube channel has my solo work and collaboration
    • View Profile
    • My YouTube page!
Re: Audio player for Casio Prizm
« Reply #12 on: February 23, 2012, 09:23:46 pm »
Hmm... looks cool. I'll have to give it a try when I have a moment. :D

Offline xlibman

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55809
  • Rating: +3149/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • CodeWalrus
Re: Audio player for Casio Prizm
« Reply #13 on: February 23, 2012, 09:25:06 pm »
In case you are wondering where I went, I am still active in the TI community, but I left Omni back in 2015 for various  reasons. I might come back one day, depending of certain circumstances, but my new online home (despite me being Omnimaga founder in 2001) is now CodeWalrus ( https://codewalr.us ). Sorry for the inconveniences.

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Audio player for Casio Prizm
« Reply #14 on: February 23, 2012, 09:38:25 pm »
Video Response: Do you have a CG 10 or a CG 20? I have a CG10 and it isn't that good.
« Last Edit: February 23, 2012, 09:48:19 pm by Spenceboy98 »
I like milk.