@@ -648,13 +648,13 @@ begin |
| 648 |
end |
648 |
end |
| 649 |
else begin |
649 |
else begin |
| 650 |
case CurrentInstrument^.VolSweepDirection of |
650 |
case CurrentInstrument^.VolSweepDirection of |
| 651 |
Down: begin // Envelope down, check length cut |
651 |
stDown: begin // Envelope stDown, check length cut |
| 652 |
For I := 0 to V do |
652 |
For I := 0 to V do |
| 653 |
LineTo( Min(I*S,L)*Interval, H-(V-I)*HInterval); |
653 |
LineTo( Min(I*S,L)*Interval, H-(V-I)*HInterval); |
| 654 |
LineTo(W, H); |
654 |
LineTo(W, H); |
| 655 |
LineTo(Trunc(L*Interval), H); |
655 |
LineTo(Trunc(L*Interval), H); |
| 656 |
end; |
656 |
end; |
| 657 |
Up: begin // Envelope up, check length cut |
657 |
stUp: begin // Envelope stUp, check length cut |
| 658 |
For I := 0 to 15-V do |
658 |
For I := 0 to 15-V do |
| 659 |
LineTo( Min(I*S,L)*Interval, (15-V-I)*HInterval+9); |
659 |
LineTo( Min(I*S,L)*Interval, (15-V-I)*HInterval+9); |
| 660 |
LineTo(L*Interval, H-15*HInterval); |
660 |
LineTo(L*Interval, H-15*HInterval); |
@@ -1173,8 +1173,8 @@ begin |
| 1173 |
|
1173 |
|
| 1174 |
StartVolTrackbar.Position := CI^.InitialVolume; |
1174 |
StartVolTrackbar.Position := CI^.InitialVolume; |
| 1175 |
case CI^.VolSweepDirection of |
1175 |
case CI^.VolSweepDirection of |
| 1176 |
Up: DirectionComboBox.Text := 'Up'; |
1176 |
stUp: DirectionComboBox.Text := 'Up'; |
| 1177 |
Down: DirectionComboBox.Text := 'Down'; |
1177 |
stDown: DirectionComboBox.Text := 'Down'; |
| 1178 |
end; |
1178 |
end; |
| 1179 |
EnvChangeTrackbar.Position := CI^.VolSweepAmount; |
1179 |
EnvChangeTrackbar.Position := CI^.VolSweepAmount; |
| 1180 |
|
1180 |
|
@@ -1182,8 +1182,8 @@ begin |
| 1182 |
itSquare: begin |
1182 |
itSquare: begin |
| 1183 |
SweepTimeCombobox.ItemIndex := CI^.SweepTime; |
1183 |
SweepTimeCombobox.ItemIndex := CI^.SweepTime; |
| 1184 |
case CI^.SweepIncDec of |
1184 |
case CI^.SweepIncDec of |
| 1185 |
Up: SweepDirectionCombobox.Text := 'Up'; |
1185 |
stUp: SweepDirectionCombobox.Text := 'Up'; |
| 1186 |
Down: SweepDirectionCombobox.Text := 'Down'; |
1186 |
stDown: SweepDirectionCombobox.Text := 'Down'; |
| 1187 |
end; |
1187 |
end; |
| 1188 |
SweepSizeTrackbar.Position := CI^.SweepShift; |
1188 |
SweepSizeTrackbar.Position := CI^.SweepShift; |
| 1189 |
DutyCombobox.ItemIndex := CI^.Duty; |
1189 |
DutyCombobox.ItemIndex := CI^.Duty; |
@@ -1319,8 +1319,8 @@ end; |
| 1319 |
procedure TfrmTracker.SweepDirectionComboboxChange(Sender: TObject); |
1319 |
procedure TfrmTracker.SweepDirectionComboboxChange(Sender: TObject); |
| 1320 |
begin |
1320 |
begin |
| 1321 |
case SweepDirectionComboBox.Text of |
1321 |
case SweepDirectionComboBox.Text of |
| 1322 |
'Up': CurrentInstrument^.SweepIncDec := Up; |
1322 |
'Up': CurrentInstrument^.SweepIncDec := stUp; |
| 1323 |
'Down': CurrentInstrument^.SweepIncDec := Down; |
1323 |
'Down': CurrentInstrument^.SweepIncDec := stDown; |
| 1324 |
end; |
1324 |
end; |
| 1325 |
EnvelopePaintBox.Invalidate; |
1325 |
EnvelopePaintBox.Invalidate; |
| 1326 |
end; |
1326 |
end; |
@@ -1570,8 +1570,8 @@ end; |
| 1570 |
procedure TfrmTracker.DirectionComboBoxChange(Sender: TObject); |
1570 |
procedure TfrmTracker.DirectionComboBoxChange(Sender: TObject); |
| 1571 |
begin |
1571 |
begin |
| 1572 |
case DirectionComboBox.Text of |
1572 |
case DirectionComboBox.Text of |
| 1573 |
'Up': CurrentInstrument^.VolSweepDirection := Up; |
1573 |
'Up': CurrentInstrument^.VolSweepDirection := stUp; |
| 1574 |
'Down': CurrentInstrument^.VolSweepDirection := Down; |
1574 |
'Down': CurrentInstrument^.VolSweepDirection := stDown; |
| 1575 |
end; |
1575 |
end; |
| 1576 |
EnvelopePaintBox.Invalidate; |
1576 |
EnvelopePaintBox.Invalidate; |
| 1577 |
end; |
1577 |
end; |