Author Topic: Sound for calculators with bad ram  (Read 35436 times)

0 Members and 1 Guest are viewing this topic.

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: Sound for calculators with bad ram
« Reply #30 on: July 29, 2010, 05:40:28 pm »
Darn, awesome!

And will you support lower sound quality too? It would be nice to be able to use sound effects or small songs inside games, or maybe have some sort of beatbox/music maker

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Sound for calculators with bad ram
« Reply #31 on: July 31, 2010, 02:31:00 pm »
There were some problems. First, that 60%, came from my compressor not working. It actually does more like 20%. And second, the 20khz that it had to run at was too low of a frequency. My program does the voltage control by turning the link port on and off once per sample. One side of the delay is bigger than the other which means that a note about 10% lower than the frequency is played. This means that you are listening to music and the mosquito sound at the same time.

So I just went back to my old replace 78-88 with 1-15. It works nicely. I sent another song to my calc and had it run at 22700hz and it sounds basically like a cheap mp3 player.

Once I get my c++ program so it can take .wav files, I'll have to post it all. But currently it takes quite a bit of doing to get the song to convert.

@DJ, I don't see how I can do lower sound quality, I guess I could let it be 7 bit or 6 bit, but then there wouldn't be any compression. Also, the song has to be the only thing running, you wouldn't be able to play a game in the background. But if stalls are ok, then it would work.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

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: Sound for calculators with bad ram
« Reply #32 on: July 31, 2010, 06:07:36 pm »
Ah ok, I thought lower quality would be easier than higher x.x. Weird

I was asking since someone did it with Guitar Hero 83+. It's up to you, though.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Sound for calculators with bad ram
« Reply #33 on: October 16, 2010, 10:52:34 am »
This project is awesome.... yet it became stale on July 31st, 2010. :P
You do realize that this is an awesome alternative to RealSound, which requires those missing pages of RAM.
If we can fit a whole track of music in the calc, this will be the best! :D

So, can we revive this project? :D
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 thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Sound for calculators with bad ram
« Reply #34 on: October 16, 2010, 12:48:54 pm »
There's not much to work on. It's basically done. Full length tracks wouldn't work because they are too big, but 1 min ones do. I guess I could write a batch file or something to put the song together, but I'm not really sure what else I can work on.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Sound for calculators with bad ram
« Reply #35 on: October 16, 2010, 02:31:08 pm »
There's not much to work on. It's basically done. Full length tracks wouldn't work because they are too big, but 1 min ones do. I guess I could write a batch file or something to put the song together, but I'm not really sure what else I can work on.

Meh, I was looking for that supposed compression you were talking about. :P
At the very least, get a little script and a link on the main page so I can find this project easier. :)
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 calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Sound for calculators with bad ram
« Reply #36 on: October 16, 2010, 02:47:39 pm »
There's not much to work on. It's basically done. Full length tracks wouldn't work because they are too big, but 1 min ones do. I guess I could write a batch file or something to put the song together, but I'm not really sure what else I can work on.

Meh, I was looking for that supposed compression you were talking about. :P
At the very least, get a little script and a link on the main page so I can find this project easier. :)
There's compression; it's just not as good as you'd like it to be. I don't think it can be made any better, actually, without making it too slow, IIRC.
« Last Edit: October 16, 2010, 02:48:24 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Sound for calculators with bad ram
« Reply #37 on: October 16, 2010, 04:52:50 pm »
Wow, I can't wait for a user friendly version of this.  Cool! ;D

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: Sound for calculators with bad ram
« Reply #38 on: October 17, 2010, 03:49:53 am »
There's not much to work on. It's basically done. Full length tracks wouldn't work because they are too big, but 1 min ones do. I guess I could write a batch file or something to put the song together, but I'm not really sure what else I can work on.
It would be nice if a script was written to create the songs and release on ticalc.org. I wouldn't be surprised if this was newsworthy considering it supports new calcs as well. Was RealSound ever released on Ticalc anyway?

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Sound for calculators with bad ram
« Reply #39 on: November 14, 2010, 01:54:38 am »
It's about time I finally put this one to rest.



