
Melodash
A couch-multiplayer singing battle for the Mac that scores how you feel a song, not just whether you hit the notes. Live pitch tracking and a custom Core ML expression model run entirely on-device, with songs from Apple Music or your own files.
Role
- macOS Developer
- Web Developer
Year
Deliverable
- macOS App
- Custom ML Model
- Marketing Website
Website
Tech Stack
Core Challenge
- Push the limits of Apple's audio and video frameworks with live microphone and camera input.
- Karaoke apps only check pitch; we wanted to reward performance and emotion as well, without any server.
Key Impact
- A dual-signal scoring engine: FFT pitch analysis on the voice and a custom Create ML expression classifier on the face, blended live.
- Apple Music, imported songs and synced lyrics on one audio clock, with hardware echo cancellation for local tracks.
Lessons Learned
- The hardest audio engineering was not the DSP but getting the mic, the backing track and Apple Music to share one device.
- For a party game, fair and fun beats musicologically exact, so we scored singing on relative qualities instead of a reference melody.
Challenge Based Learning
This was a team project at the Apple Developer Academy, where every project follows Challenge Based Learning (CBL). Rather than starting from a feature list, a team starts from a big idea, narrows it into an essential question and a concrete challenge statement (Engage), researches real users with guiding questions (Investigate), then builds, tests and refines a solution (Act).
The challenge: Push the limits of Apple's frameworks for audio and video input. We wanted a challenge that used the microphone and the camera at the same time, in real time, entirely on the device. A karaoke battle was the perfect excuse: singing is both sound and performance.

https://www.melodash.app - Melodash: forget online duets, clash face-to-face.
Investigate: Karaoke Was Never Meant to Be Lonely
Karaoke is a social game, but most karaoke apps score you alone against a pitch line. In a room full of friends the best moment is rarely the most accurate singer, it is the one who commits to the song. So we asked: what if the app could score how you feel a song, not just whether you hit the notes?
Act: A Singing Battle Scored on Voice and Face
Melodash turns a Mac into a living-room stage. Two to five players pick avatars, Mic Roulette decides the order, and each singer picks a song every round until the final podium.
- Voice: Realtime pitch detection (FFT autocorrelation with Accelerate) scores four relative qualities: in-tune-ness to the nearest note, stability on held notes, timing against the lyric lines and dynamic range. No reference melody is needed, so any song works.
- Expression: Vision finds the face and a custom Create ML image classifier we trained reads the emotion. A Vision-landmark smile score is fused in, smoothed, and compared with the target "vibe" of the song's genre using cosine similarity, so a ballad rewards a sad face and an anthem rewards a smile.
- The Blend: Overall = 0.4 × expression + 0.6 × voice, and it degrades gracefully: no camera scores on voice alone, no mic on expression alone.
- Live Feedback: A pitch needle with note and cents, an energy meter, an emotion badge and lyrics highlighted in sync with the music.

The final podium after a battle, and the exhibition poster for the Academy showcase.
Under the Hood
- Three Song Sources, One Seam: Bundled tracks, imported files with .lrc lyrics and Apple Music via MusicKit all play through one PlaybackSource protocol, so the rest of the app never knows which one is playing.
- Echo Cancellation: For local songs the backing track and the mic share one AVAudioEngine, so the voice-processing unit can cancel the song leaking from the speakers. Local tracks can also dim the lead vocal.
- The "Ping Did Not Pong" Problem: Apple Music renders outside our engine, and starting the mic too early starved it into silence, while local files crashed if the session started too late. Each source now declares its own session order and the engine sequences it.
- One Clock for Everything: Lyric highlighting, scoring windows and the progress bar all read the same audio clock, so nothing drifts out of sync.
- Private by Design: Camera and microphone are analysed live and never recorded or uploaded.
Outcome
Melodash ships for macOS in two builds: the full app with Apple Music, downloaded from melodash.app, and a reduced build for the Mac App Store. Pushing AVFoundation, Vision and Core ML this hard taught us more about audio sessions and real-time pipelines than any tutorial could.