Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Melody Mapper Magic | Audio to Piano Roll</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| </head> | |
| <body class="bg-gradient-to-br from-indigo-900 to-purple-900 min-h-screen text-white"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <section class="max-w-4xl mx-auto bg-gray-800 bg-opacity-50 rounded-xl p-6 backdrop-blur-sm"> | |
| <h1 class="text-4xl font-bold mb-6 text-center">Transform Audio to Piano Roll</h1> | |
| <p class="text-xl mb-8 text-center text-gray-300">Upload your MP3 and watch it transform into beautiful piano roll visualization</p> | |
| <div class="grid md:grid-cols-2 gap-8"> | |
| <div class="space-y-6"> | |
| <div class="bg-gray-700 p-6 rounded-lg"> | |
| <h2 class="text-2xl font-semibold mb-4 flex items-center"> | |
| <i data-feather="upload" class="mr-2"></i> Upload Audio | |
| </h2> | |
| <div class="border-2 border-dashed border-gray-500 rounded-lg p-8 text-center hover:border-purple-400 transition-colors"> | |
| <input type="file" id="audio-upload" accept=".mp3,.wav" class="hidden"> | |
| <label for="audio-upload" class="cursor-pointer"> | |
| <i data-feather="music" class="w-12 h-12 mx-auto text-purple-400"></i> | |
| <p class="mt-4">Drag & drop your audio file here</p> | |
| <p class="text-sm text-gray-400 mt-2">or click to browse files</p> | |
| </label> | |
| </div> | |
| <div id="audio-info" class="mt-4 hidden"> | |
| <p class="text-sm"><span class="font-medium">File:</span> <span id="filename"></span></p> | |
| <p class="text-sm"><span class="font-medium">Duration:</span> <span id="duration"></span></p> | |
| </div> | |
| </div> | |
| <div class="bg-gray-700 p-6 rounded-lg"> | |
| <h2 class="text-2xl font-semibold mb-4 flex items-center"> | |
| <i data-feather="sliders" class="mr-2"></i> Settings | |
| </h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium mb-1">Sensitivity</label> | |
| <input type="range" min="1" max="100" value="50" class="w-full h-2 bg-gray-600 rounded-lg appearance-none cursor-pointer"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-1">Note Detection</label> | |
| <select class="w-full bg-gray-600 border border-gray-500 rounded-md px-3 py-2 text-white"> | |
| <option>Aggressive</option> | |
| <option selected>Balanced</option> | |
| <option>Conservative</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-1">Output Format</label> | |
| <select class="w-full bg-gray-600 border border-gray-500 rounded-md px-3 py-2 text-white"> | |
| <option>MP4 Video</option> | |
| <option>GIF</option> | |
| <option>MIDI</option> | |
| </select> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-700 p-6 rounded-lg"> | |
| <h2 class="text-2xl font-semibold mb-4 flex items-center"> | |
| <i data-feather="video" class="mr-2"></i> Preview | |
| </h2> | |
| <div class="aspect-video bg-black rounded-lg flex items-center justify-center"> | |
| <div class="text-center"> | |
| <i data-feather="play" class="w-12 h-12 mx-auto text-purple-400"></i> | |
| <p class="mt-2">Your piano roll visualization will appear here</p> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex justify-between items-center"> | |
| <div class="flex space-x-2"> | |
| <button class="bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-md flex items-center"> | |
| <i data-feather="play" class="mr-2"></i> Play | |
| </button> | |
| <button class="bg-gray-600 hover:bg-gray-500 px-4 py-2 rounded-md flex items-center"> | |
| <i data-feather="pause" class="mr-2"></i> Pause | |
| </button> | |
| </div> | |
| <button class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-md flex items-center"> | |
| <i data-feather="download" class="mr-2"></i> Export | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <section class="max-w-4xl mx-auto mt-12"> | |
| <h2 class="text-2xl font-semibold mb-6">How It Works</h2> | |
| <div class="grid md:grid-cols-3 gap-6"> | |
| <div class="bg-gray-800 bg-opacity-50 p-6 rounded-lg"> | |
| <div class="w-12 h-12 bg-purple-500 rounded-full flex items-center justify-center mb-4"> | |
| <i data-feather="upload" class="w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-medium mb-2">Upload Audio</h3> | |
| <p class="text-gray-300">Upload your MP3 or WAV file. We support most common audio formats.</p> | |
| </div> | |
| <div class="bg-gray-800 bg-opacity-50 p-6 rounded-lg"> | |
| <div class="w-12 h-12 bg-indigo-500 rounded-full flex items-center justify-center mb-4"> | |
| <i data-feather="cpu" class="w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-medium mb-2">AI Analysis</h3> | |
| <p class="text-gray-300">Our algorithm detects notes and converts them to piano roll format.</p> | |
| </div> | |
| <div class="bg-gray-800 bg-opacity-50 p-6 rounded-lg"> | |
| <div class="w-12 h-12 bg-blue-500 rounded-full flex items-center justify-center mb-4"> | |
| <i data-feather="video" class="w-6 h-6"></i> | |
| </div> | |
| <h3 class="text-xl font-medium mb-2">Visualize & Export</h3> | |
| <p class="text-gray-300">Watch the visualization and export as video, GIF or MIDI file.</p> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |