Author Topic: Guitar Hero with SOUND on a CALCULATOR!  (Read 18069 times)

0 Members and 2 Guests are viewing this topic.

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 #15 on: September 02, 2009, 09:45:42 pm »
cool i actually know some vb could you post the src please :) so i can look learn and help some (i hope :P)

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #16 on: September 02, 2009, 10:45:19 pm »
I made the effort of going through my code and commenting everything to allow for a basic understanding. This is in VB2008, and not VB6, btw.

Enjoy.

Edit: Oops, I forgot to make a small change when I commented things. When you open the project, you'll notice "Form1.vb" is invalid. You'll need to go into Project>Add Existing Item, and choose "Form2.vb" (which was the new commented form I had made).
« Last Edit: September 02, 2009, 10:49:52 pm by Seren »

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 #17 on: September 03, 2009, 03:57:25 pm »
awsome ill take a look later and im dont know vb6 any way i know 2008 as well il see what i can do :)


edit: just reliezed looking at the source im gonna need to do a lot of reasearch on .wav format lol

any suggestions for additions that could be added while im poking around?


if i made it a lot slower but take less memory would you all be happy with that for a while cause im using a low cpu ad ram comp :(
« Last Edit: September 03, 2009, 04:20:23 pm by Geekboy1011 »

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #18 on: September 03, 2009, 05:25:56 pm »
Yeah sure -never optimized it for memory either. I only knew that it worked on my computer.

The wav format is really simple.

The first four characters of the file are "RIFF.". The next 4 bytes are the length of the rest of the file.

After that comes "WAVE" (at 08). This identifies the file as a wav file.

Following that are two groups of information. The first group, right after "WAVE", is called "fmt " (with a space after the t). The four bytes after give the length of the "fmt " section. This section basically gives information on the wave file: Does it use compression, how many kHz, 8-bit, 16, 24-bit? How many channels, etc.

After "fmt " comes "data". (Again, the four next bytes specify the length). After data is all the information about the song. If the wave file is 8-bit & mono, each byte represents 1 tick of sound in the wave file (determined by the frequency - which is 8.000 kHz for GuitCalc). So I basically read 1 byte at a time here in the data section.

Here's detailed information that I just found off the net if you're interested: http://web.archive.org/web/20071203105906/http://www.sonicspot.com/guide/wavefiles.html

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 #19 on: September 03, 2009, 08:57:07 pm »
alright ill try to optimize a speed version for dj and me

guidlines it runs on my 897mhz processor with 512 ram im pretty sure if it runs on that then it will run on any thing lol

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 #20 on: September 03, 2009, 11:03:06 pm »
Also, just another thing, if I edit a song when I can, is it like extremly hard to keep the simfile (or whatever it's called) from going out of sync with the song?

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 #21 on: September 04, 2009, 12:22:37 am »
OH btw, just played new version and I like the sound quality improvement and speed. However, I was wondering if that acute static-like buzz (idk how else to explain it) could be removed or if it's part of calc limitation? Or could it be because I use an emu?

Here's a sample below:
http://xlib.mtv-music-generator.com/ghsound.wav


No matter what, though, still a great achievement ^^
« Last Edit: September 04, 2009, 12:34:34 am by DJ Omnimaga »

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 #22 on: September 04, 2009, 12:40:25 am »
gah, thats horrible.  Is it like that the whole time?  It didn't sound like that in previous versions.

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 #23 on: September 04, 2009, 12:53:53 am »
in the previous version (that was playable too), that buzz was not as loud. Maybe it's just the emulator

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #24 on: September 04, 2009, 03:26:57 pm »
First of all, the buzz sounds less if you use cheap earpieces (and not computer speakers from a computer emulator). Next, if you mean the previous version as in the 6mHz one on unitedti (confirm what you mean please), then yes, it was not as loud for I Love Rock N' Roll. On the other hand, for most songs, they sounded a lot better (see if Sweet Child o' Mine sounds like that, it doesn't for me). Rock n' Roll was actually rather poorly "enhanced". In the new version you can hear the words, but there's more static. On the other hand, the old version (1-bit) has no buzz like that, but the quality is too low to hear the words (giving a generally impression of the tune of the song).

It's possible that I have a slight glitch in my decompression routine (resulting in garbage), or that my data gets partially corrupted sometime inbetween decompression and outi-ing it to the port (which is a possibility).

So check for Sweet Child o' Mine, and tell me what you get.

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 #25 on: September 04, 2009, 04:14:13 pm »
aah, ok, I was actually using  headphones that werent that cheap but not too expensive either (basically, not Dollarama stuff). But yeah, I got static in Realsound too anyway. You can test http://omnimaga.unitedti.org/DESUDESU.8xk in WabbitEmu (you need to Garbage Collect first, even if you just cleared the entire memory) to hear what I mean. Song is Rick Astley - Never Gonna Give You Up, first minute of it

I'll try the song Sweet Child O' Mine now

EDIT: Ok, still the same amount of static, but the song sounds clearer in overall it seems
« Last Edit: September 04, 2009, 04:20:20 pm by DJ Omnimaga »

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #26 on: September 04, 2009, 04:38:54 pm »
Well, I've never gotten WabbitEmu to work. All I get is what's seen in the picture I attached. Any idea why that happens?

Well, tell me if you get the acute static-like buzz for Sweet Child o' Mine on cheaper earpieces. I hear static but no acute buzz (the static is light enough that if you focus on the song itself you can ignore the static)

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 #27 on: September 04, 2009, 04:44:41 pm »
Mhmm strange x.x never got that happening. But Wabbitemu tend to behave weirdly and differently for several people it seems. Must be because it's still in Beta and is dependent on certain computer settings x.x

Unfortunately i got no cheaper headset, tho x.x, I will have to try to find one x.x

Offline Eopia

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +2/-2
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #28 on: December 10, 2009, 03:20:45 pm »
could you maybe do this for the simple ti-83 without+ or tell me how i get this to work on it.
i think it will be impossible with music cause ram isn't big enough but if you do a small version only hit the buttons this would be great. ;)

Offline Seren

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: Guitar Hero with SOUND on a CALCULATOR!
« Reply #29 on: December 10, 2009, 04:00:42 pm »
Well, I've kinda become rather busy (hence the fact that I've disappeared for a bit)

I'm actually about to convert all the Guitar Hero I/II/III & Encore Rocks the 80s into Guitar Calculator files, but it's hard for me to find time to work on it.

I wouldn't mind porting this to the 83, but I'm probably going to rewrite the code to remove sound functionality from the Ti-83+ (since it's pretty bad and cannot support the higher quality I put for 15mHz calculators). It would probably be at that point that I would make it for the 83, but, because of my time constraints, I don't know when this will happen.

On the other hand, I would have to know the differences between the Ti-83 and Ti-83+.

~
The three main things I need to know to make a version for the Ti-83, if I get to it, is:

I don't believe the 83 has application variables? (http://tibasicdev.wikidot.com/file-extensions) In that case I would probably have to store my application variables as programs or something?
How is the memory on the 83 organised? Does it have any ROM? Does it use paging? How so?
How do bcalls work?
« Last Edit: December 10, 2009, 04:15:32 pm by Seren »