File size: 7,659 Bytes
26dda4e
 
 
 
 
 
 
 
 
 
 
 
c915ad1
 
26dda4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c915ad1
 
26dda4e
 
 
 
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
<!DOCTYPE html>
<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>