-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Unit1.dfm
744 lines (730 loc) · 23.6 KB
/
Unit1.dfm
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
object Form1: TForm1
Width = 1098
Height = 702
CSSLibrary = cssBootstrap
ElementFont = efCSS
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
OnCreate = WebFormCreate
OnResize = WebFormResize
object divMain: TWebHTMLDiv
AlignWithMargins = True
Left = 3
Top = 3
Width = 1092
Height = 696
ElementClassName = 'rounded-3 bg-dark border border-1 border-secondary'
ElementID = 'divMain'
Align = alClient
ElementFont = efCSS
Role = ''
object divTop: TWebHTMLDiv
AlignWithMargins = True
Left = 3
Top = 3
Width = 1086
Height = 86
ElementClassName = 'rounded-3 bg-black border border-secondary'
ElementID = 'divTop'
Align = alTop
ElementFont = efCSS
Role = ''
object divVisualizer: TWebHTMLDiv
AlignWithMargins = True
Left = 384
Top = 3
Width = 320
Height = 80
Margins.Left = 0
Margins.Right = 0
ElementClassName = 'rounded bg-dark overflow-hidden'
ElementID = 'divVisualizer'
Align = alClient
ElementFont = efCSS
Role = ''
end
object divTopLeft: TWebHTMLDiv
AlignWithMargins = True
Left = 3
Top = 3
Width = 378
Height = 80
ElementClassName = 'rounded bg-dark overflow-hidden'
ElementID = 'divTopLeft'
Align = alLeft
ChildOrder = 1
ElementFont = efCSS
Role = ''
object btnSaveProject: TWebButton
AlignWithMargins = True
Left = 156
Top = 8
Width = 54
Height = 64
Hint = 'Download Project'
Margins.Left = 8
Margins.Top = 8
Margins.Right = 8
Margins.Bottom = 8
Align = alLeft
Caption = '<i class="fa-solid fa-download fa-3x"></i>'
ChildOrder = 2
ElementClassName = 'btn btn-dark text-white'
ElementID = 'btnSaveProject'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
end
object btnLoadProject: TWebButton
AlignWithMargins = True
Left = 86
Top = 8
Width = 54
Height = 64
Hint = 'Upload Project'
Margins.Left = 16
Margins.Top = 8
Margins.Right = 8
Margins.Bottom = 8
Align = alLeft
Caption = '<i class="fa-solid fa-upload fa-3x"></i>'
ChildOrder = 3
ElementClassName = 'btn btn-dark text-white'
ElementID = 'btnLoadProject'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
end
object WebButton4: TWebButton
AlignWithMargins = True
Left = 8
Top = 8
Width = 54
Height = 64
Hint = 'Load Track'
Margins.Left = 8
Margins.Top = 8
Margins.Right = 8
Margins.Bottom = 8
Align = alLeft
Caption = '<i class="fa-solid fa-music fa-3x"></i>'
ChildOrder = 4
ElementClassName = 'btn btn-link text-decoration-none'
ElementID = 'buttonEditor'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
end
object btnReset: TWebButton
AlignWithMargins = True
Left = 226
Top = 8
Width = 54
Height = 64
Hint = 'New Project'
Margins.Left = 8
Margins.Top = 8
Margins.Right = 8
Margins.Bottom = 8
Align = alLeft
Caption = '<i class="fa-solid fa-recycle fa-3x"></i>'
ChildOrder = 2
ElementClassName = 'btn btn-dark text-white'
ElementID = 'btnResetProject'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
OnClick = btnResetClick
end
end
object WebHTMLDiv2: TWebHTMLDiv
AlignWithMargins = True
Left = 707
Top = 3
Width = 376
Height = 80
ElementClassName = 'rounded bg-dark'
ElementID = 'divTopRight'
Align = alRight
ChildOrder = 2
ElementFont = efCSS
Role = ''
object btnPlay: TWebButton
AlignWithMargins = True
Left = 293
Top = 8
Width = 75
Height = 64
Hint = 'Play / Pause'
Margins.Left = 0
Margins.Top = 8
Margins.Right = 8
Margins.Bottom = 8
Align = alRight
Caption = '<i class="fa-solid fa-play fa-3x"></i>'
ChildOrder = 3
ElementClassName = 'btn btn-dark text-white'
ElementID = 'btnPlay'
ElementFont = efCSS
HeightPercent = 100.000000000000000000
ShowHint = True
WidthPercent = 100.000000000000000000
OnClick = btnPlayClick
end
object divMasterVolumeHolder: TWebHTMLDiv
Left = 37
Top = 12
Width = 100
Height = 56
ElementID = 'divMasterVolumeHolder'
ChildOrder = 1
ElementFont = efCSS
HTML.Strings = (
'<div class="CusomTrackbar" title="Master Volume" style="z-index:' +
' 10; position:absolute; transform:rotate(-20deg); left:5px; widt' +
'h:100px; height:20px; top:17px;">'
' <div class="rounded border bg-white" style="border-color: #000' +
' !important; position:absolute; width:86px; height:10px; top:5px' +
'; left:7px"></div>'
' <div id="trackerVolume"'
' class="draggableTrackbar rounded-pill border border-2"'
' style="cursor:nesw-resize; border-color:#000 !importan' +
't; background-color: #f00; position:absolute; width: 20px; heigh' +
't: 20px; top: 0px; '
'left:0px;transform:translate(40px,0px)" '
' data-x="40">'
' </div>'
'</div>')
Role = ''
end
object divMasterPanHolder: TWebHTMLDiv
Left = 112
Top = 12
Width = 100
Height = 56
ElementID = 'divMasterPanHolder'
ChildOrder = 2
ElementFont = efCSS
HTML.Strings = (
'<div class="CusomTrackbar" title="Master Balance" style="positio' +
'n:absolute; transform:rotate(-20deg); left:5px; width:100px; hei' +
'ght:20px; top:17px;">'
' <div class="rounded border bg-white" style="border-color: #000' +
' !important; position:absolute; width:86px; height:10px; top:5px' +
'; left:7px"></div>'
' <div id="trackerBalance"'
' class="draggableTrackbar rounded-pill border border-2"'
' style="cursor:nesw-resize; border-color:#000 !importan' +
't; background-color: #070; position:absolute; width: 20px; heigh' +
't: 20px; top: 0px; '
'left:0px;transform:translate(40px,0px)" '
' data-x="40">'
' </div>'
'</div>')
Role = ''
end
object btnMute: TWebButton
AlignWithMargins = True
Left = -2
Top = 18
Width = 54
Height = 54
Hint = 'Master Mute'
Margins.Left = 8
Margins.Top = 8
Margins.Right = 8
Margins.Bottom = 8
Caption = '<i class="fa-solid fa-volume-off text-secondary fa-xl"></i>'
ChildOrder = 2
ElementClassName = 'btn btn-link text-decoration-none'
ElementID = 'btnMute'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
OnClick = btnMuteClick
end
object btnExport: TWebButton
AlignWithMargins = True
Left = 218
Top = 8
Width = 75
Height = 64
Hint = 'Export Audio File'
Margins.Left = 0
Margins.Top = 8
Margins.Right = 0
Margins.Bottom = 8
Align = alRight
Caption =
'<i class="fa-solid fa-bullseye text-secondary fa-3x pe-none"></i' +
'>'
ChildOrder = 3
ElementClassName = 'btn btn-dark'
ElementID = 'btnExport'
ElementFont = efCSS
HeightPercent = 100.000000000000000000
ShowHint = True
WidthPercent = 100.000000000000000000
OnClick = btnExportClick
end
end
end
object divBottom: TWebHTMLDiv
AlignWithMargins = True
Left = 3
Top = 631
Width = 1086
Height = 62
ElementClassName = 'rounded-3 bg-black border border-secondary'
ElementID = 'divBottom'
Align = alBottom
ChildOrder = 1
ElementFont = efCSS
Role = ''
object divBottomLeft: TWebHTMLDiv
AlignWithMargins = True
Left = 3
Top = 3
Width = 376
Height = 56
ElementClassName = 'rounded bg-dark'
ElementID = 'divBottomLeft'
Align = alLeft
ChildOrder = 1
ElementFont = efCSS
Role = ''
object btnLoadTrack: TWebButton
AlignWithMargins = True
Left = 3
Top = 3
Width = 54
Height = 50
Hint = 'Load Track'
Align = alLeft
Caption = '<i class="fa-solid fa-plus fa-2x"></i>'
ElementClassName = 'btn btn-dark text-white '
ElementID = 'btnLoadTrack'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
OnClick = btnLoadTrackClick
end
object btnRecordTrack: TWebButton
AlignWithMargins = True
Left = 63
Top = 3
Width = 54
Height = 50
Hint = 'Record Track'
Align = alLeft
Caption = '<i class="fa-solid fa-microphone fa-2x"></i>'
ChildOrder = 1
ElementClassName = 'btn btn-dark text-white '
ElementID = 'btnRecordTrack'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
end
object btnCopyTrack: TWebButton
AlignWithMargins = True
Left = 243
Top = 3
Width = 54
Height = 50
Hint = 'Clone Track'
Align = alLeft
Caption = '<i class="fa-solid fa-clone fa-2x"></i>'
ChildOrder = 1
ElementClassName = 'btn btn-dark text-white '
ElementID = 'btnCopyTrack'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
OnClick = btnCopyTrackClick
end
object btnRemoveTrack: TWebButton
AlignWithMargins = True
Left = 303
Top = 3
Width = 54
Height = 50
Hint = 'Remove Track'
Align = alLeft
Caption = '<i class="fa-solid fa-trash-can fa-2x"></i>'
ChildOrder = 1
ElementClassName = 'btn btn-dark text-white '
ElementID = 'btnRemoveTrack'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
OnClick = btnRemoveTrackClick
end
object btnCreateTrack: TWebButton
AlignWithMargins = True
Left = 123
Top = 3
Width = 54
Height = 50
Hint = 'Create Track'
Align = alLeft
Caption = '<i class="fa-solid fa-wave-square fa-2x"></i>'
ChildOrder = 1
ElementClassName = 'btn btn-dark text-white '
ElementID = 'btnCreateTrack'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
end
object btnInstrumentLibrary: TWebButton
AlignWithMargins = True
Left = 183
Top = 3
Width = 54
Height = 50
Hint = 'InstrumentLibrary'
Align = alLeft
Caption = '<i class="fa-solid fa-guitar fa-2x"></i>'
ChildOrder = 1
ElementClassName = 'btn btn-dark text-white '
ElementID = 'btnInstrumentTrack'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
ShowHint = True
WidthStyle = ssAuto
WidthPercent = 100.000000000000000000
end
end
object divBottomMiddle: TWebHTMLDiv
AlignWithMargins = True
Left = 382
Top = 3
Width = 322
Height = 56
Margins.Left = 0
Margins.Right = 0
ElementClassName = 'rounded bg-dark'
ElementID = 'divBottomMiddle'
Align = alClient
ChildOrder = 1
ElementFont = efCSS
Role = ''
end
object divBottomRight: TWebHTMLDiv
AlignWithMargins = True
Left = 707
Top = 3
Width = 376
Height = 56
ElementClassName = 'rounded bg-dark overflow-hidden'
ElementID = 'divBottomRight'
Align = alRight
ChildOrder = 2
ElementFont = efCSS
Role = ''
object labelZoom: TWebLabel
Left = 205
Top = 3
Width = 578
Height = 18
Caption = 'labelZoom'
ElementLabelClassName = 'text-white'
ElementID = 'labelZoom'
ElementFont = efCSS
HeightPercent = 100.000000000000000000
HTML =
'<div style="z-index: 0; font-size: 11px; color: pink; line-heigh' +
't: 1;">Zoom<br />5</div>'
WidthPercent = 100.000000000000000000
end
object labelTime: TWebLabel
Left = 315
Top = 30
Width = 607
Height = 18
Alignment = taRightJustify
Caption = 'labelTime'
ElementLabelClassName = 'text-white'
ElementID = 'labelTime'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
HTML =
'<div style="z-index: 0; font-size: 11px; color: orange; line-hei' +
'ght: 1;">5m<br />Time</div>'
WidthPercent = 100.000000000000000000
end
object labelEditMode: TWebLabel
Left = 10
Top = 5
Width = 866
Height = 18
Caption = 'labelZoom'
ElementLabelClassName = 'text-white'
ElementID = 'labelEditMode'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
HTML =
'<div style="font-size: 12px; color: white; font-weight:500;">Tri' +
'm<span style="font-weight:400; color:gray;"> / Pitch</span></div' +
'>'
WidthPercent = 100.000000000000000000
end
object divZoomHolder: TWebHTMLDiv
Left = 190
Top = 0
Width = 100
Height = 56
ElementID = 'divZoomHolder'
ChildOrder = 1
ElementFont = efCSS
HTML.Strings = (
'<div class="CusomTrackbar" title="Zoom" style="z-index: 10; posi' +
'tion:absolute; transform:rotate(-20deg); left:5px; width:100px; ' +
'height:20px; top:17px;">'
' <div class="rounded border bg-white" style="border-color: #000' +
' !important; position:absolute; width:86px; height:10px; top:5px' +
'; left:7px"></div>'
' <div id="trackerZoom"'
' class="draggableTrackbar rounded-pill border border-2"'
' style="cursor:nesw-resize; border-color:#000 !importan' +
't; background-color: pink; position:absolute; width: 20px; heigh' +
't: 20px; top: 0px; '
'left:0px;transform:translate(40px,0px)" '
' data-x="40">'
' </div>'
'</div>')
Role = ''
end
object divTimeHolder: TWebHTMLDiv
Left = 266
Top = 0
Width = 100
Height = 56
ElementID = 'divTimeHolder'
ChildOrder = 2
ElementFont = efCSS
HTML.Strings = (
'<div class="CusomTrackbar" title="Zoom" style="position:absolute' +
'; transform:rotate(-20deg); left:5px; width:100px; height:20px; ' +
'top:17px;">'
' <div class="rounded border bg-white" style="border-color: #000' +
' !important; position:absolute; width:86px; height:10px; top:5px' +
'; left:7px"></div>'
' <div id="trackerTime"'
' class="draggableTrackbar rounded-pill border border-2"'
' style="cursor:nesw-resize; border-color:#000 !importan' +
't; background-color: orange; position:absolute; width: 20px; hei' +
'ght: 20px; top: 0px; '
'left:0px;transform:translate(40px,0px)" '
' data-x="40">'
' </div>'
'</div>')
Role = ''
end
object toggleEditMode: TWebToggleButton
Left = 16
Top = 25
Width = 44
Height = 22
ElementClassName = 'rounded'
ElementID = 'toggleEditMode'
ElementFont = efCSS
OnClick = toggleEditModeClick
end
end
end
object divMiddle: TWebHTMLDiv
AlignWithMargins = True
Left = 3
Top = 130
Width = 1086
Height = 498
Margins.Top = 0
Margins.Bottom = 0
ElementClassName = 'rounded-3 bg-black border border-secondary'
ElementID = 'divMiddle'
Align = alClient
ChildOrder = 1
ElementFont = efCSS
Role = ''
end
object divTimeline: TWebHTMLDiv
AlignWithMargins = True
Left = 3
Top = 92
Width = 1086
Height = 35
Margins.Top = 0
ElementClassName = 'rounded-3 bg-black border border-secondary'
ElementID = 'divTimeline'
Align = alTop
ChildOrder = 1
ElementFont = efCSS
Role = ''
object divTimelineLeft: TWebHTMLDiv
AlignWithMargins = True
Left = 3
Top = 3
Width = 376
Height = 29
ElementClassName = 'rounded bg-dark'
ElementID = 'divTimelineLeft'
Align = alLeft
ChildOrder = 1
ElementFont = efCSS
Role = ''
object divElapsed: TWebLabel
AlignWithMargins = True
Left = 7
Top = 1
Width = 87
Height = 28
Margins.Left = 7
Margins.Top = 1
Margins.Right = 0
Margins.Bottom = 0
Align = alLeft
Caption = '00:00:00.000'
ElementLabelClassName = 'text-white'
ElementID = 'divElapsed'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
Layout = tlCenter
WidthPercent = 100.000000000000000000
ExplicitHeight = 18
end
end
object divTimelineMiddle: TWebHTMLDiv
AlignWithMargins = True
Left = 382
Top = 3
Width = 322
Height = 29
Margins.Left = 0
Margins.Right = 0
ElementClassName = 'rounded bg-dark overflow-hidden'
ElementID = 'divTimelineMiddle'
Align = alClient
ChildOrder = 1
ElementFont = efCSS
Role = ''
object divTimelineChart: TWebHTMLDiv
Left = 0
Top = 0
Width = 322
Height = 29
Margins.Left = 0
Margins.Right = 0
ElementID = 'divTimelineChart'
Align = alClient
ChildOrder = 1
ElementFont = efCSS
Role = ''
end
end
object divTimelineRight: TWebHTMLDiv
AlignWithMargins = True
Left = 707
Top = 3
Width = 376
Height = 29
ElementClassName = 'rounded bg-dark'
ElementID = 'divTimelineRight'
Align = alRight
ChildOrder = 2
ElementFont = efCSS
Role = ''
object divRemaining: TWebLabel
AlignWithMargins = True
Left = 281
Top = 1
Width = 87
Height = 28
Margins.Left = 0
Margins.Top = 1
Margins.Right = 8
Margins.Bottom = 0
Align = alRight
Alignment = taRightJustify
Caption = '00:00:00.000'
ElementLabelClassName = 'text-white'
ElementID = 'divRemaining'
ElementFont = efCSS
HeightStyle = ssAuto
HeightPercent = 100.000000000000000000
Layout = tlCenter
WidthPercent = 100.000000000000000000
ExplicitHeight = 18
end
end
end
end
object divCursor: TWebHTMLDiv
Left = 384
Top = 94
Width = 20
Height = 41
ElementID = 'divCursor'
ChildOrder = 1
ElementFont = efCSS
HTML.Strings = (
'<div style="position:absolute; z-index: 999; height: 100%; colo' +
'r: silver;" class="draggableCursor">'
' <i class="fa-solid fa-droplet fa-rotate-180"></i>'
' <div style="position:absolute; background-color:white; opacity' +
':0.25; width: 2px; top:10px; left:5px; height:100%;"></div>'
'</div>')
Role = ''
end
object WebOpenDialogTracks: TWebOpenDialog
Accept = 'audio/*,.mp3,.wav'
MultiFile = True
OnGetFileAsArrayBuffer = WebOpenDialogTracksGetFileAsArrayBuffer
Left = 57
Top = 579
end
object tmrCursor: TWebTimer
Enabled = False
Interval = 100
OnTimer = tmrCursorTimer
Left = 600
Top = 152
end
end