And actually, this sounds a lot better in person, my digital camera doesn't have a good speaker.

Included are all the tools you'll need to make your own songs. I tried to make it as simple on the end user as possible, and I feel that with a youtube video (in 1080p btw (youtube only shows 720p though)) and a thorough readme, almost anyone can put songs on their calculator.
« Last Edit: November 14, 2010, 01:55:34 am by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

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: Sound for calculators with bad ram
« Reply #40 on: November 14, 2010, 02:14:48 am »
Wow amazing! Although it is cam recording the sound quality seems pretty good. I'll have to try this at one point. Great job! Are you planning to upload this on ticalc.org?

EDIT: Problem... sighs... stupid 64-bit Windows 7...

When I type convert MAGICHC (MAGICHC.wav is located under the wav directory), I get the following error:

"The program can't start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem."

I get this even though I have MSVCR100.dll on my computer (under System32). I tried putting it in SysWOW64 instead and still got that error message. Same if I put it in the truSound directory. :/

Any help?

EDIT: Nvm, I finally figured out: truSound is dependent on Visual C++ runtimes, so you need to install this to run it if you don't have Visual C++ installed.

EDIT 2: Btw, newer versions of Audacity (such as the Windows 7 compatible one) have a different Microsoft 8 bit PCM setting (Unsigned) and it doesn't appear to play the song at the right speed when converted to truSound. What I finally did is just doubling the speed of my song file in Audacity.

EDIT 3: Actually, 16 bit Signed PCM produces the same 8xk file size. Anyway, attached file below. (One of my last song)
« Last Edit: November 14, 2010, 03:01:10 am by DJ Omnimaga »

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Sound for calculators with bad ram
« Reply #41 on: November 14, 2010, 10:22:16 am »
There's not much to work on. It's basically done. Full length tracks wouldn't work because they are too big, but 1 min ones do. I guess I could write a batch file or something to put the song together, but I'm not really sure what else I can work on.
It would be nice if a script was written to create the songs and release on ticalc.org. I wouldn't be surprised if this was newsworthy considering it supports new calcs as well. Was RealSound ever released on Ticalc anyway?
Realsound was released, and I think it was featured.

I just tried this in Wabbit and I love it! I just need to clean out my archive a little and I'll be using this on my calc.
« Last Edit: November 14, 2010, 10:22:26 am by FinaleTI »


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Sound for calculators with bad ram
« Reply #42 on: November 14, 2010, 11:23:33 am »
DJ, thanks for finding the bug with the C++ runtime libraries. I've had several people tell me they weren't necessary, but I guess they are.

With the microsoft 8 bit pcm, I don't know what other format they could have used. 8 bit seems pretty straight forward to me. One possibility is that my speed test actually finds a glitch in wabbitEmu. The instruction ADC HL,BC runs 4 t-states too fast. WabbitEmu is supposed to run at 15,000,000 Hz which gives a proper sample rate of 15,000,000/696=21,552. But if you say that you had to double the speed, then there's a different problem.

So are you saying that an 8 bit song playing at twice the speed was the same size as a 16 bit file playing at the right speed?

And finally, wabbitEmu tends to add some really nasty high pitch noises into the song. (It might be the sound card too). So don't think that those are final. But surprisingly, you're song didn't do it DJ, that might be because it was made with a computer.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Sound for calculators with bad ram
« Reply #43 on: November 14, 2010, 11:29:37 am »
This looks great.  Nice job ThePenguin!  How much space does about one second of sound take?

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Sound for calculators with bad ram
« Reply #44 on: November 14, 2010, 11:31:28 am »
It takes a sample rate of bytes per second. So most calculators average around 23,000Hz making for 23,000 bytes per second. (This makes DCS look tiny :D)
« Last Edit: November 14, 2010, 11:37:09 am by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112