-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjamify.html
More file actions
3333 lines (3203 loc) · 116 KB
/
jamify.html
File metadata and controls
3333 lines (3203 loc) · 116 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
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JAM: A Tiny Flow-based Song Generator with Fine-grained Controllability and
Aesthetic Alignment</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
min-height: 100vh;
}
.btn-demo {
background: linear-gradient(45deg, #9f7aea, #805ad5);
box-shadow: 0 5px 15px rgba(159, 122, 234, 0.3);
}
.btn-demo:hover {
box-shadow: 0 10px 25px rgba(159, 122, 234, 0.4);
}
.btn-arxiv {
background: linear-gradient(45deg, #e53e3e, #c53030);
box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3);
}
.btn-arxiv:hover {
box-shadow: 0 10px 25px rgba(229, 62, 62, 0.4);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 40px;
margin-bottom: 40px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.title {
font-size: 2.5em;
font-weight: 700;
background: linear-gradient(45deg, #3182ce, #805ad5);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 10px;
}
.subtitle {
font-size: 1.2em;
color: #666;
margin-bottom: 20px;
}
.project-badge {
display: inline-block;
background: linear-gradient(45deg, #38a169, #2c7a7b);
color: white;
padding: 8px 20px;
border-radius: 25px;
font-weight: 600;
font-size: 0.9em;
margin-top: 10px;
}
.buttons-container {
display: flex;
gap: 20px;
justify-content: center;
margin: 30px 0;
}
.btn {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 15px 30px;
background: linear-gradient(45deg, #3182ce, #2c5aa0);
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3);
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(49, 130, 206, 0.4);
}
.btn-huggingface {
background: linear-gradient(45deg, #ff9d00, #ffb327);
box-shadow: 0 5px 15px rgba(255, 157, 0, 0.3);
}
.btn-huggingface:hover {
box-shadow: 0 10px 25px rgba(255, 157, 0, 0.4);
}
.btn-github {
background: linear-gradient(45deg, #333, #555);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-github:hover {
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 40px;
margin-bottom: 40px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.section-title {
font-size: 2em;
font-weight: 700;
margin-bottom: 20px;
color: #333;
}
.abstract {
font-size: 1.1em;
line-height: 1.8;
text-align: justify;
color: #555;
}
.contributions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 25px;
margin-top: 30px;
}
.contribution-card {
background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
color: white;
padding: 25px;
border-radius: 15px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.contribution-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.1);
opacity: 0;
transition: opacity 0.3s ease;
}
.contribution-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.contribution-card:hover::before {
opacity: 1;
}
.contribution-card:nth-child(2n) {
background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
}
.contribution-card:nth-child(3n) {
background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}
.contribution-card:nth-child(4n) {
background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
}
.contribution-card:nth-child(5n) {
background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}
.contribution-card:nth-child(6n) {
background: linear-gradient(135deg, #319795 0%, #2c7a7b 100%);
}
.contribution-title {
font-size: 1.2em;
font-weight: 700;
margin-bottom: 15px;
}
.contribution-desc {
line-height: 1.6;
font-size: 0.95em;
}
.comparison-section {
margin-top: 40px;
}
.demo-lyrics {
background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
color: white;
padding: 25px;
border-radius: 15px;
margin-bottom: 30px;
border-left: 5px solid #3182ce;
/* Fixed size and scroll properties */
width: 100%; /* Keep the full width */
height: 300px; /* Set fixed height */
max-height: 300px; /* Prevent expansion beyond height */
overflow: auto; /* Show scrollbars when content overflows */
box-sizing: border-box; /* Include padding in size calculations */
}
.example-selector {
background: white;
border-radius: 15px;
padding: 25px;
margin-bottom: 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.example-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
margin-top: 15px;
}
.example-btn {
padding: 15px 25px;
background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
border: 2px solid transparent;
border-radius: 10px;
color: #2d3748;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
}
.example-btn:hover {
background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
color: white;
transform: translateY(-2px);
}
.example-btn.active {
background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
color: white;
border-color: #2c5aa0;
}
.demo-lyrics h3 {
color: #63b3ed;
margin-bottom: 15px;
font-size: 1.2em;
}
.lyrics-text {
font-family: 'Georgia', serif;
font-style: italic;
line-height: 1.8;
font-size: 1.05em;
}
.comparison-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-top: 30px;
}
.audio-player {
background: white;
border-radius: 15px;
padding: 25px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
border: 3px solid transparent;
}
.audio-player:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.audio-player.jam1 {
border-color: #3182ce;
background: linear-gradient(135deg, rgba(49, 130, 206, 0.05) 0%, rgba(128, 90, 213, 0.05) 100%);
}
.audio-player.diffrhythm {
border-color: #805ad5;
background: linear-gradient(135deg, rgba(128, 90, 213, 0.05) 0%, rgba(107, 70, 193, 0.05) 100%);
}
.model-title {
font-size: 1.4em;
font-weight: 700;
margin-bottom: 20px;
color: #2d3748;
text-align: center;
}
.audio-player.jam1 .model-title {
color: #3182ce;
}
.audio-player.diffrhythm .model-title {
color: #805ad5;
}
.play-button {
width: 80px;
height: 80px;
border-radius: 50%;
border: none;
background: linear-gradient(45deg, #3182ce, #2c5aa0);
color: white;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3);
}
.audio-player.diffrhythm .play-button {
background: linear-gradient(45deg, #805ad5, #6b46c1);
box-shadow: 0 5px 15px rgba(128, 90, 213, 0.3);
}
.play-button:hover {
transform: scale(1.1);
box-shadow: 0 8px 25px rgba(49, 130, 206, 0.4);
}
.audio-player.diffrhythm .play-button:hover {
box-shadow: 0 8px 25px rgba(128, 90, 213, 0.4);
}
.play-button.playing {
background: linear-gradient(45deg, #38a169, #2f855a);
}
.play-icon {
width: 24px;
height: 24px;
fill: currentColor;
}
.audio-info {
text-align: center;
color: #4a5568;
}
.audio-duration {
font-size: 1.1em;
font-weight: 600;
margin-bottom: 10px;
}
.audio-specs {
font-size: 0.9em;
line-height: 1.4;
}
.progress-bar {
width: 100%;
height: 4px;
background: #e2e8f0;
border-radius: 2px;
margin: 15px 0;
overflow: hidden;
cursor: pointer;
}
.progress-fill {
height: 100%;
background: linear-gradient(45deg, #3182ce, #2c5aa0);
width: 0%;
transition: width 0.1s ease;
}
.audio-player.diffrhythm .progress-fill {
background: linear-gradient(45deg, #805ad5, #6b46c1);
}
.icon {
width: 20px;
height: 20px;
fill: currentColor;
}
.time-display {
display: flex;
justify-content: space-between;
font-size: 0.8em;
color: #666;
margin-top: 5px;
}
.error-message {
color: #e53e3e;
text-align: center;
font-size: 0.9em;
margin-top: 10px;
display: none;
}
@media (max-width: 768px) {
.title {
font-size: 2em;
}
.buttons-container {
flex-direction: column;
align-items: center;
}
.contributions-grid {
grid-template-columns: 1fr;
}
.comparison-container {
grid-template-columns: 1fr;
}
.example-grid {
grid-template-columns: 1fr;
}
}
.title-section {
display: flex;
align-items: center;
gap: 25px;
margin-bottom: 20px;
justify-content: center;
}
.logo-container {
flex-shrink: 0;
position: relative;
}
.project-logo {
width: 80px;
height: auto;
filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
transition: all 0.3s ease;
}
.project-logo:hover {
transform: scale(1.08) rotate(2deg);
filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}
.title-content {
flex: 1;
text-align: left;
max-width: 800px;
}
.title {
font-size: 2.2em;
margin-bottom: 8px;
text-align: left;
}
.subtitle {
text-align: left;
margin-bottom: 0;
}
/* Remove the old project badge */
.project-badge {
display: none;
}
/* Responsive design */
@media (max-width: 768px) {
.title-section {
flex-direction: column;
text-align: center;
gap: 15px;
}
.title-content {
text-align: center;
}
.title {
text-align: center;
font-size: 1.8em;
}
.subtitle {
text-align: center;
}
.project-logo {
width: 60px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="title-section">
<div class="logo-container">
<img src="jamify-logo-new.png" alt="Project Jamify Logo" class="project-logo">
</div>
<div class="title-content">
<h1 class="title">JAM: A Tiny Flow-based Song Generator with Fine-grained Controllability and Aesthetic Alignment</h1>
<p class="subtitle">The First Model of Project Jamify</p>
</div>
</div>
<div class="buttons-container">
<a href="https://huggingface.co/declare-lab/JAM-0.5" class="btn btn-huggingface">
🤗 HuggingFace Model
</a>
<a href="https://huggingface.co/spaces/declare-lab/JAM" class="btn btn-demo">
🎵 Interactive Demo
</a>
<a href="https://arxiv.org/abs/2507.20880" class="btn btn-arxiv">
📄 arXiv Paper
</a>
<a href="https://github.com/declare-lab/jamify" class="btn btn-github">
<svg class="icon" viewBox="0 0 24 24">
<path d="M12 0C5.374 0 0 5.373 0 12 0 17.302 3.438 21.8 8.207 23.387c.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0112 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z"/>
</svg>
GitHub
</a>
</div>
</div>
<div class="section">
<h2 class="section-title">Abstract</h2>
<p class="abstract">
Diffusion and flow-matching models have revolutionized automatic text-to-audio generation in recent times. These models are increasingly capable of generating high quality and faithful audio outputs capturing to speech and acoustic events. However, there is still much room for improvement in creative audio generation that primarily involves music and songs. Recent open lyrics-to-song models, such as, DiffRhythm, ACE-Step, and LeVo, have set an acceptable standard in automatic song generation for recreational use. However, these models lack fine-grained word-level controllability often desired by musicians in their workflows. To the best of our knowledge, our flow-matching-based JAM is the first effort toward endowing word-level timing and duration control in song generation, allowing fine-grained vocal control. To enhance the quality of generated songs to better align with human preferences, we implement aesthetic alignment through Direct Preference Optimization, which iteratively refines the model using a synthetic dataset, eliminating the need or manual data annotations. Furthermore, we aim to standardize the evaluation of such lyrics-to-song models through our public evaluation dataset JAME. We show that JAM outperforms the existing models in terms of the music-specific attributes.
</p>
</div>
<div class="section">
<h2 class="section-title">Key Contributions</h2>
<div class="contributions-grid">
<div class="contribution-card">
<div class="contribution-title">🏗️ Compact Architecture</div>
<div class="contribution-desc">
At 530M parameters, JAM is less than half the size of the next smallest system (DiffRhythm-1.1B), enabling faster inference and reduced resource demands.
</div>
</div>
<div class="contribution-card">
<div class="contribution-title">🎯 Fine-Grained Alignment</div>
<div class="contribution-desc">
By accepting word- and phoneme-level timing inputs, JAM lets users control the exact placement of each vocal sound, improving rhythmic flexibility and expressive timing.
</div>
</div>
<div class="contribution-card">
<div class="contribution-title">📝 Enhanced Lyric Fidelity</div>
<div class="contribution-desc">
This precise alignment reduces WER and PER by over 3× compared to prior work, as the model can directly attend to phoneme boundaries and correct misalignments.
</div>
</div>
<div class="contribution-card">
<div class="contribution-title">⏱️ Global Duration Control</div>
<div class="contribution-desc">
Our novel duration mechanism controls inter-word pacing and specifies how much instrumental introduction and coda to generate, giving composers full control over song structure.
</div>
</div>
<div class="contribution-card">
<div class="contribution-title">🧪 Rigorous Evaluation</div>
<div class="contribution-desc">
We compiled lyrics for 250 tracks released after models' training cut-offs to avoid data contamination, spanning various genres for comprehensive evaluation.
</div>
</div>
<div class="contribution-card">
<div class="contribution-title">🎨 Aesthetic Alignment</div>
<div class="contribution-desc">
Using automated song-quality models like SongEval to generate synthetic preference labels, we apply alignment in multiple rounds for additional performance gains.
</div>
</div>
</div>
</div>
<div class="section comparison-section">
<h2 class="section-title">Model Comparison Demo</h2>
<div class="example-selector">
<h3 style="margin-bottom: 15px; color: #2d3748;">Choose an Example:</h3>
<div class="example-grid">
<button class="example-btn active" onclick="selectExample(0)">Amy Macdonald - I'm Done (Games That You Play)</button>
<button class="example-btn" onclick="selectExample(1)">Deeps - RUN!</button>
<button class="example-btn" onclick="selectExample(2)">Hybrid Minds, Brodie - Heroin</button>
<button class="example-btn" onclick="selectExample(3)">Jade Bird - Avalanche</button>
<button class="example-btn" onclick="selectExample(4)">Kwengface - Parallel Theory</button>
<button class="example-btn" onclick="selectExample(5)">Liang Lawrence - A Day Off In Margaritaville</button>
<button class="example-btn" onclick="selectExample(6)">Lizzie Berchie - Happiness</button>
<button class="example-btn" onclick="selectExample(7)">Nathan Dawe, Shayan - Over You</button>
<button class="example-btn" onclick="selectExample(8)">Waylon Wyatt - Sincerely, Your Son</button>
<button class="example-btn" onclick="selectExample(9)">Wunderhorse - The Rope</button>
<button class="example-btn active" onclick="selectExample(10)">WKingfishr - Diamonds & Roses</button>
<button class="example-btn" onclick="selectExample(11)">Lewis Capaldi - Survive</button>
<button class="example-btn" onclick="selectExample(12)">Benson Boone - Mr Electric Blue</button>
<button class="example-btn" onclick="selectExample(13)">quinnie - paper doll</button>
<button class="example-btn" onclick="selectExample(14)">Miley Cyrus - Easy Lover</button>
<button class="example-btn" onclick="selectExample(15)">Richard Ashcroft - Lover</button>
<button class="example-btn" onclick="selectExample(16)">Rizzle Kicks, Rachel Chinouriri - Follow Excitement!</button>
<button class="example-btn" onclick="selectExample(17)">Teddy Swims - Need You More</button>
<button class="example-btn" onclick="selectExample(18)">Whitney - Darling</button>
<button class="example-btn" onclick="selectExample(19)">Aidan Bissett - dance around it</button>
<button class="example-btn" onclick="selectExample(20)">crysometimes - Tell Me</button>
<button class="example-btn" onclick="selectExample(21)">Liang Lawrence - A Day Off In Margaritaville</button>
<button class="example-btn" onclick="selectExample(22)">Charlotte OC - Romeo</button>
<button class="example-btn" onclick="selectExample(23)">Conan Gray - This Song</button>
<button class="example-btn" onclick="selectExample(24)">David Guetta, Cedric Gervais - A Better World</button>
<button class="example-btn" onclick="selectExample(25)">DellaXOZ - The Money Song</button>
<button class="example-btn" onclick="selectExample(26)">EsDeeKid, Fimiguerrero - 5am</button>
<button class="example-btn" onclick="selectExample(27)">Geese - Taxes</button>
<button class="example-btn" onclick="selectExample(28)">HAIM - All over me</button>
<button class="example-btn" onclick="selectExample(29)">James Marriott - Something's Wrong</button>
<button class="example-btn" onclick="selectExample(30)">James TW - edge of the world</button>
<button class="example-btn" onclick="selectExample(31)">Joey Valence & Brae, JPEGMAFIA - WASSUP (feat. JPEGMAFIA)</button>
<button class="example-btn" onclick="selectExample(32)">KAROL G - Papasito</button>
<button class="example-btn" onclick="selectExample(33)">Leon Thomas - NOT FAIR</button>
<button class="example-btn" onclick="selectExample(34)">Mac DeMarco - Home</button>
<button class="example-btn" onclick="selectExample(35)">RAYE - Grandma Calls The Boy Bad News</button>
<button class="example-btn" onclick="selectExample(36)">Switch Disco, Tones And I - HIDEAWAY</button>
<button class="example-btn" onclick="selectExample(37)">The K's - Me and Your Sister</button>
</div>
</div>
<div class="demo-lyrics">
<h3>🎵 Lyrics</h3>
<div class="lyrics-text" id="current-lyrics">
In the silence of the morning light<br>
I find my voice, I find my sight<br>
Every dream that seemed so far<br>
Now shines bright like a distant star<br><br>
We are the ones who dare to fly<br>
Beyond the clouds up in the sky<br>
With every step we're breaking ground<br>
Our hearts beat with a powerful sound
</div>
</div>
<div class="comparison-container">
<div class="audio-player jam1">
<div class="model-title">JAM (Ours)</div>
<button class="play-button" onclick="togglePlay('jam1')">
<svg class="play-icon" viewBox="0 0 24 24" id="jam1-icon">
<path d="M8 5v14l11-7z"/>
</svg>
</button>
<div class="progress-bar" onclick="seekAudio('jam1', event)">
<div class="progress-fill" id="jam1-progress"></div>
</div>
<div class="time-display">
<span id="jam1-current-time">0:00</span>
<span id="jam1-total-time">0:00</span>
</div>
<div class="audio-info">
<!-- <div class="audio-duration" id="jam1-duration">Duration: 2:34</div> -->
<div class="audio-specs">
✨ Fine-grained word-level control<br>
📊 <span id="jam1-wer">WER: 0.10</span> | Parameters: 530M<br>
🎯 Phoneme-aligned timing
</div>
</div>
<div class="error-message" id="jam1-error">Audio file not found</div>
</div>
<div class="audio-player diffrhythm">
<div class="model-title">DiffRhythm</div>
<button class="play-button" onclick="togglePlay('diffrhythm')">
<svg class="play-icon" viewBox="0 0 24 24" id="diffrhythm-icon">
<path d="M8 5v14l11-7z"/>
</svg>
</button>
<div class="progress-bar" onclick="seekAudio('diffrhythm', event)">
<div class="progress-fill" id="diffrhythm-progress"></div>
</div>
<div class="time-display">
<span id="diffrhythm-current-time">0:00</span>
<span id="diffrhythm-total-time">0:00</span>
</div>
<div class="audio-info">
<!-- <div class="audio-duration" id="diffrhythm-duration">Duration: 2:41</div> -->
<div class="audio-specs">
🎵 Standard generation quality<br>
📊 <span id="diffrhythm-wer">WER: 0.35</span> | Parameters: 1.1B<br>
⚖️ No fine-grained control
</div>
</div>
<div class="error-message" id="diffrhythm-error">Audio file not found</div>
</div>
</div>
</div>
</div>
<!-- Hidden audio elements -->
<audio id="jam1-audio" preload="metadata"></audio>
<audio id="diffrhythm-audio" preload="metadata"></audio>
<script>
// Global variables
let currentlyPlaying = null;
let intervals = {};
let currentExample = 0;
// Audio file paths - update these with your actual file paths
const audioFiles = {
0: { // Morning Dreams
jam1: "assets/audios/jam1/Amy Macdonald - I'm Done (Games That You Play).mp3",
diffrhythm: "assets/audios/diffrhythm/Amy Macdonald - I'm Done (Games That You Play).mp3"
},
1: { // Heartbreak
jam1: "assets/audios/jam1/Deeps - RUN!.mp3",
diffrhythm: "assets/audios/diffrhythm/Deeps - RUN!.mp3"
},
2: { // Heartbreak
jam1: "assets/audios/jam1/Hybrid Minds, Brodie - Heroin.mp3",
diffrhythm: "assets/audios/diffrhythm/Hybrid Minds, Brodie - Heroin.mp3"
},
3: { // Heartbreak
jam1: "assets/audios/jam1/Jade Bird - Avalanche.mp3",
diffrhythm: "assets/audios/diffrhythm/Jade Bird - Avalanche.mp3"
},
4: { // Heartbreak
jam1: "assets/audios/jam1/Kwengface - Parallel Theory.mp3",
diffrhythm: "assets/audios/diffrhythm/Kwengface - Parallel Theory.mp3"
},
5: { // Heartbreak
jam1: "assets/audios/jam1/Liang Lawrence - A Day Off In Margaritaville.mp3",
diffrhythm: "assets/audios/diffrhythm/Liang Lawrence - A Day Off In Margaritaville.mp3"
},
6: { // Heartbreak
jam1: "assets/audios/jam1/Lizzie Berchie - Happiness.mp3",
diffrhythm: "assets/audios/diffrhythm/Lizzie Berchie - Happiness.mp3"
},
7: { // Heartbreak
jam1: "assets/audios/jam1/Nathan Dawe, Shayan - Over You.mp3",
diffrhythm: "assets/audios/diffrhythm/Nathan Dawe, Shayan - Over You.mp3"
},
8: { // Heartbreak
jam1: "assets/audios/jam1/Waylon Wyatt - Sincerely, Your Son.mp3",
diffrhythm: "assets/audios/diffrhythm/Waylon Wyatt - Sincerely, Your Son.mp3"
},
9: { // Heartbreak
jam1: "assets/audios/jam1/Wunderhorse - The Rope.mp3",
diffrhythm: "assets/audios/diffrhythm/Wunderhorse - The Rope.mp3"
},
10: { // Heartbreak
jam1: "assets/audios/jam1/WKingfishr - Diamonds & Roses.mp3",
diffrhythm: "assets/audios/diffrhythm/WKingfishr - Diamonds & Roses.mp3"
},
11: { // Heartbreak
jam1: "assets/audios/jam1/Lewis Capaldi - Survive.mp3",
diffrhythm: "assets/audios/diffrhythm/Lewis Capaldi - Survive.mp3"
},
12: { // Heartbreak
jam1: "assets/audios/jam1/Benson Boone - Mr Electric Blue.mp3",
diffrhythm: "assets/audios/diffrhythm/Benson Boone - Mr Electric Blue.mp3"
},
13: { // Heartbreak
jam1: "assets/audios/jam1/quinnie - paper doll.mp3",
diffrhythm: "assets/audios/diffrhythm/quinnie - paper doll.mp3"
},
14: { // Heartbreak
jam1: "assets/audios/jam1/Miley Cyrus - Easy Lover.mp3",
diffrhythm: "assets/audios/diffrhythm/Miley Cyrus - Easy Lover.mp3"
},
15: { // Heartbreak
jam1: "assets/audios/jam1/Richard Ashcroft - Lover.mp3",
diffrhythm: "assets/audios/diffrhythm/Richard Ashcroft - Lover.mp3"
},
16: { // Heartbreak
jam1: "assets/audios/jam1/Rizzle Kicks, Rachel Chinouriri - Follow Excitement!.mp3",
diffrhythm: "assets/audios/diffrhythm/Rizzle Kicks, Rachel Chinouriri - Follow Excitement!.mp3"
},
17: { // Heartbreak
jam1: "assets/audios/jam1/Teddy Swims - Need You More.mp3",
diffrhythm: "assets/audios/diffrhythm/Teddy Swims - Need You More.mp3"
},
18: { // Heartbreak
jam1: "assets/audios/jam1/Whitney - Darling.mp3",
diffrhythm: "assets/audios/diffrhythm/Whitney - Darling.mp3"
},
19: { // Heartbreak
jam1: "assets/audios/jam1/Aidan Bissett - dance around it.mp3",
diffrhythm: "assets/audios/diffrhythm/Aidan Bissett - dance around it.mp3"
},
20: { // Heartbreak
jam1: "assets/audios/jam1/crysometimes - Tell Me.mp3",
diffrhythm: "assets/audios/diffrhythm/crysometimes - Tell Me.mp3"
},
21: { // Heartbreak
jam1: "assets/audios/jam1/Liang Lawrence - A Day Off In Margaritaville.mp3",
diffrhythm: "assets/audios/diffrhythm/Liang Lawrence - A Day Off In Margaritaville.mp3"
},
22: { // Heartbreak
jam1: "assets/audios/jam1/Charlotte OC - Romeo.mp3",
diffrhythm: "assets/audios/diffrhythm/Charlotte OC - Romeo.mp3"
},
23: { // Heartbreak
jam1: "assets/audios/jam1/Conan Gray - This Song.mp3",
diffrhythm: "assets/audios/Conan Gray - This Song.mp3"
},
24: { // Heartbreak
jam1: "assets/audios/jam1/David Guetta, Cedric Gervais - A Better World.mp3",
diffrhythm: "assets/audios/diffrhythm/David Guetta, Cedric Gervais - A Better World.mp3"
},
25: { // Heartbreak
jam1: "assets/audios/jam1/DellaXOZ - The Money Song.mp3",
diffrhythm: "assets/audios/diffrhythm/DellaXOZ - The Money Song.mp3"
},
26: { // Heartbreak
jam1: "assets/audios/jam1/EsDeeKid, Fimiguerrero - 5am.mp3",
diffrhythm: "assets/audios/diffrhythm/EsDeeKid, Fimiguerrero - 5am.mp3"
},
27: { // Heartbreak
jam1: "assets/audios/jam1/Geese - Taxes.mp3",
diffrhythm: "assets/audios/diffrhythm/Geese - Taxes.mp3"
},
28: { // Heartbreak
jam1: "assets/audios/jam1/HAIM - All over me.mp3",
diffrhythm: "assets/audios/diffrhythm/HAIM - All over me.mp3"
},
29: { // Heartbreak
jam1: "assets/audios/jam1/James Marriott - Something's Wrong.mp3",
diffrhythm: "assets/audios/diffrhythm/James Marriott - Something's Wrong.mp3"
},
30: { // Heartbreak
jam1: "assets/audios/jam1/James TW - edge of the world.mp3",
diffrhythm: "assets/audios/diffrhythm/James TW - edge of the world.mp3"
},
31: { // Heartbreak
jam1: "assets/audios/jam1/Joey Valence & Brae, JPEGMAFIA - WASSUP (feat. JPEGMAFIA).mp3",
diffrhythm: "assets/audios/diffrhythm/Joey Valence & Brae, JPEGMAFIA - WASSUP (feat. JPEGMAFIA).mp3"
},
32: { // Heartbreak
jam1: "assets/audios/jam1/KAROL G - Papasito.mp3",
diffrhythm: "assets/audios/diffrhythm/KAROL G - Papasito.mp3"
},
33: { // Heartbreak
jam1: "assets/audios/jam1/Leon Thomas - NOT FAIR.mp3",
diffrhythm: "assets/audios/diffrhythm/Leon Thomas - NOT FAIR.mp3"
},
34: { // Heartbreak
jam1: "assets/audios/jam1/Mac DeMarco - Home.mp3",
diffrhythm: "assets/audios/diffrhythm/Mac DeMarco - Home.mp3"
},
35: { // Heartbreak
jam1: "assets/audios/jam1/RAYE - Grandma Calls The Boy Bad News.mp3",
diffrhythm: "assets/audios/diffrhythm/RAYE - Grandma Calls The Boy Bad News.mp3"
},
36: { // Heartbreak
jam1: "assets/audios/jam1/Switch Disco, Tones And I - HIDEAWAY.mp3",
diffrhythm: "assets/audios/diffrhythm/Switch Disco, Tones And I - HIDEAWAY.mp3"
},
37: { // Heartbreak
jam1: "assets/audios/jam1/The K's - Me and Your Sister.mp3",
diffrhythm: "assets/audios/diffrhythm/The K's - Me and Your Sister.mp3"
}
};
// Example data
const examples = [
{
title: "Amy Macdonald - I'm Done (Games That You Play)",
lyrics: `Here I go again, running around on my own again<br>
My adventure in the rain<br>
I can’t find my way, through this concrete mess I made<br>
No one seems to care at all<br>
<br>
They look right through you<br>
As if they knew you before<br>
But it don’t matter<br>
You’re not that person No more<br>
<br>
And here I go again<br>
Through the darkest place I know<br>
But I’ve seen it all before<br>
<br>
And you know<br>
<br>
I’ve been trying far too long<br>
I know I’ll get there<br>
One more song<br>
And you said I’ll never ever leave you<br>
And you said I’m always gonna need you<br>
And I said I’m never ever gonna stay<br>
With the games that you play<br>
<br>
I’m done, I’m done<br>
<br>
Feel the cold again, running around on the road again<br>
My ambition led astray<br>
I won't last another day, in this concrete mess you made<br>
You won’t catch me when I fall<br>
<br>
I’m Done, with the games that you play<br>
They look right through you<br>
As if they knew you before<br>
They look like through you<br>
But it don’t matter no more<br>`,
// jam1: { duration: "2:34", wer: "0.12" },
// diffrhythm: { duration: "2:41", wer: "0.38" }
},
{
title: "Deeps - RUN!",
lyrics: `[Verse]<br>
Same spot<br>
Different places<br>
I can tell that from the look on your face<br>
That we, are way past<br>
Gone are the days<br>
Where we could turn back<br>
And be better off separately<br>
I'm attached<br>
The puppet strings you pull from my back<br>
Moral compass keeps me on track<br>
I get frustrated<br>
No, we won't last<br>
But I don't wanna let you leave<br>
<br>
[Pre-Chorus]<br>
I get so defensive<br>
I don't open up<br>
Try to find an exit<br>
From the walls of your love<br>
Why am I pretending?<br>
Like something is wrong<br>
Cause I get lost in my head<br>
When I don't feel good enough<br>
And I RUN!<br>
I RUN!<br>
[Chorus]<br>
I run from myself but I'm stuck in a maze<br>
Scared to get help cause I don't wanna face it<br>
Run out of words, I've got nothing to say<br>
Leaving you hurts<br>
But I don't want you waiting<br>
Run out of breath<br>
Getting stuck in my ways<br>
Need to accept<br>
That I don't want to change<br>
I run out of words<br>
I've got nothing to say<br>
Leaving you hurts<br>
But I'm running away<br>
<br>
[Verse 2]<br>
Hands on my knees<br>
These roads are too familiar<br>
With the soles of my feet<br>
One minute I'm here with you<br>
Then I up and I leave<br>
No warning just a self-indulgent apology<br>
(I'm sorry)<br>
<br>
[Pre-Chorus]<br>
I get so defensive<br>
I don't open up<br>
Try to find an exit<br>
From the walls of your love<br>