Skip to content

Commit 1b6f5ef

Browse files
committed
update ui to allow 255 waves
1 parent 157b640 commit 1b6f5ef

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/hugedatatypes.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ TRegisters = record
304304

305305
TWaveBankV1 = packed array[0..15] of TWaveV1;
306306
TWaveBankV2 = packed array[0..15] of TWaveV2;
307-
TWaveBank = TWaveBankV2;
307+
TWaveBankV3 = packed array[0..255] of TWaveV2;
308+
TWaveBank = TWaveBankV3;
308309
TRoutineBank = packed array[0..15] of TRoutine;
309310

310311
TOrderMatrix = packed array[0..3] of array of Integer;

src/tracker.lfm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ object frmTracker: TfrmTracker
6262
Height = 598
6363
Top = 0
6464
Width = 936
65-
ActivePage = GeneralTabSheet
65+
ActivePage = WavesTabSheet
6666
Align = alClient
6767
ParentFont = False
68-
TabIndex = 0
68+
TabIndex = 3
6969
TabOrder = 0
7070
object GeneralTabSheet: TTabSheet
7171
Caption = 'General'
@@ -1112,7 +1112,7 @@ object frmTracker: TfrmTracker
11121112
Top = 8
11131113
Width = 568
11141114
Caption = 'Wave Editor'
1115-
ClientHeight = 135
1115+
ClientHeight = 120
11161116
ClientWidth = 564
11171117
ParentFont = False
11181118
TabOrder = 0
@@ -1130,7 +1130,7 @@ object frmTracker: TfrmTracker
11301130
Height = 27
11311131
Top = 8
11321132
Width = 80
1133-
MaxValue = 15
1133+
MaxValue = 255
11341134
OnChange = WaveEditNumberSpinnerChange
11351135
ParentFont = False
11361136
TabOrder = 0

src/tracker.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,11 +1494,11 @@ procedure TfrmTracker.FormCreate(Sender: TObject);
14941494
TreeView1.Items.AddChild(DutyInstrumentsNode, IntToStr(PUI)+':').Data := {%H-}Pointer(PUI);
14951495
TreeView1.Items.AddChild(WaveInstrumentsNode, IntToStr(PUI)+':').Data := {%H-}Pointer(PUI);
14961496
TreeView1.Items.AddChild(NoiseInstrumentsNode, IntToStr(PUI)+':').Data := {%H-}Pointer(PUI);
1497+
TreeView1.Items.AddChild(RoutinesNode, 'Routine '+IntToStr(PUI)).Data := {%H-}Pointer(PUI);
14971498
end;
14981499

1499-
for PUI := 0 to 15 do begin
1500+
for PUI := 0 to 255 do begin
15001501
TreeView1.Items.AddChild(WavesNode, 'Wave '+IntToStr(PUI)).Data := {%H-}Pointer(PUI);
1501-
TreeView1.Items.AddChild(RoutinesNode, 'Routine '+IntToStr(PUI)).Data := {%H-}Pointer(PUI);
15021502
end;
15031503

15041504
InitializeSong(Song);

0 commit comments

Comments
 (0)