-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
687 lines (615 loc) · 29.9 KB
/
Copy pathindex.html
File metadata and controls
687 lines (615 loc) · 29.9 KB
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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style id="openstudio-instant-loader-style">
html,
body {
margin: 0;
min-height: 100%;
overflow-x: clip;
background: #04050a;
color: #f8fbff;
}
#openstudio-instant-loader {
position: fixed;
inset: 0;
z-index: 2147483647;
display: grid;
place-items: center;
overflow: hidden;
isolation: isolate;
background: transparent;
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
pointer-events: auto;
}
#openstudio-instant-loader::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
background: #04050a;
transition: opacity 220ms ease;
}
.os-instant-loader__panel {
position: absolute;
right: 0;
left: 0;
z-index: 1;
overflow: hidden;
background:
radial-gradient(circle at 50% var(--os-loader-glow-y), rgba(12, 250, 247, 0.14), transparent 26%),
radial-gradient(circle at 52% var(--os-loader-soft-y), rgba(136, 188, 236, 0.13), transparent 31%),
linear-gradient(180deg, rgba(3, 5, 12, 0.995), rgba(5, 8, 18, 0.985));
box-shadow: 0 0 80px rgba(12, 250, 247, 0.08);
transition: transform 1050ms cubic-bezier(0.22, 1, 0.36, 1);
will-change: transform;
}
.os-instant-loader__panel::before {
content: "";
position: absolute;
inset: -12%;
background-image:
linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
background-size: 5rem 5rem;
opacity: 0.24;
transform: rotate(-4deg);
}
.os-instant-loader__panel--top {
top: 0;
height: calc(50% + 1px);
--os-loader-glow-y: 100%;
--os-loader-soft-y: 82%;
}
.os-instant-loader__panel--bottom {
bottom: 0;
height: calc(50% + 1px);
--os-loader-glow-y: 0%;
--os-loader-soft-y: 18%;
}
.os-instant-loader__content {
position: absolute;
inset: 0;
z-index: 3;
display: block;
text-align: center;
pointer-events: none;
transition:
opacity 280ms ease,
filter 360ms ease;
}
.os-instant-loader__mark {
position: absolute;
left: 50%;
bottom: calc(50% + max(clamp(1.75rem, 4svh, 3rem), 6rem));
width: clamp(10rem, 26vw, 16.4rem);
aspect-ratio: 1;
transform: translate3d(-50%, 0, 0);
filter:
drop-shadow(0 24px 70px rgba(0, 0, 0, 0.5))
drop-shadow(0 0 28px rgba(12, 250, 247, 0.16));
}
.os-instant-loader__svg {
display: block;
width: 100%;
height: 100%;
overflow: visible;
transform: translateZ(0);
}
.os-instant-loader__piece {
will-change: transform, opacity, filter;
mix-blend-mode: screen;
}
.os-instant-loader__piece--navy {
mix-blend-mode: normal;
}
.os-instant-loader__wordmark {
position: absolute;
top: calc(50% + clamp(2rem, 4.8svh, 3.35rem));
left: 50%;
display: grid;
gap: 0.4rem;
width: min(42rem, 84vw);
transform: translate3d(-50%, 0, 0);
}
.os-instant-loader__wordmark strong {
font-size: clamp(2rem, 5.2vw, 5rem);
font-weight: 800;
line-height: 0.96;
letter-spacing: 0;
color: #f8fbff;
text-shadow: 0 0 34px rgba(136, 188, 236, 0.18);
}
.os-instant-loader__wordmark span {
font-family:
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: clamp(0.58rem, 0.82vw, 0.78rem);
font-weight: 700;
letter-spacing: 0.28em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.42);
}
.os-instant-loader__progress {
position: absolute;
top: 50%;
right: 0;
left: 0;
z-index: 4;
height: 3px;
overflow: hidden;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.08);
box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.035),
0 0 34px rgba(12, 250, 247, 0.18);
transition:
opacity 240ms ease,
transform 240ms ease;
}
.os-instant-loader__progress span {
display: block;
width: 100%;
height: 100%;
transform: scaleX(0.08);
transform-origin: left center;
background: linear-gradient(90deg, rgba(136, 188, 236, 0.94), rgba(12, 250, 247, 0.86));
box-shadow: 0 0 22px rgba(12, 250, 247, 0.3);
animation: os_loader_progress 8200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#openstudio-instant-loader[data-openstudio-loader-state="assembling"] .os-instant-loader__progress span {
animation: none;
transform: scaleX(1);
transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}
#openstudio-instant-loader[data-openstudio-loader-state="leaving"] .os-instant-loader__panel--top {
transform: translate3d(0, -102%, 0);
}
#openstudio-instant-loader[data-openstudio-loader-state="leaving"] .os-instant-loader__panel--bottom {
transform: translate3d(0, 102%, 0);
}
#openstudio-instant-loader[data-openstudio-loader-state="leaving"]::before {
opacity: 0;
}
#openstudio-instant-loader[data-openstudio-loader-state="leaving"] {
pointer-events: none;
}
#openstudio-instant-loader[data-openstudio-loader-state="leaving"] .os-instant-loader__content {
opacity: 0;
filter: blur(10px);
}
#openstudio-instant-loader[data-openstudio-loader-state="leaving"] .os-instant-loader__progress {
opacity: 0;
transform: translateY(-50%) scaleY(0);
}
#openstudio-instant-loader[data-openstudio-loader-state="leaving"] .os-instant-loader__progress span {
animation: none;
transform: scaleX(1);
}
@keyframes os_loader_progress {
0% {
transform: scaleX(0.08);
}
58% {
transform: scaleX(0.72);
}
100% {
transform: scaleX(0.94);
}
}
@media (prefers-reduced-motion: reduce) {
.os-instant-loader__progress span {
animation: none;
}
.os-instant-loader__progress span {
transform: scaleX(0.72);
}
.os-instant-loader__panel,
.os-instant-loader__content,
.os-instant-loader__progress {
transition-duration: 120ms;
}
}
</style>
<link rel="icon" type="image/png" sizes="32x32" href="/assets/openstudio/branding/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/assets/openstudio/branding/favicon-16x16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/openstudio/branding/apple-touch-icon.png" />
<link rel="manifest" href="/assets/openstudio/branding/site.webmanifest" />
<title>OpenStudio | Free Open Source DAW for Music Production</title>
<meta
name="description"
content="OpenStudio is a free, open source DAW and alternative to Cubase, Pro Tools, Reaper, Ableton Live, FL Studio, Logic Pro, Studio One, and Bitwig with optional local AI audio tools."
/>
<meta
name="keywords"
content="free daw, open source daw, Cubase alternative, alternative to Cubase, Pro Tools alternative, alternative to Pro Tools, Reaper alternative, alternative to Reaper, Ableton Live alternative, alternative to Ableton Live, FL Studio alternative, alternative to FL Studio, Logic Pro alternative, alternative to Logic Pro, Studio One alternative, alternative to Studio One, Bitwig Studio alternative, alternative to Bitwig, Reason alternative, GarageBand alternative, Audacity alternative, Cakewalk alternative, Waveform alternative, Mixcraft alternative, Suno AI alternative, alternative to Suno AI, Suno AI killer, Udio alternative, alternative to Udio, ElevenLabs Music alternative, alternative to ElevenLabs Music, Eleven Music alternative, Stable Audio 3 alternative, Google MusicFX alternative, Google Lyria alternative, MiniMax Music alternative, Mureka alternative, Sonauto alternative, AIVA alternative, Beatoven.ai alternative, Mubert alternative, Soundraw alternative, Boomy alternative, music production software, digital audio workstation, audio editing software, music making software, daw free, free music production software, daw windows, daw mac, daw linux"
/>
<meta name="robots" content="index, follow" />
<meta name="theme-color" content="#050813" />
<link rel="canonical" href="https://openstudio.org.in" />
<meta property="og:type" content="website" />
<meta property="og:title" content="OpenStudio | Free Open Source DAW for Music Production" />
<meta
property="og:description"
content="OpenStudio is a free, open source DAW and alternative to Cubase, Pro Tools, Reaper, Ableton Live, FL Studio, Logic Pro, Studio One, and Bitwig with optional local AI audio tools."
/>
<meta property="og:url" content="https://openstudio.org.in" />
<meta property="og:site_name" content="OpenStudio" />
<meta property="og:image" content="https://openstudio.org.in/assets/openstudio/branding/og-image.png?v=2" />
<meta property="og:image:alt" content="OpenStudio share image" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:locale" content="en_US" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="OpenStudio | Free Open Source DAW for Music Production" />
<meta
name="twitter:description"
content="OpenStudio is a free, open source DAW and alternative to Cubase, Pro Tools, Reaper, Ableton Live, FL Studio, Logic Pro, Studio One, and Bitwig with optional local AI audio tools."
/>
<meta name="twitter:image" content="https://openstudio.org.in/assets/openstudio/branding/og-image.png?v=2" />
<script type="application/ld+json">
[
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "OpenStudio",
"url": "https://openstudio.org.in",
"potentialAction": {
"@type": "SearchAction",
"target": "https://openstudio.org.in/features",
"query-input": "required name=search_term_string"
}
},
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "OpenStudio",
"url": "https://openstudio.org.in",
"logo": "https://openstudio.org.in/assets/openstudio/branding/android-chrome-512x512.png",
"sameAs": ["https://github.com/sdevil7th/openstudio"]
}
]
</script>
</head>
<body class="dark">
<div id="openstudio-instant-loader" data-openstudio-loader data-openstudio-loader-state="loading" role="status" aria-live="polite">
<div class="os-instant-loader__panel os-instant-loader__panel--top" aria-hidden="true"></div>
<div class="os-instant-loader__panel os-instant-loader__panel--bottom" aria-hidden="true"></div>
<div class="os-instant-loader__content">
<div class="os-instant-loader__mark" aria-hidden="true">
<svg class="os-instant-loader__svg" viewBox="634 505 784 784">
<g transform="translate(1023.5, 898) scale(1.2) rotate(45) translate(-1023.5, -898)">
<g class="os-instant-loader__piece os-instant-loader__piece--navy" data-os-loader-piece="navy-left-spark">
<path d="M 589.457 899.079 C 583.662 899.178 574.375 899.803 568.86 899.523 L 568.63 899.178 C 568.17 899.167 567.71 899.156 567.251 899.144 C 567.183 899.011 567.116 898.878 567.049 898.744 C 566.903 898.877 586.81 896.357 588.171 896.208 C 588.414 896.815 588.658 897.422 588.901 898.028 L 589.457 899.079 z" fill="rgb(23,21,60)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--navy" data-os-loader-piece="navy-sweep-main">
<path d="M 602.084 895.192 C 705.574 889.339 793.658 907.831 880.463 966.171 C 968.901 1025.61 1039.81 1116.37 1071.72 1218.23 C 1040.52 1221.96 1018.53 1222.29 987.296 1219.03 C 975.732 1218.81 951.436 1212.89 939.902 1209.56 C 857.463 1185.44 788.332 1128.91 748.318 1052.9 C 730.954 1019.21 726.551 981.274 699.751 953.594 C 674.804 927.827 642.7 914.594 608.639 905.983 C 602.704 904.482 593.838 903.13 589.457 899.079 L 588.901 898.028 C 588.658 897.422 588.414 896.815 588.171 896.208 C 592.751 895.859 597.708 895.026 602.084 895.192 z" fill="rgb(23,21,60)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--blue" data-os-loader-piece="blue-ribbon-lower">
<path d="M 1152.97 915.493 C 1162.68 914.351 1183.15 928.286 1190.82 934.418 C 1228.06 964.188 1257.66 1006.53 1270.6 1052.63 C 1273.04 1061.35 1275.78 1087.36 1277.53 1091.35 C 1275.68 1094.84 1261.29 1112.41 1258.16 1115.99 C 1220.7 1158.33 1172.55 1189.82 1118.75 1207.15 C 1110.5 1171.05 1090.11 1133.12 1068.05 1103.77 C 1091.52 1103.62 1105.01 1100.72 1126.69 1091.79 C 1202.51 1060.56 1229.52 964.846 1152.97 915.493 z" fill="rgb(56,154,216)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--blue" data-os-loader-piece="deep-blue-right-spark">
<path d="M 1478.34 891.794 C 1481.42 892.127 1486.55 893.279 1479.74 894.206 L 1478.34 891.794 z" fill="rgb(36,116,180)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--cyan" data-os-loader-piece="cyan-arc-main">
<path d="M 979.015 578.239 C 1005.02 574.436 1037.35 575.239 1063.31 577.748 C 1146.62 589.033 1222.12 632.686 1273.47 699.25 C 1295.44 727.809 1317.61 766.027 1326.88 800.433 C 1344.73 866.736 1405.84 883.212 1466.14 890.727 C 1470.05 891.214 1474.29 891.876 1478.34 891.794 L 1479.74 894.206 C 1453.6 895.792 1439.82 898.323 1411.99 898.365 C 1350 902.5 1266.48 882.172 1211.4 853.764 C 1102.31 797.49 1016.73 694.68 979.015 578.239 z" fill="rgb(12,250,247)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--blue" data-os-loader-piece="blue-sweep-edge">
<path d="M 602.084 895.192 C 705.574 889.339 793.658 907.831 880.463 966.171 C 968.901 1025.61 1039.81 1116.37 1071.72 1218.23 C 1040.52 1221.96 1018.53 1222.29 987.296 1219.03 C 944.614 1055.22 779.989 909.659 609.551 897.909 C 608.19 897.617 602.428 896.899 601.692 896.374 C 601.587 895.902 601.799 895.775 602.084 895.192 z" fill="rgb(56,154,216)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--sky" data-os-loader-piece="sky-ribbon-main">
<path d="M 782.528 691.718 C 818.3 645.424 877.331 606.011 933.236 589.489 C 944.52 628.796 956.906 655.66 982.337 687.618 C 916.516 688.862 848.176 727.505 846.95 801.529 C 846.488 829.446 858.996 848.415 877.865 867.761 C 904.663 887.296 926.615 893.691 959.983 893.908 C 981.802 894.05 1003.73 894.027 1025.56 894.028 L 1176.82 894.162 C 1203.02 894.238 1230.5 892.673 1255.85 899.212 C 1288.73 907.693 1317.8 936.44 1323.18 970.394 C 1328.87 1006.2 1299.46 1063.72 1277.53 1091.35 C 1275.68 1094.84 1261.29 1112.41 1258.16 1115.99 C 1220.7 1158.33 1172.55 1189.82 1118.75 1207.15 C 1110.5 1171.05 1090.11 1133.12 1068.05 1103.77 C 1091.52 1103.62 1105.01 1100.72 1126.69 1091.79 C 1202.51 1060.56 1229.52 964.846 1152.97 915.493 C 1140.95 910.069 1123.47 901.872 1110.32 900.402 C 1080.27 897.04 1045.55 898.048 1015.15 897.994 L 869.677 897.046 C 830.601 897.046 785.856 902.429 753.498 876.682 C 737.523 864.188 727.39 845.672 725.479 825.481 C 721.619 786.772 758.109 721.589 782.528 691.718 z" fill="rgb(136,188,236)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--blue" data-os-loader-piece="blue-arc-shadow">
<path d="M 979.015 578.239 C 1005.02 574.436 1037.35 575.239 1063.31 577.748 C 1066.33 590.612 1072.54 607.158 1077.16 619.636 C 1111.89 713.344 1176.94 792.76 1261.97 845.27 C 1294.54 865.465 1330.22 880.152 1367.57 888.741 C 1382.12 892.108 1397.41 893.406 1411 898.124 C 1411.33 898.204 1411.66 898.285 1411.99 898.365 C 1350 902.5 1266.48 882.172 1211.4 853.764 C 1102.31 797.49 1016.73 694.68 979.015 578.239 z" fill="rgb(56,154,216)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--blue" data-os-loader-piece="deep-blue-join">
<path d="M 588.171 896.208 C 592.751 895.859 597.708 895.026 602.084 895.192 C 601.799 895.775 601.587 895.902 601.692 896.374 C 602.428 896.899 608.19 897.617 609.551 897.909 C 602.668 898.038 595.785 898.078 588.901 898.028 C 588.658 897.422 588.414 896.815 588.171 896.208 z" fill="rgb(36,116,180)" />
</g>
<g class="os-instant-loader__piece os-instant-loader__piece--blue" data-os-loader-piece="blue-ribbon-upper">
<path d="M 782.528 691.718 C 818.3 645.424 877.331 606.011 933.236 589.489 C 944.52 628.796 956.906 655.66 982.337 687.618 C 916.516 688.862 848.176 727.505 846.95 801.529 C 846.488 829.446 858.996 848.415 877.865 867.761 C 873.112 866.396 862.152 857.998 858.04 854.663 C 817.309 821.638 786.669 767.845 783.818 714.995 C 783.414 707.503 783.54 700.146 782.656 692.723 L 782.528 691.718 z" fill="rgb(56,154,216)" />
</g>
</g>
</svg>
</div>
<div class="os-instant-loader__wordmark">
<strong>OpenStudio</strong>
<span>constructing the production surface</span>
</div>
</div>
<div class="os-instant-loader__progress" aria-hidden="true"><span></span></div>
</div>
<div id="root"></div>
<script>
(() => {
const loader = document.getElementById("openstudio-instant-loader");
if (!loader) return;
const markPerformance = (name) => {
try {
performance.mark(`openstudio:${name}`);
} catch {
/* diagnostics only */
}
};
markPerformance("loader-visible");
const startedAt = performance.now();
const minimumVisibleMs = 620;
const fallbackMs = 9500;
const cssFallbackMs = 6500;
const reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
const revealMs = reduceMotion ? 160 : 1120;
const assembleMs = reduceMotion ? 0 : 900;
let routeReady = Boolean(window.__openstudioAppReady);
let cssReady = false;
let hidden = false;
let assembled = reduceMotion;
let assembling = false;
let assembleStartedAt = 0;
let pieceRaf = 0;
window.__openstudioLoaderReady = true;
window.__openstudioAppCssReady = false;
const clamp = (value) => Math.max(0, Math.min(1, value));
const mix = (from, to, amount) => from + (to - from) * amount;
const ease = (value) => {
const t = clamp(value);
return t * t * t * (t * (t * 6 - 15) + 10);
};
const seedFor = (text) => {
let hash = 2166136261;
for (let index = 0; index < text.length; index += 1) {
hash ^= text.charCodeAt(index);
hash = Math.imul(hash, 16777619);
}
return (hash >>> 0) / 4294967295;
};
const finalPieceState = {
x: 0,
y: 0,
rotate: 0,
scale: 1,
opacity: 1,
brightness: 1.08,
blur: 0,
};
const fallbackCenter = { x: 1023.5, y: 898 };
const pieceElements = Array.from(loader.querySelectorAll("[data-os-loader-piece]"));
const orbitableCount = Math.max(
1,
pieceElements.filter((element) => element.dataset.osLoaderPiece !== "sky-ribbon-main").length,
);
let orbitSlot = 0;
const piecePlans = pieceElements.map((element, index) => {
const id = element.dataset.osLoaderPiece || `piece-${index}`;
const seed = seedFor(id);
const anchor = id === "sky-ribbon-main";
const slot = anchor ? -1 : orbitSlot;
if (!anchor) {
orbitSlot += 1;
}
const slotAngle = anchor ? 0 : (slot / orbitableCount) * Math.PI * 2;
const direction = slot % 2 === 0 ? 1 : -1;
let box;
try {
box = element.getBBox();
} catch {
box = { x: fallbackCenter.x, y: fallbackCenter.y, width: 1, height: 1 };
}
const center = {
x: box.x + box.width / 2,
y: box.y + box.height / 2,
};
return {
element,
id,
anchor,
center,
slot,
phase: slotAngle + (seed - 0.5) * 0.24,
radiusX: anchor ? 0 : 260 + (slot % 3) * 58 + seed * 64,
radiusY: anchor ? 0 : 170 + (slot % 4) * 34 + seed * 48,
speed: anchor ? 0 : direction * (0.00072 + seed * 0.00018),
rotateRange: anchor ? 0.55 : 5 + seed * 8,
scaleBase: anchor ? 1 : 0.88 + seed * 0.16,
glow: element.querySelector("path")?.getAttribute("fill") || "rgba(12, 250, 247, 0.7)",
current: finalPieceState,
from: finalPieceState,
};
});
const anchorCenter =
piecePlans.find((plan) => plan.anchor)?.center || fallbackCenter;
const pieceStateAt = (plan, now) => {
const elapsed = now - startedAt;
const pulse = Math.sin(elapsed * 0.0017 + plan.phase);
if (plan.anchor) {
return {
x: Math.sin(elapsed * 0.0011 + plan.phase) * 3.2,
y: Math.cos(elapsed * 0.001 + plan.phase) * 3.8,
rotate: Math.sin(elapsed * 0.0009 + plan.phase) * plan.rotateRange,
scale: 1 + pulse * 0.01,
opacity: 1,
brightness: 1.1 + pulse * 0.06,
blur: 0,
};
}
const angle = plan.phase + elapsed * plan.speed;
const orbitalWobble = Math.sin(elapsed * 0.00105 + plan.phase * 1.7);
const desiredX =
anchorCenter.x +
Math.cos(angle) * plan.radiusX +
Math.cos(angle * 2 + plan.phase) * 10;
const desiredY =
anchorCenter.y +
Math.sin(angle) * plan.radiusY +
orbitalWobble * 12;
return {
x: desiredX - plan.center.x,
y: desiredY - plan.center.y,
rotate: Math.sin(angle + plan.phase * 0.4) * plan.rotateRange,
scale: plan.scaleBase + pulse * 0.025,
opacity: 0.84 + Math.sin(elapsed * 0.0011 + plan.phase) * 0.1,
brightness: 1.08 + Math.sin(angle) * 0.1,
blur: 0.04 + Math.abs(Math.sin(angle)) * 0.22,
};
};
const applyPiece = (plan, state) => {
plan.current = state;
const centerX = plan.center.x.toFixed(2);
const centerY = plan.center.y.toFixed(2);
const negativeCenterX = (-plan.center.x).toFixed(2);
const negativeCenterY = (-plan.center.y).toFixed(2);
plan.element.setAttribute(
"transform",
`translate(${state.x.toFixed(2)} ${state.y.toFixed(2)}) translate(${centerX} ${centerY}) rotate(${state.rotate.toFixed(2)}) scale(${state.scale.toFixed(3)}) translate(${negativeCenterX} ${negativeCenterY})`,
);
plan.element.style.opacity = state.opacity.toFixed(3);
plan.element.style.filter = `brightness(${state.brightness.toFixed(3)}) blur(${state.blur.toFixed(2)}px) drop-shadow(0 0 ${Math.round(10 + state.opacity * 18)}px ${plan.glow})`;
};
const applyFinalPieces = () => {
piecePlans.forEach((plan) => applyPiece(plan, finalPieceState));
};
const tickPieces = (now) => {
pieceRaf = 0;
if (hidden) return;
if (assembling) {
const amount = assembleMs === 0 ? 1 : ease((now - assembleStartedAt) / assembleMs);
piecePlans.forEach((plan) => {
const from = plan.from || plan.current || finalPieceState;
applyPiece(plan, {
x: mix(from.x, finalPieceState.x, amount),
y: mix(from.y, finalPieceState.y, amount),
rotate: mix(from.rotate, finalPieceState.rotate, amount),
scale: mix(from.scale, finalPieceState.scale, amount),
opacity: mix(from.opacity, finalPieceState.opacity, amount),
brightness: mix(from.brightness, finalPieceState.brightness, amount),
blur: mix(from.blur, finalPieceState.blur, amount),
});
});
if (amount >= 1) {
assembling = false;
assembled = true;
applyFinalPieces();
finishWhenReady();
return;
}
} else {
piecePlans.forEach((plan) => applyPiece(plan, pieceStateAt(plan, now)));
}
pieceRaf = requestAnimationFrame(tickPieces);
};
const startPieceLoop = () => {
if (reduceMotion || pieceRaf || piecePlans.length === 0) return;
pieceRaf = requestAnimationFrame(tickPieces);
};
const beginAssemble = () => {
if (hidden || assembled || assembling) return;
if (reduceMotion || piecePlans.length === 0) {
assembled = true;
applyFinalPieces();
finishWhenReady();
return;
}
const now = performance.now();
assembling = true;
assembleStartedAt = now;
loader.dataset.openstudioLoaderState = "assembling";
piecePlans.forEach((plan) => {
plan.from = plan.current || pieceStateAt(plan, now);
});
startPieceLoop();
};
if (reduceMotion || piecePlans.length === 0) {
assembled = true;
applyFinalPieces();
} else {
startPieceLoop();
}
const appCssLinks = () => Array.from(document.querySelectorAll("link[data-openstudio-app-css]"));
const setCssReady = () => {
if (cssReady) return;
cssReady = true;
window.__openstudioAppCssReady = true;
markPerformance("css-ready");
finishWhenReady();
};
const markCssIfReady = () => {
const links = appCssLinks();
if (
links.length === 0 ||
links.every((link) => link.dataset.openstudioAppCssReady === "true" || link.rel === "stylesheet")
) {
setCssReady();
}
};
window.__openstudioMarkAppCssReady = markCssIfReady;
appCssLinks().forEach((link) => {
link.addEventListener("load", markCssIfReady, { once: true });
link.addEventListener("error", setCssReady, { once: true });
});
requestAnimationFrame(markCssIfReady);
window.setTimeout(setCssReady, cssFallbackMs);
const loadFonts = () => {
if (document.querySelector("link[data-openstudio-fonts]")) return;
const googlePreconnect = document.createElement("link");
googlePreconnect.rel = "preconnect";
googlePreconnect.href = "https://fonts.googleapis.com";
googlePreconnect.dataset.openstudioFonts = "true";
const gstaticPreconnect = document.createElement("link");
gstaticPreconnect.rel = "preconnect";
gstaticPreconnect.href = "https://fonts.gstatic.com";
gstaticPreconnect.crossOrigin = "";
gstaticPreconnect.dataset.openstudioFonts = "true";
const fontStylesheet = document.createElement("link");
fontStylesheet.rel = "stylesheet";
fontStylesheet.href =
"https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Orbitron:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500;1,9..144,600;1,9..144,700&display=swap";
fontStylesheet.dataset.openstudioFonts = "true";
document.head.append(googlePreconnect, gstaticPreconnect, fontStylesheet);
};
requestAnimationFrame(() => requestAnimationFrame(loadFonts));
function reveal() {
if (hidden) return;
hidden = true;
if (pieceRaf) {
cancelAnimationFrame(pieceRaf);
pieceRaf = 0;
}
loader.dataset.openstudioLoaderState = "leaving";
window.setTimeout(() => {
loader.remove();
window.__openstudioIntroHidden = true;
markPerformance("intro-hidden");
window.dispatchEvent(new CustomEvent("openstudio:intro-hidden"));
}, revealMs);
}
function finishWhenReady() {
if (hidden || !routeReady || !cssReady) return;
const elapsed = performance.now() - startedAt;
if (elapsed < minimumVisibleMs) {
window.setTimeout(finishWhenReady, minimumVisibleMs - elapsed);
return;
}
if (!assembled) {
beginAssemble();
return;
}
reveal();
}
window.addEventListener(
"openstudio:app-ready",
() => {
routeReady = true;
finishWhenReady();
},
{ once: true },
);
window.setTimeout(() => {
routeReady = true;
finishWhenReady();
}, fallbackMs);
})();
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>