Inspiration
We've all wanted to learn how to DJ, but for most of us, it's something we've never really had the chance to try. DJing always looked like so much fun, but actually learning how to use all the knobs and controls seemed pretty intimidating. We wanted to explore something completely new to us while also making it easier for other people to get into. That's where the idea for MAINSTAGE came from. We basically wanted to turn learning how to DJ into something like Guitar Hero, where anyone could pick up a controller and start mixing music without needing any experience.
What It Does
MAINSTAGE turns DJing into a rhythm game where players use a real DJ controller to mix two songs together. The game tells you exactly which knobs to turn, where to turn them, and when to do it, all through a super fun and immersive arcade-style interface. As you play, you're actually mixing the songs yourself and earning points based on how closely you follow the instructions. We also added a computer vision feature that tracks your movements through your webcam, so you can earn bonus points by dancing and getting hyped to the music. On top of that, we integrated Gemini to generate new mixes, allowing us to create entirely new levels without having to record every mix manually.
How We Built It
We started by getting our teammate Noah, who actually knows how to DJ, to record himself mixing two songs while we tracked all of his controller inputs. We then built a React application that could mix two audio tracks in real time and recreated his recorded inputs as instructions for the player to follow. For our AI-generated mixes, we used the Gemini API with a really specific prompt that considers things like BPM compatibility, musical timing, and which knobs should be adjusted throughout a transition. Using Noah's mixes as a reference, we were able to generate JSON files containing all the controller movements for new levels. We also incorporated computer vision using webcam-based body tracking to detect how much the player is moving to the music and award bonus points. Finally, we brought everything together with a retro, arcade-inspired UI to make the game feel as immersive as possible.
Challenges We Ran Into
One of the biggest challenges was figuring out how to turn actual DJing into a game. Unlike Guitar Hero, where you're just pressing buttons at certain times, DJing involves constantly adjusting different knobs and faders, sometimes at the same time. We had to figure out how to track these movements accurately and turn them into instructions that were easy to follow. Getting Gemini to generate good mixes was also pretty difficult because we couldn't just ask it to mix two songs and expect everything to work. We had to be really specific about musical compatibility, timing, and making sure the movements were actually possible on a real controller. Another challenge was getting the computer vision scoring to work alongside the DJ controls without making the game too overwhelming.
Accomplishments That We're Proud Of
Honestly, one of our biggest accomplishments is that we all actually learned how to DJ! Going into this project, most of us had basically no experience with any of this, so being able to build something that teaches other people while learning ourselves was really cool. We're also super proud that we managed to combine so many different technologies into one project, from tracking real DJ hardware and mixing audio in real time to generating new levels with Gemini and using computer vision to reward players for dancing. Seeing everything come together into an actual playable game was probably the most rewarding part, especially considering how unfamiliar we were with DJing when we started.
What We Learned
We learned a ton about DJing, audio processing, and how much actually goes into making two songs sound good together. We also learned a lot about working with physical hardware and translating real-world inputs into something a game can understand. One of the coolest things was learning how to use Gemini for something beyond just generating text. We had to figure out how to give it enough information and constraints to produce actual instructions that our game could use. Working with computer vision was another really interesting experience because it let us explore ways to make the player's physical movements part of the gameplay.
What's Next for MAINSTAGE?
We have so many ideas for where we want to take MAINSTAGE next! The biggest thing is adding more tracks and expanding our Gemini integration so players can eventually choose any two compatible songs and generate their own mixes. We also really want to introduce DJ battles, where players can compete against each other to see who can mix better while also earning points for their energy and dancing. We'd love to keep expanding the computer vision side of things, add more difficulty levels, and make the whole experience even more immersive. Ultimately, we want MAINSTAGE to become a fun way for anyone to get into DJing, even if they've never touched a controller before.
