Toccata: Music Memory
Hear a melody. Tap it back.
A music-memory game across 6 modes. Listen to a melody, then play it back on the on-screen piano. Climb 50-floor towers to master 12 albums. Battle 100 players in live Royale matches. Compose chain melodies with strangers. Auto-orchestrated Concert Hall plays 11 full-arrangement classical pieces.
Platform: iOS · Android · Web · Telegram Mini App
/why
Why we made it
Most music games are rhythm games — tap exactly when the note hits. Toccata is different: it tests your EAR, not your reflexes. You hear a melody once, then must play it back from memory. Inspired by ear-training drills, but wrapped in an addictive mobile game with social features (live multiplayer, chain composition) and a Concert Hall that auto-orchestrates classical masterpieces.
/play
How to Play
- 01Tap the LISTEN button — the melody plays on the on-screen piano
- 02Tap the keys to replay it from memory
- 033 strikes and you're out — accuracy matters more than speed
- 04Tower mode: 50 floors per album, melody grows by 3 notes each floor
- 05Royale mode: 100-player live battle, last ear standing wins
- 06Chain mode: drop 3 notes, anyone in the world adds 3 more
- 07Daily mode: one chance per day to master today's melody
- 08Concert Hall: sit back and listen to 11 fully-orchestrated pieces
/screenshots
Screenshots
/features
Features
6 Game Modes
11 Albums × 50 Floors = 550 Levels
100-Player Live Royale (Firebase)
Global Chain Composition
Auto-Orchestrated Concert Hall
20+ Sampled Instruments
11 Languages
Telegram Mini App
iOS + Android + Web
Background Audio (Spotify-style)
Offline Tower + Daily
Dynamic Island Now Playing
/tech
Under the hood
- Tone.js Web Audio with 20+ sampled instruments (piano, violin, cello, harp, organ, harmonium, flute, clarinet, sax, bassoon, frenchHorn, trumpet, xylo, glock, guitarNylon, guitarElectric, bassElectric, contrabass, drums)
- Tone.Offline render pipeline for Concert mode — full multi-track arrangement pre-rendered to AudioBuffer for gap-less playback
- Firebase Realtime DB for live 100-player Royale with last-write-wins room state
- Firestore for chain composition + cross-device profile sync via anonymous auth
- Capacitor 8 iOS + Android with native AVAudioSession for background audio on lock screen
- Silent-mode bypass on iOS via 0.1s silent AVAudioPlayer loop in AppDelegate
- rollup-plugin-obfuscator on production bundle (control-flow flattening + base64 stringArray)
- 11-locale i18n with 200+ translated strings across 20 screens
- Cell-based melody encoding: 8 cells per game-measure, 1 cell ≈ 1/8 note
- Telegram WebApp SDK integration with viewport-locked iPhone-15-Pro-Max layout
/devlog
Dev log
- 012026-05-15
Tap Brain → Toccata
Renamed project. Built Tower mode with 12 albums × 50 floors = 550 single-note melodies. Tone.js piano sampler with all 84 keys.
- 022026-05-17
Concert Hall v1
Added 6 classical pieces (Ave Maria, Für Elise, Canon, Eine Kleine, Ode to Joy, Turkish March) with hand-authored multi-instrument arrangements.
- 032026-05-19
Royale Multiplayer
Built 100-player live Royale on Firebase Realtime DB. 15s lobby, race-write room state, self-eliminate on 3 errors, last ear standing wins.
- 042026-05-21
Chain Composition
Global chain mode — drop 3 notes, anyone adds 3 more. Firestore composition store with public + private chains.
- 052026-05-23
iOS + Android Submission
TestFlight + Play Console internal draft. 11 locales × 3 devices = 330 screenshots via Playwright. Background audio + silent-mode bypass.
- 062026-05-25
Telegram Mini App
Wrapped as Telegram WebApp with iPhone-15-Pro-Max viewport lock. Deployed to Firebase Hosting. localStorage XOR+hex encryption for tamper protection.
/next
What's next
- [ ]5 more Vietnamese folk arrangements (Hồ Trên Núi, See Tình, Trống Cơm)
- [ ]AI-generated audio (Suno) for vocal-heavy songs that don't suit synth playback
- [ ]Coop mode — duet with a friend on the same piano
- [ ]Composer mode — write your own melody, share via QR code
- [ ]Adaptive difficulty: Tower mode adjusts melody complexity to player skill
- [ ]Apple Music / Spotify integration for personal song library
- [ ]Smart Notification: today's daily melody pushed at user's preferred time