Spaces:
Running
Running
File size: 29,249 Bytes
d0916a3 16838eb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChordCraft - AI Music Production Studio</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#00f0ff',
secondary: '#ff00f0',
accent: '#8a2be2',
dark: '#0a0a1a',
darker: '#050510',
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
mono: ['Fira Code', 'monospace'],
},
}
}
}
</script>
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');
body {
background-color: #050510;
color: #e0e0e0;
font-family: 'Inter', sans-serif;
}
.gradient-text {
background: linear-gradient(90deg, #00f0ff, #ff00f0);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.gradient-border {
position: relative;
border-radius: 0.5rem;
}
.gradient-border::before {
content: '';
position: absolute;
top: -1px;
left: -1px;
right: -1px;
bottom: -1px;
border-radius: 0.5rem;
background: linear-gradient(45deg, #00f0ff, #ff00f0, #8a2be2);
z-index: -1;
}
.waveform {
background: linear-gradient(90deg, rgba(0,240,255,0.1), rgba(138,43,226,0.3), rgba(255,0,240,0.1));
background-size: 200% 100%;
animation: waveformAnimation 3s infinite linear;
}
@keyframes waveformAnimation {
0% { background-position: 0% 50%; }
100% { background-position: 200% 50%; }
}
.neon-shadow {
box-shadow: 0 0 10px rgba(0, 240, 255, 0.5),
0 0 20px rgba(255, 0, 240, 0.3);
}
.neon-shadow-hover:hover {
box-shadow: 0 0 15px rgba(0, 240, 255, 0.7),
0 0 25px rgba(255, 0, 240, 0.5);
}
.scrollbar-custom::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.scrollbar-custom::-webkit-scrollbar-track {
background: rgba(10, 10, 26, 0.5);
}
.scrollbar-custom::-webkit-scrollbar-thumb {
background: linear-gradient(#00f0ff, #ff00f0);
border-radius: 3px;
}
</style>
</head>
<body class="h-screen flex flex-col overflow-hidden">
<!-- Header -->
<header class="bg-darker border-b border-gray-800 px-4 py-3 flex items-center justify-between sticky top-0 z-50">
<div class="flex items-center space-x-4">
<div class="flex items-center">
<h1 class="text-2xl font-bold gradient-text">CC</h1>
<span class="ml-2 text-xl font-semibold">ChordCraft</span>
</div>
<div class="hidden md:block">
<div class="flex items-center space-x-2 bg-dark rounded-full px-4 py-1 cursor-pointer hover:bg-gray-800 transition">
<i data-feather="music" class="w-4 h-4 text-primary"></i>
<span class="text-sm">Untitled Project</span>
<i data-feather="edit-2" class="w-4 h-4 text-gray-400"></i>
</div>
</div>
</div>
<div class="flex items-center space-x-3">
<button class="hidden md:flex items-center space-x-1 bg-dark hover:bg-gray-800 px-3 py-1.5 rounded-md transition">
<i data-feather="save" class="w-4 h-4 text-gray-300"></i>
<span class="text-sm">Save</span>
</button>
<button class="hidden md:flex items-center space-x-1 bg-dark hover:bg-gray-800 px-3 py-1.5 rounded-md transition">
<i data-feather="download" class="w-4 h-4 text-gray-300"></i>
<span class="text-sm">Export</span>
</button>
<button class="flex items-center space-x-1 bg-gradient-to-r from-primary to-secondary text-darker font-medium px-4 py-1.5 rounded-md transition hover:opacity-90">
<i data-feather="share-2" class="w-4 h-4"></i>
<span class="text-sm">Share</span>
</button>
<div class="relative">
<div class="w-8 h-8 rounded-full bg-gradient-to-r from-primary to-secondary flex items-center justify-center cursor-pointer">
<i data-feather="user" class="w-4 h-4 text-darker"></i>
</div>
<div class="hidden absolute right-0 mt-2 w-48 bg-dark rounded-md shadow-lg py-1 z-50 border border-gray-800">
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-800">Settings</a>
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-800">Billing</a>
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-800">Logout</a>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<div class="flex flex-1 overflow-hidden">
<!-- Left Panel - Project Manager -->
<aside class="w-64 bg-dark border-r border-gray-800 flex flex-col transition-all duration-300 ease-in-out" id="leftPanel">
<div class="p-4 border-b border-gray-800">
<h2 class="text-lg font-semibold flex items-center justify-between">
<span>Project Manager</span>
<button class="text-gray-400 hover:text-white" id="collapseLeft">
<i data-feather="chevron-left" class="w-5 h-5"></i>
</button>
</h2>
</div>
<div class="flex-1 overflow-y-auto scrollbar-custom p-4 space-y-4">
<!-- Projects Accordion -->
<div class="space-y-2">
<div class="flex items-center justify-between cursor-pointer">
<h3 class="font-medium text-gray-300">My Projects</h3>
<i data-feather="plus" class="w-4 h-4 text-gray-400"></i>
</div>
<div class="space-y-1 ml-2">
<div class="flex items-center justify-between p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Summer Vibes</span>
<span class="text-xs text-gray-400">2h ago</span>
</div>
<div class="flex items-center justify-between p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Dark Synth</span>
<span class="text-xs text-gray-400">1d ago</span>
</div>
<div class="flex items-center justify-between p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Jazz Improv</span>
<span class="text-xs text-gray-400">3d ago</span>
</div>
</div>
</div>
<!-- Audio Assets Accordion -->
<div class="space-y-2">
<div class="flex items-center justify-between cursor-pointer">
<h3 class="font-medium text-gray-300">Audio Assets</h3>
<i data-feather="chevron-down" class="w-4 h-4 text-gray-400"></i>
</div>
<div class="space-y-1 ml-2">
<div class="flex items-center justify-between p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Kick Drum.wav</span>
<button class="text-gray-400 hover:text-primary">
<i data-feather="play" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center justify-between p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Synth Lead.mp3</span>
<button class="text-gray-400 hover:text-primary">
<i data-feather="play" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center justify-between p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Bassline.wav</span>
<button class="text-gray-400 hover:text-primary">
<i data-feather="play" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<!-- AI Tools Accordion -->
<div class="space-y-2">
<div class="flex items-center justify-between cursor-pointer">
<h3 class="font-medium text-gray-300">AI Tools</h3>
<i data-feather="chevron-down" class="w-4 h-4 text-gray-400"></i>
</div>
<div class="space-y-1 ml-2">
<div class="p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Stem Separator</span>
</div>
<div class="p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Harmonic Analyzer</span>
</div>
<div class="p-2 rounded hover:bg-gray-800 cursor-pointer">
<span class="text-sm">Rhythm Generator</span>
</div>
</div>
</div>
</div>
<!-- File Upload Area -->
<div class="p-4 border-t border-gray-800">
<div class="gradient-border p-4 rounded-md text-center cursor-pointer hover:bg-gray-800 transition">
<i data-feather="upload" class="w-6 h-6 mx-auto text-primary"></i>
<p class="text-sm mt-2">Drag & drop audio files here</p>
<p class="text-xs text-gray-400 mt-1">or click to browse</p>
</div>
</div>
</aside>
<!-- Center Panel - Workspace -->
<main class="flex-1 flex flex-col bg-darker overflow-hidden">
<!-- Workspace Tabs -->
<div class="flex border-b border-gray-800">
<button class="flex-1 py-3 text-center font-medium border-b-2 border-primary text-primary">
Studio
</button>
<button class="flex-1 py-3 text-center font-medium text-gray-400 hover:text-white">
Code Editor
</button>
</div>
<!-- Transport Controls -->
<div class="bg-dark px-4 py-2 flex items-center justify-between border-b border-gray-800">
<div class="flex items-center space-x-3">
<button class="w-8 h-8 rounded-full bg-primary text-darker flex items-center justify-center hover:bg-opacity-90">
<i data-feather="play" class="w-4 h-4"></i>
</button>
<button class="w-8 h-8 rounded-full bg-gray-700 text-gray-300 flex items-center justify-center hover:bg-gray-600">
<i data-feather="pause" class="w-4 h-4"></i>
</button>
<button class="w-8 h-8 rounded-full bg-gray-700 text-gray-300 flex items-center justify-center hover:bg-gray-600">
<i data-feather="square" class="w-4 h-4"></i>
</button>
<button class="w-8 h-8 rounded-full bg-gray-700 text-gray-300 flex items-center justify-center hover:bg-gray-600">
<i data-feather="circle" class="w-4 h-4"></i>
</button>
<button class="w-8 h-8 rounded-full bg-gray-700 text-gray-300 flex items-center justify-center hover:bg-gray-600">
<i data-feather="repeat" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center space-x-4">
<div class="text-sm font-mono">0:00.000</div>
<button class="flex items-center space-x-1 bg-gradient-to-r from-primary to-secondary text-darker font-medium px-4 py-1 rounded-md transition hover:opacity-90 neon-shadow-hover">
<i data-feather="wand-2" class="w-4 h-4"></i>
<span>Analyze & Convert to Code</span>
</button>
</div>
</div>
<!-- Timeline -->
<div class="flex-1 overflow-auto scrollbar-custom">
<!-- Timeline Ruler -->
<div class="h-8 bg-dark sticky top-0 z-10 border-b border-gray-800 flex items-center px-4">
<div class="flex space-x-8">
<span class="text-xs text-gray-400">0:00</span>
<span class="text-xs text-gray-400">0:05</span>
<span class="text-xs text-gray-400">0:10</span>
<span class="text-xs text-gray-400">0:15</span>
</div>
</div>
<!-- Tracks -->
<div class="space-y-2 p-4">
<!-- Track 1 -->
<div class="flex h-16">
<div class="w-48 bg-dark rounded-l-md border border-gray-800 flex items-center px-3 space-x-2">
<button class="text-gray-400 hover:text-white">
<i data-feather="volume-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-yellow-400">
<i data-feather="star" class="w-4 h-4"></i>
</button>
<span class="text-sm truncate">Kick Drum</span>
<div class="ml-auto flex space-x-1">
<button class="text-gray-400 hover:text-red-500">
<i data-feather="mic-off" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-primary">
<i data-feather="headphones" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="flex-1 bg-dark border border-l-0 border-gray-800 rounded-r-md overflow-hidden relative">
<div class="waveform absolute inset-0 rounded-r-md"></div>
<div class="absolute left-20 w-32 h-full bg-gradient-to-r from-primary/20 to-transparent"></div>
</div>
</div>
<!-- Track 2 -->
<div class="flex h-16">
<div class="w-48 bg-dark rounded-l-md border border-gray-800 flex items-center px-3 space-x-2">
<button class="text-gray-400 hover:text-white">
<i data-feather="volume-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-yellow-400">
<i data-feather="star" class="w-4 h-4"></i>
</button>
<span class="text-sm truncate">Bassline</span>
<div class="ml-auto flex space-x-1">
<button class="text-gray-400 hover:text-red-500">
<i data-feather="mic-off" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-primary">
<i data-feather="headphones" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="flex-1 bg-dark border border-l-0 border-gray-800 rounded-r-md overflow-hidden relative">
<div class="waveform absolute inset-0 rounded-r-md"></div>
<div class="absolute left-40 w-48 h-full bg-gradient-to-r from-secondary/20 to-transparent"></div>
</div>
</div>
<!-- Track 3 -->
<div class="flex h-16">
<div class="w-48 bg-dark rounded-l-md border border-gray-800 flex items-center px-3 space-x-2">
<button class="text-gray-400 hover:text-white">
<i data-feather="volume-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-yellow-400">
<i data-feather="star" class="w-4 h-4"></i>
</button>
<span class="text-sm truncate">Synth Lead</span>
<div class="ml-auto flex space-x-1">
<button class="text-gray-400 hover:text-red-500">
<i data-feather="mic-off" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-primary">
<i data-feather="headphones" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="flex-1 bg-dark border border-l-0 border-gray-800 rounded-r-md overflow-hidden relative">
<div class="waveform absolute inset-0 rounded-r-md"></div>
<div class="absolute left-60 w-24 h-full bg-gradient-to-r from-accent/20 to-transparent"></div>
</div>
</div>
<!-- Track 4 (Empty) -->
<div class="flex h-16">
<div class="w-48 bg-dark rounded-l-md border border-gray-800 flex items-center px-3 space-x-2">
<button class="text-gray-400 hover:text-white">
<i data-feather="volume-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-yellow-400">
<i data-feather="star" class="w-4 h-4"></i>
</button>
<span class="text-sm text-gray-400 italic">Drag audio here</span>
</div>
<div class="flex-1 bg-dark border border-l-0 border-gray-800 rounded-r-md"></div>
</div>
</div>
</div>
</main>
<!-- Right Panel - AI Companion -->
<aside class="w-72 bg-dark border-l border-gray-800 flex flex-col transition-all duration-300 ease-in-out" id="rightPanel">
<div class="p-4 border-b border-gray-800">
<h2 class="text-lg font-semibold flex items-center justify-between">
<span>AI Companion</span>
<button class="text-gray-400 hover:text-white" id="collapseRight">
<i data-feather="chevron-right" class="w-5 h-5"></i>
</button>
</h2>
<div class="flex mt-2">
<button class="flex-1 py-1 text-center font-medium border-b-2 border-primary text-primary text-sm">
Analysis
</button>
<button class="flex-1 py-1 text-center font-medium text-gray-400 hover:text-white text-sm">
Inspector
</button>
</div>
</div>
<div class="flex-1 overflow-y-auto scrollbar-custom p-4 space-y-4">
<!-- Harmonic Analysis Card -->
<div class="gradient-border p-4 rounded-md">
<div class="flex items-center justify-between mb-3">
<h3 class="font-medium">Harmonic Analysis</h3>
<i data-feather="activity" class="w-5 h-5 text-primary"></i>
</div>
<div class="space-y-2">
<div class="flex items-center justify-between">
<span class="text-sm text-gray-300">Key</span>
<span class="text-sm font-mono">C minor</span>
</div>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-300">BPM</span>
<span class="text-sm font-mono">128</span>
</div>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-300">Time Signature</span>
<span class="text-sm font-mono">4/4</span>
</div>
<div class="mt-3">
<h4 class="text-xs text-gray-400 mb-1">Detected Chords</h4>
<div class="flex flex-wrap gap-1">
<span class="px-2 py-1 bg-gray-800 rounded text-xs">Cm7</span>
<span class="px-2 py-1 bg-gray-800 rounded text-xs">G#</span>
<span class="px-2 py-1 bg-gray-800 rounded text-xs">A#</span>
<span class="px-2 py-1 bg-gray-800 rounded text-xs">Fm</span>
<span class="px-2 py-1 bg-gray-800 rounded text-xs">D#7</span>
</div>
</div>
</div>
</div>
<!-- AI Suggestions Card -->
<div class="gradient-border p-4 rounded-md">
<div class="flex items-center justify-between mb-3">
<h3 class="font-medium">AI Suggestions</h3>
<i data-feather="zap" class="w-5 h-5 text-secondary"></i>
</div>
<div class="space-y-3">
<div class="flex items-start">
<div class="w-2 h-2 rounded-full bg-primary mt-1 mr-2"></div>
<p class="text-sm">Try resolving this F#dim chord to a Gm for smoother harmonic transition.</p>
</div>
<div class="flex items-start">
<div class="w-2 h-2 rounded-full bg-primary mt-1 mr-2"></div>
<p class="text-sm">The rhythm in measure 4 is slightly off-beat. Consider quantizing to 16th notes.</p>
</div>
<div class="flex items-start">
<div class="w-2 h-2 rounded-full bg-primary mt-1 mr-2"></div>
<p class="text-sm">Adding a high-pass filter to the bassline around 100Hz could reduce muddiness.</p>
</div>
</div>
</div>
<!-- Stem Separation Card -->
<div class="gradient-border p-4 rounded-md">
<div class="flex items-center justify-between mb-3">
<h3 class="font-medium">Stem Separation</h3>
<i data-feather="layers" class="w-5 h-5 text-accent"></i>
</div>
<div class="space-y-2">
<div class="flex items-center justify-between">
<span class="text-sm text-gray-300">Vocals</span>
<div class="w-24 bg-gray-800 rounded-full h-1.5">
<div class="bg-primary h-1.5 rounded-full" style="width: 92%"></div>
</div>
</div>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-300">Drums</span>
<div class="w-24 bg-gray-800 rounded-full h-1.5">
<div class="bg-primary h-1.5 rounded-full" style="width: 88%"></div>
</div>
</div>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-300">Bass</span>
<div class="w-24 bg-gray-800 rounded-full h-1.5">
<div class="bg-primary h-1.5 rounded-full" style="width: 85%"></div>
</div>
</div>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-300">Other</span>
<div class="w-24 bg-gray-800 rounded-full h-1.5">
<div class="bg-primary h-1.5 rounded-full" style="width: 78%"></div>
</div>
</div>
</div>
<button class="w-full mt-3 py-1.5 bg-gray-800 hover:bg-gray-700 rounded text-sm transition">
Extract Stems
</button>
</div>
</div>
<div class="p-4 border-t border-gray-800">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-gradient-to-r from-primary to-secondary flex items-center justify-center">
<i data-feather="cpu" class="w-4 h-4 text-darker"></i>
</div>
<div class="flex-1">
<div class="text-sm">AI Processing</div>
<div class="w-full bg-gray-800 rounded-full h-1 mt-1">
<div class="bg-gradient-to-r from-primary to-secondary h-1 rounded-full" style="width: 65%"></div>
</div>
</div>
</div>
</div>
</aside>
</div>
<script>
// Initialize AOS animations
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize Feather Icons
feather.replace();
// Panel collapse functionality
document.getElementById('collapseLeft').addEventListener('click', function() {
const panel = document.getElementById('leftPanel');
panel.classList.toggle('hidden');
panel.classList.toggle('md:block');
this.querySelector('i').setAttribute('data-feather', panel.classList.contains('hidden') ? 'chevron-right' : 'chevron-left');
feather.replace();
});
document.getElementById('collapseRight').addEventListener('click', function() {
const panel = document.getElementById('rightPanel');
panel.classList.toggle('hidden');
panel.classList.toggle('md:block');
this.querySelector('i').setAttribute('data-feather', panel.classList.contains('hidden') ? 'chevron-left' : 'chevron-right');
feather.replace();
});
// Simulate waveform animation
const waveforms = document.querySelectorAll('.waveform');
waveforms.forEach(wave => {
const duration = Math.random() * 2 + 3;
wave.style.animationDuration = `${duration}s`;
});
</script>
</body>
</html>
|