Author Topic: Guitar Hero with SOUND on a CALCULATOR!  (Read 18148 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
Guitar Hero with SOUND on a CALCULATOR!
« on: August 19, 2009, 02:36:04 am »
Wow O.O

http://www.unitedti.org/index.php?showtopic=8917

I didn't thought this was possible. Now if only sound quality was better. I think it could be tho, on newer models. Now I hope that guy releases a song converter so I can convert you-know-what to GH calc format :D

Now we need DDR with sound :D

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #1 on: August 19, 2009, 06:41:43 pm »
I know, I was playing around with it :P
stupid emulator doesn't like me though, I can't hit any notes...
/e

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #2 on: August 19, 2009, 08:10:57 pm »
hehe, I don't have an adapter, so I had to use 3 alligator clips to hook it up to my stereo. :)

Its got great sound for the file size, but the difficulty is way to high for me :P (on easy!)

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: Guitar Hero with SOUND on a CALCULATOR!
« Reply #3 on: August 19, 2009, 11:12:43 pm »
yeah I couldn't hit any note either. It didn't seems to do anything


btw those with an old Xbox who got an headset can actually use it with their calc. However then they will only hear sound from one side

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #4 on: September 01, 2009, 10:45:15 pm »
Hey I got spotted from across the forums!

If you read the end of the topic in unitedti, you would have seen that I was working on rewriting the code with support for 2-bit sound and compression (on average lowering the size by 24%). I finally managed to find the time to complete the new version of the game (attached below). This uses the 15 mHz processor and so does not work on the regular Ti-83+. I still have not gone around to syncing the sound to the notes (I have timestamps for all the notes of the songs in GH1 & GH2, but I don't have any references to real time (such as in seconds). 1 "tick" in that timestamp is equivilant to somewhere between 15.1 and 15.2 milliseconds, but I haven't quite figured out where it lies exactly).

The 3 attached files are the ones I have converted using my new sound format (Sweet Child o' Mine sounds incredibly good). If you happen to find any other older files on unitedti in my thread before compression & 2-bit sound, the notes will work fine but the sound will be gibberish.

Full details on how to play are on my unitedti thread.

You expressed interest in making your own song for Guitar Calculator. I also attached a sample excel file I use to create my songs. I modified it a bit to provide a more user-friendly verison (SampleExcel).

On the left will be the information you need to submit to create the file. Do not modify the values here. On the right, under "Raw" (each set of rows corressponds to a different difficulty-leave it blank if you don't was to use them all), you type in at what time you are supposed to press the note in milliseconds (1000 = 1 second, 2000 = 2 seconds, 5600 = 5.6 seconds). Beside, you put a "0" on the notes you want the user to press when he hits your note/chord. I have an example provided.

Notice that the last note has a "-4" instead of a 0. This is a special case - it is a "note" which tells the program to quit the song (in other words, this represents the time at which the song ends). Don't forget to put it at the end, or else your player will have to manually quit the song themselves using DEL.

The song you would like to use for Guitar Calculator must be presented in a 8.000 kHz, 8-bit, Mono .wav file. You can use your Sound Recorder accessory in Windows XP to convert the wav type if you have it (File>Properties). It also shows you the current form if you need to check the format. Any other form will produce incorrect results, or be refused.

Once you have your notes all prepared in your Excel file, it is time to input the data. Each double-column set on the left of the excel file corresponding to a difficulty must be converted into the following format:

From (this is the Easy version of the sample song I put in randomly)
1000   253
1500   253
etc.

to

1000;253;2000;251;3000;251;4000;247;5000;247;30000;245;50000;243;4464;247;24464;127;
(note that the last number must end with a semicolon)

A simple way of doing this is to copy all the values, and paste them into word. After you paste, in the bottom-right corner, there should be a little briefcase. Click on it and choose to conserve only the text of what you pasted (so that you don't have the information in form of a table).

After that, press Ctrl+F and select "Replace". Search for "^p" and replace all occurences with ";". Now replace all occurences of "^t" with ";". Your information should now be converted into the proper form (a very long line of numbers seperated by semi-colons).

Once that is done, run the attached program (GuitarCalculatorSongMaker3.zip). Choose your wav file (make sure it is in the right format!), and then type in the information it asks for. Note that if your title/artist is too long, it might not fit on the screen. After that the program will start to create AppVars in the same folder as your wav file. Given the fact that the program I made is highly inefficient, you will have to wait a while. Suddenly, when it is done converting the song, it will present a pop-up asking you to paste the information for Easy. Paste the information in the form of the semi-colon-separated list. Do the same for Medium, Hard, and Expert. If you did not include a certain difficulty, leave the input box completely blank. If your input is incorrect, the program will likely crash.

You will now have your AppVars. Test it on your calculator, adjust, then zip it and upload it here.

What was the song you wanted to put on your calculator? One of your own?
« Last Edit: September 01, 2009, 10:55:14 pm by Seren »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #5 on: September 01, 2009, 10:47:37 pm »
cool, and welcome to Omnimaga Seren, I'll take a look at this later, but it looks good :P
/e

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #6 on: September 01, 2009, 10:54:00 pm »
Haha, thanks. I'm kind of proud that my first game is receiving such notice. Of course, I chose to make this game because I saw nothing of the kind anywhere on ticalc.org (in fact, I hadn't even known that DDR existed), and it didn't seem particularly hard to make for me.

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: Guitar Hero with SOUND on a CALCULATOR!
« Reply #7 on: September 01, 2009, 11:54:50 pm »
Heya Seren and welcome here.

First question, seeing on UTI as you're also from Québec, and how you use the same ISP as me according to your forum profile over here, How do you manage to access the Omnimaga site? Because since this afternoon, I have been unable to access the site without using a proxy and I don't feel it's really safe for me to login through a proxy. :S

Now back on topic, this seems very awesome. Do you think this would work on the TI-Nspire? I got two TI-83+, one TI-83+SE and one TI-Nspire. But one of the 83+ has no link port anymore, the SE is defect and all I got that runs at 15 MHz in 84+ mode is a TI-Nspire. I would really love to play this without emulator at one point :)

There are some GH games out there for calculators, but none has sound. Same goes for the DDR games on Ticalc. I made two good looking one using TI-BASIC and xLIB (or Celtic), but they have no sound either.

Unfortunately, I was always more into DDR than GH simply because I love electronic dance music, but this is still a major achievement for calculators to have sound inside a game that aren't just small beeps when walking around.

My only complain about the previous version was sound quality but hey, that's a calculator after all :D

Gonna try the new version right away now.

And I seriously hope my hosting provider didn't banned my IP or something because it's annoying to not be able to access my own website normally.

EDIT: Btw, could someone make a song for me? Because your song maker takes way too much RAM on my computer (about 1200 MB) so I can't use it and if I even try, I got to reboot afterward. Here's the song I wanted to get converted. I think everyone on the forums who has been member for a while alerady knows which song I am talking about >.> but here is it:


PM me if you need WAV file
« Last Edit: September 02, 2009, 12:12:57 am by DJ Omnimaga »

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #8 on: September 02, 2009, 03:22:39 pm »
Welcome Seren :D
Really nice work with the game ^^
I only tried it in an emulator right now, but I'm soo going to put it on my calc when It connects again to my PC
2.5mm headphone jacks for the win! :D

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #9 on: September 02, 2009, 04:14:54 pm »
Heya Seren and welcome here.

First question, seeing on UTI as you're also from Québec, and how you use the same ISP as me according to your forum profile over here, How do you manage to access the Omnimaga site? Because since this afternoon, I have been unable to access the site without using a proxy and I don't feel it's really safe for me to login through a proxy. :S

Well, yesterday, I had typed a response to the post, then clicked preview, and then the page crashed on me. Omnimaga stayed down for me for quite some time. I had supper, came back, and then it was back up.

Now back on topic, this seems very awesome. Do you think this would work on the TI-Nspire? I got two TI-83+, one TI-83+SE and one TI-Nspire. But one of the 83+ has no link port anymore, the SE is defect and all I got that runs at 15 MHz in 84+ mode is a TI-Nspire. I would really love to play this without emulator at one point :)

I don't know where the buttons would be on the Ti-Nspire, since I've only seen it once in my life, but I see no reason why it shouldn't work. My only worry is that the song won't be played at the right speed (given that it's an emulation) - I've manually counted the clock cycles every single mnemonic and function takes in the gameplay section - in an emulator this probably will no longer hold up (not that I know - does it simulate the proper speed?).

There are some GH games out there for calculators, but none has sound. Same goes for the DDR games on Ticalc. I made two good looking one using TI-BASIC and xLIB (or Celtic), but they have no sound either.

Unfortunately, I was always more into DDR than GH simply because I love electronic dance music, but this is still a major achievement for calculators to have sound inside a game that aren't just small beeps when walking around.

My only complain about the previous version was sound quality but hey, that's a calculator after all :D

Gonna try the new version right away now.

And I seriously hope my hosting provider didn't banned my IP or something because it's annoying to not be able to access my own website normally.

EDIT: Btw, could someone make a song for me? Because your song maker takes way too much RAM on my computer (about 1200 MB) so I can't use it and if I even try, I got to reboot afterward. Here's the song I wanted to get converted. I think everyone on the forums who has been member for a while alerady knows which song I am talking about >.> but here is it:


PM me if you need WAV file

What we need is a program to convert Frets on Fire songs into a format for the calculator. Unfortunately, I have no idea how the notes.mid file is arranged (tried once some time back - had a bit of success, but I gave up). If anyone can document the structure of a midi file, and also specifically for FoF, I could write an (inefficient) program to convert the notes into a usable format for the calculator. This will allow us to have an extremely large base with which to make songs.
« Last Edit: September 02, 2009, 04:38:32 pm by Seren »

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: Guitar Hero with SOUND on a CALCULATOR!
« Reply #10 on: September 02, 2009, 06:04:45 pm »
Actually nvm the can't access Omni comment. Later that night, I e-mailed 1and1 (the hosting provider for Omnimaga and TIMGUL websites, as well as the xlib.mtv-music-generator.com file folder) and it turned out that for some reason, my IP got banned from their server. I got them to unban it and when I returned from work an hour ago, they had it fixed. I hope this doesn't happen again, though, because proxies are very slow sometimes and not very secure (when logged in).

Some other people has reported some downtimes last afternoon too, though. Maybe I just tried too many attempts at accessing the site during that time, as I was editing forum files at that time.

Back on the topic, the TI-Nspire, when you swap its keyboard with the TI-84+ keyboard, has the same keypad layout as a regular TI-83+/84+. The speed is practically the same as a regular TI-84+SE, even during ASM games. The only problem is that programs using undocumented ASM instructions and stuff like that usually doesn't work on it. MirageOs, for example, requires a patch, else it crashes. Zelda Dark Link Quest, Illusiat 2004 and Reuben Quest series earthquake effects won't display (they're done using a small ASM program to shift the screen (Z-Adress)). Also, TI-Connect will not detect your TI-Nspire in 84+ mode. Basically, I must send a bunch of song files to my regular 83+, send to Nspire, reset 83+ Mem, and repeat the process until everything is sent.

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #11 on: September 02, 2009, 06:21:13 pm »
Anyways, I'm pretty sure I did not include any undocumented instructions - I would surely have remembered doing so.

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #12 on: September 02, 2009, 09:13:51 pm »
wow awsome got to try this hmm question what is the song converter written in (language wise?

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #13 on: September 02, 2009, 09:21:25 pm »
Visual Basic - very inefficiently and badly formatted, etc, but it gets the job done.

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: Guitar Hero with SOUND on a CALCULATOR!
« Reply #14 on: September 02, 2009, 09:29:07 pm »
I wish my 1 GB RAM PC would run it fine x.x (the song maker)

(I liked VB, did some in comp science intro classes in my two last years of hi school. Had I got a PC at home back then, the teacher was gladly giving students copies of VB6 burned on CDs and I think I would have went into a massive RPG production rampage. Unfortunately, it has been over 6 years since I last touched to VB that I would probably not even be able to help. :( This is not to mention many things must have changed in VB since the days of VB6)