Author |
Message |
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Wed Jun 11, 2008 1:11 am Post subject:
Musical Performance Games Subject description: You play your instrument to control the gameplay |
|
|
Inspired by the great fun I've had creating Guitar Zero, I've decided to get into one of my near and dear beloved genres: gaming! The idea is the you use your voice, a guitar, a harmonica, or whatever instrument you have and the ChucK game detects that sound from the microphone and gameplay follows the music.
One example would be an FFT spectrum game where your spectrum is controlled by your instrument(s) and displayed on a MAUI LED bar graph in, say, green. Then red enemies descend upon you and annihilate your spectral content. At first you can just strum a guitar to keep the few enemies at bay, but as they proliferate and increase in speed and size, you need to play actual notes to concentrate your spectrum into beams of repulsive energy.
Another example might be a spaceship or fleet of spaceships all controlled by the instruments. To move left, you play lower notes, right, higher notes - something like that.
I think this morning I will create a giant LED spectral viewer just to see what my guitar spectrum looks like under various conditions, and work from there. Thoughts, ideas? _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Wed Jun 11, 2008 3:34 am Post subject:
|
|
|
After a few hours of coding, I have come up with a quick little FFT viewer, as shown in the post below. I found that the key to getting a decent frame rate was to only light up the LEDs that are at the peaks of the spectrum, not the full bars.
This forms the basis of a music game in which one uses voice and/or instrument(s) to drive the spectral content. I found that when playing my guitar, I would get sort of hill-shaped peaks near the fundamental of the note, and I chose the screen resolution, the FFT size, and the left FFT offset to fit the guitar's spectrum. This way I can play an open low E string to place a peak on the left of the screen, on up to a short high e string to place one on the right. In this way I can pick out notes that control the spectral content.
Next I need some enemies, I figure they will be inspired by Tempest and Missile Command, starting at the top and descending on the player until they are pushed back up by the spectral content. If the enemy of a particular column descends all the way to the bottom of the screen, then that column is destroyed and perhaps lit up in blue. Then, as the game progresses the player gradually loses columns to defend until most or all of them are gone, then Game Over Man!
Or something like that, I'll see what is easiest to code up and what makes for good gameplay. I imagine such a game being played by one or more people, perhaps with music playing in the background. The collective sound forms the defending spectrum. That way people can work together and either use instruments or not or a combination. What fun, plus you learn to pick out notes of the guitar that create a desired spectrum. This is shaping up nicely. Comments?
Description: |
Partial Spectrum of music song |
|
Filesize: |
102.28 KB |
Viewed: |
307 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
_________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
|
Back to top
|
|
|
|