Spaces:
Running

mr-grey / index.html
Kraftycoder's picture
Add 3 files
b9f26e6 verified
Raw History Blame Contribute Delete
63.1 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Femdio - AI Music Transcription & MIDI Editor</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> /* Custom styles */ .waveform { background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%); height: 100px; border-radius: 8px; position: relative; overflow: hidden; } .waveform::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.3) 100%); animation: wave 2s linear infinite; background-size: 200% 100%; } @keyframes wave { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } } .piano-roll { background-color: #1e293b; border-radius: 8px; overflow: hidden; } .piano-key { border-bottom: 1px solid #334155; height: 20px; position: relative; } .piano-key.white { background-color: #f8fafc; } .piano-key.black { background-color: #0f172a; height: 12px; width: 60%; margin-left: 40%; z-index: 2; position: absolute; top: 0; } .note-block { background-color: #3b82f6; border-radius: 4px; position: absolute; z-index: 3; cursor: pointer; } .sheet-music { background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); } .dropzone { border: 2px dashed #cbd5e1; transition: all 0.3s ease; } .dropzone.active { border-color: #3b82f6; background-color: #eff6ff; } /* Animation for loading */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: #f1f5f9; } ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #94a3b8; } /* Page transitions */ .page-enter-active, .page-leave-active { transition: opacity 0.3s, transform 0.3s; } .page-enter-from, .page-leave-to { opacity: 0; transform: translateY(10px); } </style> </head> <body class="bg-gray-50 text-gray-900 font-sans"> <!-- Navigation --> <nav class="bg-white shadow-sm fixed w-full z-10"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="flex justify-between h-16"> <div class="flex items-center"> <div class="flex-shrink-0 flex items-center"> <i class="fas fa-music text-purple-600 text-2xl mr-2"></i> <span class="text-xl font-bold text-gray-900">Femdio</span> </div> <div class="hidden sm:ml-6 sm:flex sm:space-x-8"> <a href="#" class="border-purple-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" id="home-link">Home</a> <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" id="upload-link">Upload</a> <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" id="projects-link">My Projects</a> <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium" id="live-link">Live Transcribe</a> </div> </div> <div class="hidden sm:ml-6 sm:flex sm:items-center"> <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors" id="login-btn"> Sign In </button> </div> <div class="-mr-2 flex items-center sm:hidden"> <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-purple-500" id="mobile-menu-button"> <span class="sr-only">Open main menu</span> <i class="fas fa-bars"></i> </button> </div> </div> </div> <!-- Mobile menu --> <div class="hidden sm:hidden bg-white shadow-lg" id="mobile-menu"> <div class="pt-2 pb-3 space-y-1"> <a href="#" class="bg-purple-50 border-purple-500 text-purple-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Home</a> <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Upload</a> <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">My Projects</a> <a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Live Transcribe</a> <div class="mt-4 pl-3 pr-4 py-2"> <button class="w-full bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md text-base font-medium transition-colors"> Sign In </button> </div> </div> </div> </nav> <!-- Main Content --> <main class="pt-20 pb-12 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"> <!-- Home Page --> <div id="home-page" class="page"> <div class="text-center py-12"> <h1 class="text-4xl font-extrabold text-gray-900 sm:text-5xl sm:tracking-tight lg:text-6xl"> Transform Your Music with AI </h1> <p class="mt-5 max-w-xl mx-auto text-xl text-gray-500"> Upload any audio and instantly get sheet music, MIDI files, and separated stems powered by AI. </p> <div class="mt-8 flex justify-center space-x-4"> <button class="bg-purple-600 hover:bg-purple-700 text-white px-6 py-3 rounded-md text-lg font-medium transition-colors" id="get-started-btn"> Get Started </button> <button class="bg-white hover:bg-gray-50 text-purple-600 border border-purple-600 px-6 py-3 rounded-md text-lg font-medium transition-colors"> Watch Demo </button> </div> </div> <div class="mt-16"> <h2 class="text-2xl font-bold text-gray-900 mb-8 text-center">How It Works</h2> <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> <div class="bg-white p-6 rounded-lg shadow-sm hover:shadow-md transition-shadow"> <div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mb-4 mx-auto"> <i class="fas fa-upload text-purple-600 text-2xl"></i> </div> <h3 class="text-lg font-medium text-gray-900 mb-2 text-center">1. Upload Audio</h3> <p class="text-gray-500 text-center"> Drag and drop your audio file or record directly from your microphone. </p> </div> <div class="bg-white p-6 rounded-lg shadow-sm hover:shadow-md transition-shadow"> <div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mb-4 mx-auto"> <i class="fas fa-brain text-purple-600 text-2xl"></i> </div> <h3 class="text-lg font-medium text-gray-900 mb-2 text-center">2. AI Processing</h3> <p class="text-gray-500 text-center"> Our advanced AI analyzes your music and separates it into individual stems. </p> </div> <div class="bg-white p-6 rounded-lg shadow-sm hover:shadow-md transition-shadow"> <div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mb-4 mx-auto"> <i class="fas fa-download text-purple-600 text-2xl"></i> </div> <h3 class="text-lg font-medium text-gray-900 mb-2 text-center">3. Download & Edit</h3> <p class="text-gray-500 text-center"> Get MIDI files, sheet music, or stems ready for your DAW or notation software. </p> </div> </div> </div> <div class="mt-20 bg-gradient-to-r from-purple-600 to-pink-500 rounded-xl p-8 text-white"> <div class="max-w-3xl mx-auto text-center"> <h2 class="text-3xl font-bold mb-4">Ready to revolutionize your music workflow?</h2> <p class="text-xl mb-6">Join thousands of musicians using Femdio to transcribe, arrange, and remix music with AI.</p> <button class="bg-white text-purple-600 hover:bg-gray-100 px-8 py-3 rounded-md text-lg font-medium transition-colors"> Start Free Trial </button> </div> </div> </div> <!-- Upload Page --> <div id="upload-page" class="page hidden"> <div class="bg-white shadow rounded-lg p-6"> <h2 class="text-2xl font-bold text-gray-900 mb-6">Upload Audio</h2> <div class="grid grid-cols-1 lg:grid-cols-2 gap-8"> <div> <div id="dropzone" class="dropzone p-12 rounded-lg mb-6 flex flex-col items-center justify-center cursor-pointer"> <i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-4"></i> <p class="text-lg font-medium text-gray-700 mb-2">Drag & drop your audio file here</p> <p class="text-gray-500 mb-4">or</p> <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors" id="browse-btn"> Browse Files </button> <input type="file" id="file-input" class="hidden" accept="audio/*"> <p class="text-sm text-gray-500 mt-4">Supports: MP3, WAV, FLAC, M4A (Max 50MB)</p> </div> <div class="bg-gray-50 p-4 rounded-lg"> <h3 class="font-medium text-gray-900 mb-3">Recent Uploads</h3> <div class="space-y-3"> <div class="flex items-center p-2 hover:bg-gray-100 rounded cursor-pointer"> <i class="fas fa-music text-gray-400 mr-3"></i> <div class="flex-1 min-w-0"> <p class="text-sm font-medium text-gray-900 truncate">Piano_Composition.mp3</p> <p class="text-xs text-gray-500">2 days ago • 3.2 MB</p> </div> <button class="text-purple-600 hover:text-purple-800"> <i class="fas fa-redo"></i> </button> </div> <div class="flex items-center p-2 hover:bg-gray-100 rounded cursor-pointer"> <i class="fas fa-music text-gray-400 mr-3"></i> <div class="flex-1 min-w-0"> <p class="text-sm font-medium text-gray-900 truncate">Guitar_Riff.wav</p> <p class="text-xs text-gray-500">1 week ago • 12.5 MB</p> </div> <button class="text-purple-600 hover:text-purple-800"> <i class="fas fa-redo"></i> </button> </div> </div> </div> </div> <div> <div class="bg-gray-50 p-6 rounded-lg"> <h3 class="font-medium text-gray-900 mb-4">Processing Options</h3> <div class="space-y-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Output Format</label> <select class="block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> <option>MIDI + Sheet Music</option> <option>MIDI Only</option> <option>Sheet Music Only</option> <option>MIDI + Stems</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Instrument Detection</label> <select class="block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> <option>Auto-detect (Recommended)</option> <option>Piano</option> <option>Guitar</option> <option>Drums</option> <option>Vocals</option> <option>Bass</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Complexity Level</label> <div class="flex items-center space-x-4"> <div class="flex items-center"> <input id="simple" name="complexity" type="radio" class="h-4 w-4 text-purple-600 focus:ring-purple-500" checked> <label for="simple" class="ml-2 block text-sm text-gray-700">Simple</label> </div> <div class="flex items-center"> <input id="medium" name="complexity" type="radio" class="h-4 w-4 text-purple-600 focus:ring-purple-500"> <label for="medium" class="ml-2 block text-sm text-gray-700">Medium</label> </div> <div class="flex items-center"> <input id="complex" name="complexity" type="radio" class="h-4 w-4 text-purple-600 focus:ring-purple-500"> <label for="complex" class="ml-2 block text-sm text-gray-700">Complex</label> </div> </div> </div> <div class="pt-2"> <div class="flex items-center"> <input id="stem-separation" type="checkbox" class="h-4 w-4 text-purple-600 focus:ring-purple-500 rounded"> <label for="stem-separation" class="ml-2 block text-sm text-gray-700">Separate Stems (Vocals, Drums, Bass, etc.)</label> </div> </div> <div class="pt-4"> <button class="w-full bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors flex items-center justify-center" id="process-btn" disabled> <i class="fas fa-cog animate-spin mr-2 hidden" id="processing-icon"></i> <span id="process-text">Process Audio</span> </button> </div> </div> </div> </div> </div> </div> <!-- Processing Modal --> <div id="processing-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> <div class="bg-white rounded-lg p-6 max-w-md w-full"> <div class="flex justify-between items-center mb-4"> <h3 class="text-lg font-medium text-gray-900">Processing Your Audio</h3> <button id="close-modal" class="text-gray-400 hover:text-gray-500"> <i class="fas fa-times"></i> </button> </div> <div class="mb-4"> <div class="flex justify-between text-sm text-gray-500 mb-1"> <span>Transcribing melody</span> <span>25%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-purple-600 h-2.5 rounded-full" style="width: 25%"></div> </div> </div> <div class="mb-4"> <div class="flex justify-between text-sm text-gray-500 mb-1"> <span>Detecting chords</span> <span>10%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-purple-600 h-2.5 rounded-full" style="width: 10%"></div> </div> </div> <div class="mb-6"> <div class="flex justify-between text-sm text-gray-500 mb-1"> <span>Separating stems</span> <span>5%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-purple-600 h-2.5 rounded-full" style="width: 5%"></div> </div> </div> <div class="bg-purple-50 border-l-4 border-purple-400 p-4"> <div class="flex"> <div class="flex-shrink-0"> <i class="fas fa-info-circle text-purple-400"></i> </div> <div class="ml-3"> <p class="text-sm text-purple-700"> Processing may take 2-5 minutes depending on file length and complexity. You'll receive an email when it's ready. </p> </div> </div> </div> </div> </div> </div> <!-- Projects Page --> <div id="projects-page" class="page hidden"> <div class="bg-white shadow rounded-lg p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-900">My Projects</h2> <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors"> <i class="fas fa-plus mr-2"></i> New Project </button> </div> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-medium text-gray-900">Piano Composition</h3> <p class="text-sm text-gray-500">Last edited 2 days ago</p> </div> <div class="dropdown relative"> <button class="text-gray-400 hover:text-gray-500"> <i class="fas fa-ellipsis-v"></i> </button> <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10 hidden"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Edit</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Export</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Duplicate</a> <div class="border-t border-gray-100"></div> <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100">Delete</a> </div> </div> </div> <div class="mt-3"> <div class="waveform"></div> </div> <div class="mt-3 flex space-x-2"> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">MIDI</span> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">Sheet</span> </div> </div> </div> <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-medium text-gray-900">Guitar Riff</h3> <p class="text-sm text-gray-500">Last edited 1 week ago</p> </div> <div class="dropdown relative"> <button class="text-gray-400 hover:text-gray-500"> <i class="fas fa-ellipsis-v"></i> </button> <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10 hidden"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Edit</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Export</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Duplicate</a> <div class="border-t border-gray-100"></div> <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100">Delete</a> </div> </div> </div> <div class="mt-3"> <div class="waveform"></div> </div> <div class="mt-3 flex space-x-2"> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">MIDI</span> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">Tablature</span> </div> </div> </div> <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-medium text-gray-900">Full Band Track</h3> <p class="text-sm text-gray-500">Last edited 3 weeks ago</p> </div> <div class="dropdown relative"> <button class="text-gray-400 hover:text-gray-500"> <i class="fas fa-ellipsis-v"></i> </button> <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10 hidden"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Edit</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Export</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Duplicate</a> <div class="border-t border-gray-100"></div> <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100">Delete</a> </div> </div> </div> <div class="mt-3"> <div class="waveform"></div> </div> <div class="mt-3 flex space-x-2"> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">MIDI</span> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">Sheet</span> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-pink-100 text-pink-800">Stems</span> </div> </div> </div> <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-medium text-gray-900">Vocal Melody</h3> <p class="text-sm text-gray-500">Last edited 1 month ago</p> </div> <div class="dropdown relative"> <button class="text-gray-400 hover:text-gray-500"> <i class="fas fa-ellipsis-v"></i> </button> <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10 hidden"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Edit</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Export</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Duplicate</a> <div class="border-t border-gray-100"></div> <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100">Delete</a> </div> </div> </div> <div class="mt-3"> <div class="waveform"></div> </div> <div class="mt-3 flex space-x-2"> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">MIDI</span> </div> </div> </div> <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-medium text-gray-900">Drum Pattern</h3> <p class="text-sm text-gray-500">Last edited 2 months ago</p> </div> <div class="dropdown relative"> <button class="text-gray-400 hover:text-gray-500"> <i class="fas fa-ellipsis-v"></i> </button> <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10 hidden"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Edit</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Export</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Duplicate</a> <div class="border-t border-gray-100"></div> <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100">Delete</a> </div> </div> </div> <div class="mt-3"> <div class="waveform"></div> </div> <div class="mt-3 flex space-x-2"> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">MIDI</span> <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">Drum Grid</span> </div> </div> </div> <div class="border-2 border-dashed border-gray-300 rounded-lg hover:border-gray-400 transition-colors flex flex-col items-center justify-center p-12 cursor-pointer"> <i class="fas fa-plus text-gray-400 text-2xl mb-2"></i> <p class="text-gray-500">Create new project</p> </div> </div> </div> </div> <!-- Live Transcribe Page --> <div id="live-page" class="page hidden"> <div class="bg-white shadow rounded-lg p-6"> <h2 class="text-2xl font-bold text-gray-900 mb-6">Live Transcription</h2> <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> <div class="lg:col-span-2"> <div class="bg-gray-800 rounded-lg p-4 mb-6"> <div class="flex justify-between items-center mb-4"> <h3 class="text-lg font-medium text-white">Input</h3> <div class="flex items-center space-x-4"> <div class="flex items-center"> <span class="h-3 w-3 rounded-full bg-red-500 animate-pulse mr-2"></span> <span class="text-sm text-gray-300">Not Connected</span> </div> <button class="bg-purple-600 hover:bg-purple-700 text-white px-3 py-1 rounded-md text-sm font-medium transition-colors" id="connect-btn"> Connect </button> </div> </div> <div class="bg-black rounded p-4"> <div class="flex justify-between text-xs text-gray-400 mb-2"> <span>Input Level</span> <span>- dB</span> </div> <div class="w-full bg-gray-700 rounded-full h-2 mb-4"> <div class="bg-purple-500 h-2 rounded-full" style="width: 0%"></div> </div> <div class="grid grid-cols-5 gap-2 mb-4"> <button class="bg-gray-700 hover:bg-gray-600 text-white px-2 py-1 rounded text-xs font-medium transition-colors">Mic</button> <button class="bg-gray-700 hover:bg-gray-600 text-white px-2 py-1 rounded text-xs font-medium transition-colors">Line In</button> <button class="bg-gray-700 hover:bg-gray-600 text-white px-2 py-1 rounded text-xs font-medium transition-colors">Guitar</button> <button class="bg-gray-700 hover:bg-gray-600 text-white px-2 py-1 rounded text-xs font-medium transition-colors">Piano</button> <button class="bg-gray-700 hover:bg-gray-600 text-white px-2 py-1 rounded text-xs font-medium transition-colors">Drums</button> </div> <div class="flex justify-center"> <button class="bg-red-600 hover:bg-red-700 text-white px-6 py-3 rounded-full text-lg font-medium transition-colors flex items-center" id="record-btn" disabled> <i class="fas fa-microphone mr-2"></i> <span>Start Recording</span> </button> </div> </div> </div> <div class="bg-white border border-gray-200 rounded-lg p-4"> <div class="flex justify-between items-center mb-4"> <h3 class="text-lg font-medium text-gray-900">Transcription</h3> <div class="flex items-center space-x-2"> <button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-3 py-1 rounded-md text-sm font-medium transition-colors"> <i class="fas fa-redo mr-1"></i> Retry </button> <button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-3 py-1 rounded-md text-sm font-medium transition-colors"> <i class="fas fa-cog mr-1"></i> Settings </button> </div> </div> <div class="piano-roll mb-4" style="height: 300px;"> <!-- Piano keys --> <div class="piano-key white"></div> <div class="piano-key black"></div> <div class="piano-key white"></div> <div class="piano-key black"></div> <div class="piano-key white"></div> <div class="piano-key white"></div> <div class="piano-key black"></div> <div class="piano-key white"></div> <div class="piano-key black"></div> <div class="piano-key white"></div> <div class="piano-key black"></div> <div class="piano-key white"></div> <!-- Example notes --> <div class="note-block" style="left: 10%; width: 15%; bottom: 60px;"></div> <div class="note-block" style="left: 30%; width: 10%; bottom: 80px;"></div> <div class="note-block" style="left: 45%; width: 12%; bottom: 100px;"></div> <div class="note-block" style="left: 65%; width: 8%; bottom: 120px;"></div> <div class="note-block" style="left: 80%; width: 15%; bottom: 60px;"></div> </div> <div class="flex justify-between items-center"> <div class="flex items-center space-x-4"> <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors"> <i class="fas fa-save mr-1"></i> Save </button> <button class="bg-white hover:bg-gray-50 text-purple-600 border border-purple-600 px-4 py-2 rounded-md text-sm font-medium transition-colors"> <i class="fas fa-download mr-1"></i> Export </button> </div> <div class="flex items-center space-x-2"> <span class="text-sm text-gray-500">BPM: 120</span> <span class="text-sm text-gray-500">Key: C Major</span> </div> </div> </div> </div> <div> <div class="bg-white border border-gray-200 rounded-lg p-4 mb-6"> <h3 class="text-lg font-medium text-gray-900 mb-4">Output Options</h3> <div class="space-y-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Output Format</label> <select class="block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> <option>MIDI</option> <option>Sheet Music</option> <option>Both</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Time Signature</label> <select class="block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> <option>4/4</option> <option>3/4</option> <option>6/8</option> <option>Custom...</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Quantize</label> <select class="block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> <option>1/4 Note</option> <option>1/8 Note</option> <option>1/16 Note</option> <option>None</option> </select> </div> <div class="pt-2"> <div class="flex items-center"> <input id="detect-chords" type="checkbox" class="h-4 w-4 text-purple-600 focus:ring-purple-500 rounded" checked> <label for="detect-chords" class="ml-2 block text-sm text-gray-700">Detect Chords</label> </div> </div> <div class="pt-2"> <div class="flex items-center"> <input id="auto-save" type="checkbox" class="h-4 w-4 text-purple-600 focus:ring-purple-500 rounded"> <label for="auto-save" class="ml-2 block text-sm text-gray-700">Auto-save segments</label> </div> </div> </div> </div> <div class="bg-white border border-gray-200 rounded-lg p-4"> <h3 class="text-lg font-medium text-gray-900 mb-4">Sheet Music Preview</h3> <div class="sheet-music"> <div class="flex justify-center mb-2"> <div class="w-16 h-1 bg-black"></div> </div> <div class="flex justify-center mb-2"> <div class="w-8 h-8 rounded-full border-2 border-black"></div> </div> <div class="flex justify-center mb-2"> <div class="w-16 h-1 bg-black"></div> </div> <div class="flex justify-center mb-2"> <div class="w-8 h-8 rounded-full border-2 border-black"></div> </div> <div class="flex justify-center mb-2"> <div class="w-16 h-1 bg-black"></div> </div> </div> <div class="mt-4 flex justify-between"> <button class="text-gray-500 hover:text-gray-700"> <i class="fas fa-chevron-left"></i> </button> <span class="text-sm text-gray-500">Page 1 of 1</span> <button class="text-gray-500 hover:text-gray-700"> <i class="fas fa-chevron-right"></i> </button> </div> </div> </div> </div> </div> </div> </main> <!-- Footer --> <footer class="bg-white border-t border-gray-200"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> <div class="grid grid-cols-2 md:grid-cols-4 gap-8"> <div> <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase mb-4">Product</h3> <ul class="space-y-3"> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Features</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Pricing</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">API</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Integrations</a></li> </ul> </div> <div> <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase mb-4">Resources</h3> <ul class="space-y-3"> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Documentation</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Tutorials</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Blog</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Support</a></li> </ul> </div> <div> <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase mb-4">Company</h3> <ul class="space-y-3"> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">About</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Careers</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Privacy</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Terms</a></li> </ul> </div> <div> <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase mb-4">Connect</h3> <ul class="space-y-3"> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Twitter</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Instagram</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">YouTube</a></li> <li><a href="#" class="text-sm text-gray-500 hover:text-gray-900">Discord</a></li> </ul> </div> </div> <div class="mt-12 border-t border-gray-200 pt-8 flex flex-col md:flex-row justify-between items-center"> <p class="text-sm text-gray-500">© 2023 Femdio. All rights reserved.</p> <div class="mt-4 md:mt-0 flex space-x-6"> <a href="#" class="text-gray-400 hover:text-gray-500"> <i class="fab fa-twitter"></i> </a> <a href="#" class="text-gray-400 hover:text-gray-500"> <i class="fab fa-instagram"></i> </a> <a href="#" class="text-gray-400 hover:text-gray-500"> <i class="fab fa-youtube"></i> </a> <a href="#" class="text-gray-400 hover:text-gray-500"> <i class="fab fa-github"></i> </a> </div> </div> </div> </footer> <script> // Mobile menu toggle document.getElementById('mobile-menu-button').addEventListener('click', function() { const menu = document.getElementById('mobile-menu'); menu.classList.toggle('hidden'); }); // Navigation const pages = { 'home-link': 'home-page', 'upload-link': 'upload-page', 'projects-link': 'projects-page', 'live-link': 'live-page', 'get-started-btn': 'upload-page', 'login-btn': 'login-page' }; Object.keys(pages).forEach(buttonId => { document.getElementById(buttonId)?.addEventListener('click', function(e) { e.preventDefault(); // Hide all pages document.querySelectorAll('.page').forEach(page => { page.classList.add('hidden'); }); // Show selected page const pageId = pages[buttonId]; document.getElementById(pageId)?.classList.remove('hidden'); // Update active nav link document.querySelectorAll('nav a').forEach(link => { link.classList.remove('border-purple-500', 'text-gray-900'); link.classList.add('border-transparent', 'text-gray-500'); }); if (buttonId.includes('-link')) { const activeLink = document.getElementById(buttonId); activeLink.classList.remove('border-transparent', 'text-gray-500'); activeLink.classList.add('border-purple-500', 'text-gray-900'); } }); }); // File upload functionality const dropzone = document.getElementById('dropzone'); const fileInput = document.getElementById('file-input'); const browseBtn = document.getElementById('browse-btn'); const processBtn = document.getElementById('process-btn'); ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => { dropzone.addEventListener(eventName, preventDefaults, false); }); function preventDefaults(e) { e.preventDefault(); e.stopPropagation(); } ['dragenter', 'dragover'].forEach(eventName => { dropzone.addEventListener(eventName, highlight, false); }); ['dragleave', 'drop'].forEach(eventName => { dropzone.addEventListener(eventName, unhighlight, false); }); function highlight() { dropzone.classList.add('active'); } function unhighlight() { dropzone.classList.remove('active'); } dropzone.addEventListener('drop', handleDrop, false); function handleDrop(e) { const dt = e.dataTransfer; const files = dt.files; handleFiles(files); } browseBtn.addEventListener('click', function() { fileInput.click(); }); fileInput.addEventListener('change', function() { handleFiles(this.files); }); function handleFiles(files) { if (files.length > 0) { const file = files[0]; if (file.type.includes('audio/') || file.name.match(/\.(mp3|wav|flac|m4a)$/i)) { // Valid audio file dropzone.innerHTML = ` <i class="fas fa-check-circle text-green-500 text-4xl mb-2"></i> <p class="text-lg font-medium text-gray-700 mb-1">${file.name}</p> <p class="text-sm text-gray-500">${(file.size / (1024 * 1024)).toFixed(2)} MB</p> `; processBtn.disabled = false; } else { // Invalid file type dropzone.innerHTML = ` <i class="fas fa-times-circle text-red-500 text-4xl mb-2"></i> <p class="text-lg font-medium text-gray-700 mb-1">Invalid file type</p> <p class="text-sm text-gray-500">Please upload an audio file (MP3, WAV, FLAC, M4A)</p> <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors mt-2" id="browse-btn"> Try Again </button> `; processBtn.disabled = true; } } } // Processing modal const processingModal = document.getElementById('processing-modal'); const closeModal = document.getElementById('close-modal'); processBtn.addEventListener('click', function() { processingModal.classList.remove('hidden'); document.getElementById('processing-icon').classList.remove('hidden'); document.getElementById('process-text').textContent = 'Processing...'; processBtn.disabled = true; // Simulate processing let progress = 0; const interval = setInterval(() => { progress += 5; const progressBars = document.querySelectorAll('#processing-modal .bg-purple-600'); if (progress <= 100) { progressBars[0].style.width = `${Math.min(progress, 100)}%`; progressBars[1].style.width = `${Math.min(progress - 15, 100)}%`; progressBars[2].style.width = `${Math.min(progress - 20, 100)}%`; // Update percentages document.querySelectorAll('#processing-modal .flex.justify-between span:last-child').forEach((span, index) => { let percent = progress; if (index === 1) percent -= 15; if (index === 2) percent -= 20; span.textContent = `${Math.min(Math.max(percent, 0), 100)}%`; }); } else { clearInterval(interval); setTimeout(() => { processingModal.classList.add('hidden'); document.getElementById('processing-icon').classList.add('hidden'); document.getElementById('process-text').textContent = 'Process Audio'; processBtn.disabled = false; // Show success message (you would route to the editor page in a real app) alert('Processing complete! Your audio has been transcribed.'); }, 500); } }, 200); }); closeModal.addEventListener('click', function() { processingModal.classList.add('hidden'); }); // Dropdown menus document.querySelectorAll('.dropdown button').forEach(button => { button.addEventListener('click', function() { const menu = this.nextElementSibling; menu.classList.toggle('hidden'); // Close when clicking outside document.addEventListener('click', function closeMenu(e) { if (!menu.contains(e.target) && e.target !== button) { menu.classList.add('hidden'); document.removeEventListener('click', closeMenu); } }); }); }); // Connect button for live transcribe document.getElementById('connect-btn')?.addEventListener('click', function() { const statusDot = this.parentElement.querySelector('.bg-red-500'); const statusText = this.parentElement.querySelector('span:last-child'); if (statusDot.classList.contains('bg-red-500')) { statusDot.classList.remove('bg-red-500', 'animate-pulse'); statusDot.classList.add('bg-green-500'); statusText.textContent = 'Connected'; this.textContent = 'Disconnect'; document.getElementById('record-btn').disabled = false; } else { statusDot.classList.remove('bg-green-500'); statusDot.classList.add('bg-red-500', 'animate-pulse'); statusText.textContent = 'Not Connected'; this.textContent = 'Connect'; document.getElementById('record-btn').disabled = true; } }); // Record button for live transcribe document.getElementById('record-btn')?.addEventListener('click', function() { const inputLevel = document.querySelector('#live-page .bg-purple-500'); let level = 0; let increasing = true; if (this.textContent.includes('Start')) { this.innerHTML = '<i class="fas fa-stop mr-2"></i><span>Stop Recording</span>'; // Simulate input level const interval = setInterval(() => { if (increasing) { level += 5; if (level >= 100) increasing = false; } else { level -= 5; if (level <= 20) increasing = true; } inputLevel.style.width = `${level}%`; // Update dB text const dB = Math.floor(level / 100 * 60) - 60; document.querySelector('#live-page .text-gray-400:last-child').textContent = `${dB} dB`; // Add random notes to piano roll if (Math.random() > 0.7) { const pianoRoll = document.querySelector('.piano-roll'); const noteHeight = 20; const notePositions = [60, 80, 100, 120]; const notePosition = notePositions[Math.floor(Math.random() * notePositions.length)]; const note = document.createElement('div'); note.className = 'note-block'; note.style.left = `${Math.random() * 80}%`; note.style.width = `${5 + Math.random() * 10}%`; note.style.bottom = `${notePosition}px`; pianoRoll.appendChild(note); // Remove note after animation setTimeout(() => { note.remove(); }, 1000); } }, 100); // Stop recording this.addEventListener('click', function stopRecording() { clearInterval(interval); this.innerHTML = '<i class="fas fa-microphone mr-2"></i><span>Start Recording</span>'; inputLevel.style.width = '0%'; document.querySelector('#live-page .text-gray-400:last-child').textContent = '- dB'; this.removeEventListener('click', stopRecording); }, { once: true }); } }); </script> <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Kraftycoder/mr-grey" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Femdio - AI Music Transcription & MIDI Editor</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Custom styles */
.waveform {
background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
height: 100px;
border-radius: 8px;
position: relative;
overflow: hidden;
}
.waveform::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg,
rgba(255,255,255,0.3) 0%,
rgba(255,255,255,0.1) 50%,
rgba(255,255,255,0.3) 100%);
animation: wave 2s linear infinite;
background-size: 200% 100%;
}
@keyframes wave {
0% { background-position: 0% 50%; }
100% { background-position: 200% 50%; }
}
.piano-roll {
background-color: #1e293b;
border-radius: 8px;
overflow: hidden;
}
.piano-key {
border-bottom: 1px solid #334155;
height: 20px;
position: relative;
}
.piano-key.white {
background-color: #f8fafc;
}
.piano-key.black {
background-color: #0f172a;
height: 12px;
width: 60%;
margin-left: 40%;
z-index: 2;
position: absolute;
top: 0;
}
.note-block {
background-color: #3b82f6;
border-radius: 4px;
position: absolute;
z-index: 3;
cursor: pointer;
}
.sheet-music {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.dropzone {
border: 2px dashed #cbd5e1;
transition: all 0.3s ease;
}
.dropzone.active {
border-color: #3b82f6;
background-color: #eff6ff;
}
/* Animation for loading */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Custom scrollbar */