I will check the project directory to see the existing structure and installed packages.
I will read package.json to inspect the available dependencies.
I will install jszip, lucide-react, and canvas-confetti to handle .osz ZIP packaging, icons, and royal celebratory effects.
I will check index.html and src/index.css.
I will check src/index.css.
I will check the files in public or src to see what is already there.
I will update index.html to set an imperial title and load royal typography fonts (Cinzel, Cinzel Decorative, and Plus Jakarta Sans).
I will update src/index.css with royal styling, luxury gold gradients, imperial glassmorphism, and custom animations.
I will create src/types/beatmap.ts containing the data models for osu! hit objects, sliders, timing points, map difficulty settings, generation algorithms, and playback states.
I will create src/audio/audioAnalyzer.ts to decode uploaded audio files, perform BPM autocorrelation and onset spectral flux analysis, and generate built-in royal audio tracks.
I will create src/generator/beatmapGenerator.ts to implement the beatmap generation engine with triangular jump geometry, stream flow arcs, tech sliders, and strict playability bounds clamping.
I will clean up the unused variables in src/generator/beatmapGenerator.ts.
I will remove the unused densityBoost declaration in src/generator/beatmapGenerator.ts.
I will create src/exporter/oszExporter.ts to convert the beatmap data into .osu v14 format, draw the 1920x1080 royal gold background artwork, and pack everything with JSZip into a downloadable .osz file.
I will create src/components/OsuPlayerCanvas.tsx to provide the interactive osu! player, triangle aim visualizer, and autoplay spectate mode.
I will remove the unused imports and variables in src/components/OsuPlayerCanvas.tsx.
I will remove the unused hp state variable in src/components/OsuPlayerCanvas.tsx.
I will remove the calls to setHp in src/components/OsuPlayerCanvas.tsx.
I will remove line 190 in src/components/OsuPlayerCanvas.tsx.
I will create src/App.tsx bringing together the audio analyzer, royal procedural synthesizer, triangular aim beatmap generator, interactive osu! canvas player, and .osz packaging export suite.
I will read src/main.tsx.
I will update src/App.tsx to include default export, remove unused imports and variables, and add audio waveform visualizer feedback.
I will run build_project to confirm that the TypeScript and Vite build passes without errors.
I have created the SOVEREIGN Royal osu! Beatmap Generator & .osz Exporter.
👑 Features & Highlights
-
Audio Input & Smart Beat Analysis:
- Upload any custom audio file (
.mp3, .wav, .ogg, .m4a) or choose from 4 built-in Royal Masterpieces (e.g. Imperial Requiem (180 BPM), Crown of Sovereignty (200 BPM), Velvet Palace Nocturne, Golden Dynasty) that play instantly out of the box with zero setup.
- Web Audio API Engine: Performs real-time spectral flux onset detection, BPM autocorrelation, and automatic Kiai drop detection.
-
Sacred Triangular Aim (Delta Jumps):
- Dedicated geometric jump engine creates crisp, satisfying equilateral and isosceles 3-vertex jump triangles (A→B→C→A).
- Delta Triangles Visualizer Overlay: Displays illuminated golden laser lines connecting the 3 vertices of jump triangles right on the playfield.
-
100% Playable & Strictly NOT Impossible:
- Screen Boundary Clamping: Hit objects are locked inside the safe coordinate zone (, ) so notes never spawn off-screen or unreadably close to the edge.
Files built: index.html, src/index.css, src/types/beatmap.ts, src/audio/audioAnalyzer.ts, src/generator/beatmapGenerator.ts, src/exporter/oszExporter.ts, src/components/OsuPlayerCanvas.tsx, src/App.tsx