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

0 Members and 2 Guests are viewing this topic.

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Audio player for Casio Prizm
« Reply #15 on: February 24, 2012, 04:13:49 am »
Hello, thank you for testing.
The noisy is expected, the D/A frequency is only 115200 bps (fxPlayer uses 1.8 Mbps), I will improve it after I find how.
The 30 seconds duration is also expected and I wrote it in the initial post. The player is synchronous so it loads piece of sound and then it plays (outputs bytes in a loop). I will improve it after I find how to do asynchronous output.
The direct wav support seems to be advantage, but due to limited storage I think I will create more space-saving format.
I think it will use only 4 bit samples so it will have 1/2 of the wav length.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Audio player for Casio Prizm
« Reply #16 on: February 24, 2012, 10:41:03 am »
Yeah it might be good if there was a different format that was compressed. Would the calculator be fast enough to decompress it while playing, though?

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Audio player for Casio Prizm
« Reply #17 on: February 24, 2012, 12:48:48 pm »
Yeah it might be good if there was a different format that was compressed. Would the calculator be fast enough to decompress it while playing, though?
I plan to try mp3, but i am afraid it will be too slow.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Audio player for Casio Prizm
« Reply #18 on: February 24, 2012, 01:38:29 pm »
NOw make a chiptune tracker! :p
Does it takes many proc power?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Audio player for Casio Prizm
« Reply #19 on: February 24, 2012, 02:28:13 pm »
It would be nice indeed. Something else that I wonder if it's possible is a MIDI player. Would the calc be fast enough to play multiple instruments at once?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Audio player for Casio Prizm
« Reply #20 on: February 25, 2012, 11:02:59 pm »
Video Response: Do you have a CG 10 or a CG 20? I have a CG10 and it isn't that good.
CG10. It might be because I recorded while putting the headphone speaker right next to the iPod Touch mic, so this alters the quality a bit and we hear the distortion less. I would have recorded the sound directly on my computer, but I can't find my 3.5mm to 3.5mm cable and I think the quality would be even worse.

Also the distortion is less perceptible on certain headphones.

Sorry btw I didn't notice your comment until now.
« Last Edit: February 25, 2012, 11:03:18 pm by DJ_O »

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Audio player for Casio Prizm
« Reply #21 on: February 26, 2012, 03:59:46 pm »
That's okay.....
I like milk.

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Audio player for Casio Prizm
« Reply #22 on: February 27, 2012, 05:19:02 am »
Hello, this is updated version of the wave player.
Changes:
- COM speed increased 4x (to 460800), so it is 1/4 of COM speed used by fxPlayer. This means sound quality is better, but do not expect miracles. I was able to directly access the sio registers (thank you Simon :-) ), but it seems the serial port is less powerful compared to the one in 9860G (one speed register is missing and fifo is only 16 B).
- player remained synchronous, but it is able to play the whole wav - it creates the map of the file in flash and while playing it reads the file from flash directly (see source for details)

I am not sure I will be able to increase the sound quality, I thing I touch the HW limits.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Audio player for Casio Prizm
« Reply #23 on: February 27, 2012, 05:42:30 pm »
It plays better quality, but it isn't very loud. It's awesome. Just keep making upgrades.
I like milk.

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Audio player for Casio Prizm
« Reply #24 on: February 28, 2012, 07:19:42 am »
It plays better quality, but it isn't very loud. It's awesome. Just keep making upgrades.
Thank you for testing.
The output could be slightly louder, but I am afraid that quality would decrease.
To make it louder, open cgplayer.c, change line 211:
Code: [Select]
giSubSample = gpBuffer[giBufIndex] >> 4;to
Code: [Select]
giSubSample = gpBuffer[giBufIndex] >> 3;
I hope it will work, I cannot test it just now.

Offline helder7

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 185
  • Rating: +33/-1
    • View Profile
Re: Audio player for Casio Prizm
« Reply #25 on: February 29, 2012, 02:33:01 pm »
hi i have a THEORY (only theory) to improve audio player

the ea-200/e-cons2 using the communication system by cable sb-62 (calc-to-calc cable), and is compatible with the Prizm



it may be possible to find another syscall in this app to improve sound quality or write to RX pin

EDITED:

EA-200 have sound & speaker, calculator group link, etc  :o


http://edu.casio.com/products/peripheral/ea200/
« Last Edit: February 29, 2012, 06:22:10 pm by helder7 »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Audio player for Casio Prizm
« Reply #26 on: February 29, 2012, 03:38:44 pm »
Wow the new version sounds much better, despite being less loud. It's still louder than most other audio programs though. Also it's nice to hear entire songs play now. :D

Now to find my computer cable...

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Audio player for Casio Prizm
« Reply #27 on: February 29, 2012, 09:38:09 pm »
I tried converting Nyan Cat, but it plays back as high pitched sound. Only when I plug it into my stereo system and turn up the volume 3/4 of the way, I could hear the song. However, that song is also high pitched as well... :P

I'm not too sure if this is converted right. The file size is 2.27 MBs for 3:36 of music.

Is this a bug or a problem on my side? I own a CG-10.

This is my demo.wav: http://dl.dropbox.com/u/1016340/demo.wav
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Audio player for Casio Prizm
« Reply #28 on: March 01, 2012, 03:47:38 am »
It could be because your song was not maxed out, volume-wise. In Audacity you need to increase its volume (amplification) so it's loud enough, else the static produced by the calc will drown the song.

Also I finally found my 3.5mm to 3.5mm cable (and I got my 2.5mm adapter) so I could finally record the calc audio directly to the computer. This is how La Porte du Soleil sounds like on-calc:

http://djomni.57o9.org/prizmlaportedusoleil.mp3

Original song:
« Last Edit: March 01, 2012, 03:48:47 am by DJ_O »

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Audio player for Casio Prizm
« Reply #29 on: March 01, 2012, 04:58:47 am »
Hey! I know that muzik! :p
That looks goods anyway, but a bit noisy...