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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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Lyria Model Control Interface</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
    <style>
        :root {
            --primary-bg: #f0f0f0;
            --shadow-light: rgba(255, 255, 255, 0.8);
            --shadow-dark: rgba(0, 0, 0, 0.1);
            --display-color: #00ff88;
            --text-muted: #777777;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(145deg, #e8e8e8, #f5f5f5);
            min-height: 100vh;
            padding: 2rem;
            color: #333;
        }
        
        .neumorphic {
            background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
            border-radius: 16px;
            box-shadow: -8px -8px 16px var(--shadow-light),
                        8px 8px 16px var(--shadow-dark);
        }
        
        .neumorphic-inset {
            background: linear-gradient(145deg, #e0e0e0, #f0f0f0);
            border-radius: 16px;
            box-shadow: inset -4px -4px 8px var(--shadow-light),
                        inset 4px 4px 8px var(--shadow-dark);
        }
        
        .neumorphic-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
            box-shadow: -4px -4px 8px var(--shadow-light),
                        4px 4px 8px var(--shadow-dark);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .neumorphic-btn:active {
            box-shadow: inset -4px -4px 8px var(--shadow-light),
                        inset 4px 4px 8px var(--shadow-dark);
        }
        
        .neumorphic-btn:hover {
            transform: translateY(-2px);
            box-shadow: -6px -6px 12px var(--shadow-light),
                        6px 6px 12px var(--shadow-dark);
        }
        
        .neumorphic-knob {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
            box-shadow: -6px -6px 12px var(--shadow-light),
                        6px 6px 12px var(--shadow-dark);
            position: relative;
            cursor: pointer;
        }
        
        .knob-indicator {
            position: absolute;
            width: 2px;
            height: 15px;
            background-color: var(--text-muted);
            top: 5px;
            left: 50%;
            transform-origin: bottom center;
            transform: translateX(-50%) rotate(0deg);
        }
        
        .neumorphic-slider {
            -webkit-appearance: none;
            width: 4px;
            height: 80px;
            background: linear-gradient(145deg, #e0e0e0, #f0f0f0);
            box-shadow: inset -2px -2px 4px var(--shadow-light),
                        inset 2px 2px 4px var(--shadow-dark);
            border-radius: 2px;
            outline: none;
        }
        
        .neumorphic-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
            box-shadow: -2px -2px 4px var(--shadow-light),
                        2px 2px 4px var(--shadow-dark);
            cursor: pointer;
        }
        
        .display {
            background-color: #1a1a1a;
            color: var(--display-color);
            font-family: monospace;
            font-size: 14px;
            padding: 8px 12px;
            border-radius: 8px;
            box-shadow: inset -4px -4px 8px rgba(255, 255, 255, 0.05),
                        inset 4px 4px 8px rgba(0, 0, 0, 0.3);
            text-align: center;
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .waveform {
            height: 60px;
            width: 100%;
            position: relative;
            overflow: hidden;
        }
        
        .waveform-line {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--display-color);
            animation: wave 2s infinite ease-in-out;
        }
        
        @keyframes wave {
            0%, 100% { transform: scaleY(0.5); }
            50% { transform: scaleY(1.5); }
        }
        
        .module {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
        
        @keyframes fadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .patch-point {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: linear-gradient(145deg, #e0e0e0, #f0f0f0);
            box-shadow: -2px -2px 4px var(--shadow-light),
                        2px 2px 4px var(--shadow-dark);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .patch-point:hover {
            transform: scale(1.2);
        }
        
        .patch-point.active {
            background: var(--display-color);
            box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
        }
        
        @media (max-width: 768px) {
            .module-grid {
                grid-template-columns: 1fr !important;
            }
        }
    </style>
</head>
<body class="flex flex-col items-center">
    <div class="max-w-5xl w-full">
        <h1 class="text-2xl font-light tracking-widest text-center mb-8 text-gray-700">LYRIA MODEL CONTROL INTERFACE</h1>
        
        <div class="module-grid grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
            <!-- Oscillator Module -->
            <div class="module p-5 neumorphic" style="animation-delay: 100ms">
                <h2 class="text-xs uppercase tracking-wider font-medium text-gray-500 mb-4">OSCILLATOR</h2>
                <div class="flex flex-col items-center space-y-4">
                    <div class="neumorphic-knob">
                        <div class="knob-indicator" id="osc-freq-indicator"></div>
                    </div>
                    <span class="text-xs uppercase tracking-wider text-gray-500">FREQUENCY</span>
                    <div class="display w-full">440 Hz</div>
                    
                    <div class="flex space-x-6 mt-2">
                        <div class="flex flex-col items-center space-y-2">
                            <div class="neumorphic-knob">
                                <div class="knob-indicator" style="transform: translateX(-50%) rotate(45deg);"></div>
                            </div>
                            <span class="text-xs uppercase tracking-wider text-gray-500">WAVE</span>
                        </div>
                        <div class="flex flex-col items-center space-y-2">
                            <div class="neumorphic-knob">
                                <div class="knob-indicator" style="transform: translateX(-50%) rotate(-30deg);"></div>
                            </div>
                            <span class="text-xs uppercase tracking-wider text-gray-500">DETUNE</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Filter Module -->
            <div class="module p-5 neumorphic" style="animation-delay: 200ms">
                <h2 class="text-xs uppercase tracking-wider font-medium text-gray-500 mb-4">FILTER</h2>
                <div class="flex flex-col items-center space-y-4">
                    <div class="neumorphic-knob">
                        <div class="knob-indicator" style="transform: translateX(-50%) rotate(60deg);"></div>
                    </div>
                    <span class="text-xs uppercase tracking-wider text-gray-500">CUTOFF</span>
                    
                    <div class="flex space-x-6">
                        <div class="flex flex-col items-center space-y-2">
                            <div class="neumorphic-slider" id="filter-res-slider"></div>
                            <span class="text-xs uppercase tracking-wider text-gray-500">RES</span>
                        </div>
                        <div class="flex flex-col items-center space-y-2">
                            <div class="neumorphic-slider" style="transform: rotate(180deg);"></div>
                            <span class="text-xs uppercase tracking-wider text-gray-500">DRIVE</span>
                        </div>
                    </div>
                    
                    <div class="display w-full mt-2">LPF 12dB</div>
                </div>
            </div>
            
            <!-- Envelope Module -->
            <div class="module p-5 neumorphic" style="animation-delay: 300ms">
                <h2 class="text-xs uppercase tracking-wider font-medium text-gray-500 mb-4">ENVELOPE</h2>
                <div class="grid grid-cols-2 gap-4">
                    <div class="flex flex-col items-center space-y-2">
                        <div class="neumorphic-knob">
                            <div class="knob-indicator" style="transform: translateX(-50%) rotate(20deg);"></div>
                        </div>
                        <span class="text-xs uppercase tracking-wider text-gray-500">ATTACK</span>
                        <div class="display text-xs">25ms</div>
                    </div>
                    <div class="flex flex-col items-center space-y-2">
                        <div class="neumorphic-knob">
                            <div class="knob-indicator" style="transform: translateX(-50%) rotate(45deg);"></div>
                        </div>
                        <span class="text-xs uppercase tracking-wider text-gray-500">DECAY</span>
                        <div class="display text-xs">120ms</div>
                    </div>
                    <div class="flex flex-col items-center space-y-2">
                        <div class="neumorphic-slider"></div>
                        <span class="text-xs uppercase tracking-wider text-gray-500">SUSTAIN</span>
                        <div class="display text-xs">75%</div>
                    </div>
                    <div class="flex flex-col items-center space-y-2">
                        <div class="neumorphic-knob">
                            <div class="knob-indicator" style="transform: translateX(-50%) rotate(-15deg);"></div>
                        </div>
                        <span class="text-xs uppercase tracking-wider text-gray-500">RELEASE</span>
                        <div class="display text-xs">300ms</div>
                    </div>
                </div>
            </div>
            
            <!-- LFO Module -->
            <div class="module p-5 neumorphic" style="animation-delay: 400ms">
                <h2 class="text-xs uppercase tracking-wider font-medium text-gray-500 mb-4">LFO</h2>
                <div class="flex flex-col items-center space-y-4">
                    <div class="neumorphic-knob">
                        <div class="knob-indicator" style="transform: translateX(-50%) rotate(90deg);"></div>
                    </div>
                    <span class="text-xs uppercase tracking-wider text-gray-500">RATE</span>
                    
                    <div class="waveform neumorphic-inset">
                        <div class="waveform-line"></div>
                    </div>
                    
                    <div class="flex space-x-4 mt-2">
                        <button class="neumorphic-btn"></button>
                        <button class="neumorphic-btn"></button>
                        <button class="neumorphic-btn"></button>
                    </div>
                    
                    <div class="display w-full mt-2">SINE 2.5Hz</div>
                </div>
            </div>
            
            <!-- Effects Module -->
            <div class="module p-5 neumorphic" style="animation-delay: 500ms">
                <h2 class="text-xs uppercase tracking-wider font-medium text-gray-500 mb-4">EFFECTS</h2>
                <div class="grid grid-cols-2 gap-4">
                    <div class="flex flex-col items-center space-y-2">
                        <div class="neumorphic-knob">
                            <div class="knob-indicator" style="transform: translateX(-50%) rotate(30deg);"></div>
                        </div>
                        <span class="text-xs uppercase tracking-wider text-gray-500">DELAY</span>
                        <div class="display text-xs">250ms</div>
                    </div>
                    <div class="flex flex-col items-center space-y-2">
                        <div class="neumorphic-knob">
                            <div class="knob-indicator" style="transform: translateX(-50%) rotate(-45deg);"></div>
                        </div>
                        <span class="text-xs uppercase tracking-wider text-gray-500">REVERB</span>
                        <div class="display text-xs">1.2s</div>
                    </div>
                    <div class="flex flex-col items-center space-y-2">
                        <div class="neumorphic-slider"></div>
                        <span class="text-xs uppercase tracking-wider text-gray-500">CHORUS</span>
                        <div class="display text-xs">OFF</div>
                    </div>
                    <div class="flex flex-col items-center space-y-2">
                        <div class="neumorphic-btn"></div>
                        <span class="text-xs uppercase tracking-wider text-gray-500">DIST</span>
                        <div class="display text-xs">OFF</div>
                    </div>
                </div>
            </div>
            
            <!-- Output Module -->
            <div class="module p-5 neumorphic" style="animation-delay: 600ms">
                <h2 class="text-xs uppercase tracking-wider font-medium text-gray-500 mb-4">OUTPUT</h2>
                <div class="flex flex-col items-center space-y-4">
                    <div class="neumorphic-slider w-full" style="height: 120px;"></div>
                    <span class="text-xs uppercase tracking-wider text-gray-500">VOLUME</span>
                    
                    <div class="waveform neumorphic-inset w-full">
                        <div class="waveform-line" style="animation-delay: 0.5s;"></div>
                        <div class="waveform-line" style="height: 1px; bottom: 50%; transform: translateY(-50%); animation: none; background-color: rgba(0, 255, 136, 0.3);"></div>
                    </div>
                    
                    <div class="flex space-x-4 mt-2">
                        <button class="neumorphic-btn"></button>
                        <button class="neumorphic-btn"></button>
                        <div class="display px-4">OUT L/R</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Patch Bay -->
        <div class="neumorphic p-6 mb-8">
            <h2 class="text-xs uppercase tracking-wider font-medium text-gray-500 mb-4">PATCH BAY</h2>
            <div class="grid grid-cols-8 gap-4">
                <div class="patch-point"></div>
                <div class="patch-point"></div>
                <div class="patch-point"></div>
                <div class="patch-point"></div>
                <div class="patch-point"></div>
                <div class="patch-point"></div>
                <div class="patch-point"></div>
                <div class="patch-point"></div>
            </div>
        </div>
        
        <!-- Model Controls -->
        <div class="neumorphic p-6">
            <h2 class="text-xs uppercase tracking-wider font-medium text-gray-500 mb-4">LYRIA MODEL CONTROLS</h2>
            <div class="flex flex-col md:flex-row md:space-x-6 space-y-4 md:space-y-0">
                <div class="flex-1">
                    <div class="flex items-center space-x-4 mb-4">
                        <div class="neumorphic-btn"></div>
                        <span class="text-sm text-gray-700">Enable Model</span>
                    </div>
                    <div class="flex items-center space-x-4 mb-4">
                        <div class="neumorphic-slider" style="width: 100%; height: 8px;"></div>
                        <span class="text-sm text-gray-700">Creativity</span>
                    </div>
                </div>
                
                <div class="flex-1">
                    <div class="grid grid-cols-2 gap-4">
                        <div class="flex flex-col">
                            <span class="text-xs uppercase tracking-wider text-gray-500 mb-2">TEMPERATURE</span>
                            <div class="neumorphic-knob mx-auto">
                                <div class="knob-indicator" style="transform: translateX(-50%) rotate(30deg);"></div>
                            </div>
                        </div>
                        <div class="flex flex-col">
                            <span class="text-xs uppercase tracking-wider text-gray-500 mb-2">TOP P</span>
                            <div class="neumorphic-knob mx-auto">
                                <div class="knob-indicator" style="transform: translateX(-50%) rotate(75deg);"></div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="flex-1">
                    <div class="display h-full flex items-center justify-center">MODEL READY</div>
                </div>
            </div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // Make knobs draggable
            const knobs = document.querySelectorAll('.neumorphic-knob');
            knobs.forEach(knob => {
                const indicator = knob.querySelector('.knob-indicator');
                let isDragging = false;
                let startY, startRotation;
                
                knob.addEventListener('mousedown', (e) => {
                    isDragging = true;
                    startY = e.clientY;
                    startRotation = parseFloat(indicator.style.transform.replace('translateX(-50%) rotate(', '').replace('deg)', '')) || 0;
                    knob.style.cursor = 'grabbing';
                });
                
                document.addEventListener('mousemove', (e) => {
                    if (!isDragging) return;
                    
                    const deltaY = e.clientY - startY;
                    let newRotation = startRotation + deltaY;
                    
                    // Limit rotation between -135 and 135 degrees
                    newRotation = Math.max(-135, Math.min(135, newRotation));
                    
                    indicator.style.transform = `translateX(-50%) rotate(${newRotation}deg)`;
                });
                
                document.addEventListener('mouseup', () => {
                    isDragging = false;
                    knob.style.cursor = 'pointer';
                });
            });
            
            // Make patch points clickable
            const patchPoints = document.querySelectorAll('.patch-point');
            patchPoints.forEach(point => {
                point.addEventListener('click', () => {
                    point.classList.toggle('active');
                });
            });
            
            // Make buttons interactive
            const buttons = document.querySelectorAll('.neumorphic-btn');
            buttons.forEach(button => {
                button.addEventListener('mousedown', () => {
                    button.classList.add('active');
                });
                
                button.addEventListener('mouseup', () => {
                    button.classList.remove('active');
                });
                
                button.addEventListener('mouseleave', () => {
                    button.classList.remove('active');
                });
            });
            
            // Animate sliders
            const sliders = document.querySelectorAll('.neumorphic-slider');
            sliders.forEach(slider => {
                slider.addEventListener('input', () => {
                    // You could update display values here based on slider position
                });
            });
        });
    </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=222tuesday/interface-contrtol" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>