0
0

I’m making a Guitar Hero clone in Visual Basic 6 and was wondering if Fmod could be used to read a midi and determine notes from the file (e.g. if I have a midi file with five musical notes (C, C#, D, D#, E) is there a way i can use Fmod with VB to make the C note correspond to the red button, C# to the green, etc)? Also, how would I initialize Fmod to do this? Any Code is appreciated. Sorry if someone already asked this but I couldn’t find anything. If it’s not possible with Fmod, can you suggest another way.

Thanks

  • You must to post comments
0
0

[quote="borat3":18pzx0ox]I’m making a Guitar Hero clone in Visual Basic 6 and was wondering if Fmod could be used to read a midi and determine notes from the file (e.g. if I have a midi file with five musical notes (C, C#, D, D#, E) is there a way i can use Fmod with VB to make the C note correspond to the red button, C# to the green, etc)? Also, how would I initialize Fmod to do this? Any Code is appreciated. Sorry if someone already asked this but I couldn’t find anything. If it’s not possible with Fmod, can you suggest another way.

Thanks[/quote:18pzx0ox]

I suggest you forget trying to map keyboard event to midi events (which would require you to manually load a mid file using your own code)

I suggest you make a separate key timing file (timeline) that will correspond to when your 5 buttons will be pressed and released.

You can use FMOD to give you the playing position to synch with your timeline file. And even play 2 midis, one with the played instrument stripped out and one with all but the played instrument stripped out.

you play both midis and mute the single instrument midi when the player makes a mistake.

  • You must to post comments
0
0

Thanks. That sounds like a good idea, but would mean I have to work out each song from scratch. I already have a midi file for a song that corresponds to the 5 different frets. It doesn’t relate to the song at all, except for timing, but instead is used as a reference to tell which frets will be chosen, so I just need to read this midi file and have a red note appear for a C, a green for a C#, etc. I believe this is how other Guitar Hero clones work(GuitarZero, which uses fmod, and Frets on Fire).

Thanks Again

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.