Guitar Hero - but with Real Instruments

Started by
5 comments, last by prodigenius 14 years, 7 months ago
So one day I was playing Guitar Hero and I noticed how funny it was that I would play Guitar Hero for literally 4 hours a day and never touch my real guitar. So I wrote a pretty cool game that has the game inspired by Guitar Hero and Rock Band, but it uses your computer's microphone to pick up sound on you play on a real instrument. The URL is http://www.testfrenzy.com/games/musichero/ It's not completely finished yet, but I'd appreciate any comments! This is my first java game, but I promise it doesn't (too badly) look it. I really enjoy playing it and want to know what you think! thanks!
Advertisement
That's really cool. Interesting way to handle it without requiring some input hardware like Guitar Rising - which, BTW I'd love to know what the hell happened with them. Mor bizness for you I guess! Tho Disney is also in the market.

Drew Sikora
Executive Producer
GameDev.net

Looks interesting. Are there any plans to support multiple notes playing simultaneously (like chords)? That would probably be hard to track, though.
Is the Mac version of the Python Beta available? I primarily ask because the Java version won't detect my MacBook's built-in microphone.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Chords are prohibitively difficult to detect, because each instrument generates different harmonics. Even within instruments, say a trumpet, a silver one sounds brighter (different partials) than a brass one. These harmonics are virtually indistinguishable from chords without superb software. In fact, there is only one program that I'm aware of that supports pitch extraction from polyphonic music, and it's very expensive.

The game doesn't recognize the microphone? I'm not very good with Macs, so do you know any way to fix that?
Quote:Original post by prodigenius
The game doesn't recognize the microphone? I'm not very good with Macs, so do you know any way to fix that?
Running in debug mode I see the following:

java.lang.IllegalArgumentException: No line matching interface TargetDataLine supporting format PCM_SIGNED 5000.0 Hz, 8 bit, stereo, 2 bytes/frame,  is supported.	at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)	at music.getBackgroundNoise.run(getBackgroundNoise.java:96)	at java.lang.Thread.run(Thread.java:637)

At a guess, the problem is that you are requesting a stereo microphone - don't see many of those outside of the recording studio [smile]

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

It turns out there were 2 problems: one was what you said, that stereo mikes are rather uncommon (turns out all of the laptops I tested it on had them) and some mac distributions only accept 44.1kHz input.

It should be fixed now!

This topic is closed to new replies.

Advertisement