@@ -7,7 +7,7 @@ unit Song; |
| 7 |
|
7 |
|
| 8 |
interface |
8 |
interface |
| 9 |
|
9 |
|
| 10 |
uses Classes, HugeDatatypes, instruments, Constants; |
10 |
uses Classes, HugeDatatypes, instruments, Constants, waves; |
| 11 |
|
11 |
|
| 12 |
type |
12 |
type |
| 13 |
TSongV1 = packed record |
13 |
TSongV1 = packed record |
@@ -18,7 +18,7 @@ type |
| 18 |
Comment: ShortString; |
18 |
Comment: ShortString; |
| 19 |
|
19 |
|
| 20 |
Instruments: TInstrumentBank; |
20 |
Instruments: TInstrumentBank; |
| 21 |
Waves: TWaveBank; |
21 |
Waves: TWaveBankV1; |
| 22 |
|
22 |
|
| 23 |
TicksPerRow: Integer; |
23 |
TicksPerRow: Integer; |
| 24 |
|
24 |
|
@@ -34,7 +34,7 @@ type |
| 34 |
Comment: ShortString; |
34 |
Comment: ShortString; |
| 35 |
|
35 |
|
| 36 |
Instruments: TInstrumentBank; |
36 |
Instruments: TInstrumentBank; |
| 37 |
Waves: TWaveBank; |
37 |
Waves: TWaveBankV1; |
| 38 |
|
38 |
|
| 39 |
TicksPerRow: Integer; |
39 |
TicksPerRow: Integer; |
| 40 |
|
40 |
|
@@ -305,7 +305,7 @@ begin |
| 305 |
end; |
305 |
end; |
| 306 |
|
306 |
|
| 307 |
for I := Low(S.Waves) to High(S.Waves) do begin |
307 |
for I := Low(S.Waves) to High(S.Waves) do begin |
| 308 |
for J := 0 to 32 do |
308 |
for J := Low(TWave) to High(TWave) do |
| 309 |
S.Waves[I][J] := random($F); |
309 |
S.Waves[I][J] := random($F); |
| 310 |
end; |
310 |
end; |
| 311 |
|
311 |
|
@@ -363,7 +363,9 @@ begin |
| 363 |
end; |
363 |
end; |
| 364 |
end; |
364 |
end; |
| 365 |
|
365 |
|
| 366 |
SV3.Waves:=S.Waves; |
366 |
for I := Low(TWaveBank) to High(TWaveBank) do |
|
|
367 |
Move(S.Waves[I], SV3.Waves[I], SizeOf(TWave)); |
|
|
368 |
|
| 367 |
SV3.TicksPerRow:=S.TicksPerRow; |
369 |
SV3.TicksPerRow:=S.TicksPerRow; |
| 368 |
SV3.Patterns:=S.Patterns; |
370 |
SV3.Patterns:=S.Patterns; |
| 369 |
SV3.OrderMatrix:=S.OrderMatrix; |
371 |
SV3.OrderMatrix:=S.OrderMatrix; |