@@ -753,7 +753,12 @@ begin |
| 753 |
end; |
753 |
end; |
| 754 |
itNoise: begin |
754 |
itNoise: begin |
| 755 |
Regs := NoiseInstrumentToRegisters(Freq, True, Instr); |
755 |
Regs := NoiseInstrumentToRegisters(Freq, True, Instr); |
| 756 |
Addr := SymbolTable.KeyData['instr']; |
756 |
if Instr.LengthEnabled then |
|
|
757 |
Regs.NR41 := Regs.NR41 or %01000000; |
|
|
758 |
if Instr.CounterStep = swSeven then |
|
|
759 |
Regs.NR41 := Regs.NR41 or %10000000; |
|
|
760 |
|
|
|
761 |
Addr := SymbolTable.KeyData[SYM_HALT_INSTR]; |
| 757 |
Spokeb(Addr, Regs.NR42); |
762 |
Spokeb(Addr, Regs.NR42); |
| 758 |
Spokeb(Addr+1, Regs.NR41); |
763 |
Spokeb(Addr+1, Regs.NR41); |
| 759 |
|
764 |
|
@@ -761,14 +766,8 @@ begin |
| 761 |
Spokeb(Addr+2+I, Byte(Instr.NoiseMacro[I])); |
766 |
Spokeb(Addr+2+I, Byte(Instr.NoiseMacro[I])); |
| 762 |
end; |
767 |
end; |
| 763 |
|
768 |
|
| 764 |
PokeSymbol('macro_index', 1); |
769 |
PokeSymbol(SYM_HALT_MACRO_INDEX, 1); |
| 765 |
PokeSymbol('note', Note); |
770 |
PokeSymbol(SYM_HALT_NOTE, Note); |
| 766 |
|
|
|
| 767 |
{Regs := NoiseInstrumentToRegisters(Freq, True, Instr); |
|
|
| 768 |
Spokeb(NR41, Regs.NR41); |
|
|
| 769 |
Spokeb(NR42, Regs.NR42); |
|
|
| 770 |
Spokeb(NR43, Regs.NR43); |
|
|
| 771 |
Spokeb(NR44, Regs.NR44);} |
|
|
| 772 |
end; |
771 |
end; |
| 773 |
end; |
772 |
end; |
| 774 |
end; |
773 |
end; |
@@ -1114,16 +1113,9 @@ begin |
| 1114 |
end; |
1113 |
end; |
| 1115 |
|
1114 |
|
| 1116 |
itNoise: begin |
1115 |
itNoise: begin |
| 1117 |
{ShiftClockTrackbar.Position := CI^.ShiftClockFreq; |
1116 |
//ShiftClockTrackbar.Position := CI^.ShiftClockFreq; |
| 1118 |
DivRatioTrackbar.Position := CI^.DividingRatio; |
1117 |
//DivRatioTrackbar.Position := CI^.DividingRatio; |
| 1119 |
SevenBitCounterCheckbox.Checked := CI^.CounterStep = swSeven; |
1118 |
SevenBitCounterCheckbox.Checked := CI^.CounterStep = swSeven; |
| 1120 |
|
|
|
| 1121 |
Edit1.Text := IntToStr(CI^.NoiseMacro[0]); |
|
|
| 1122 |
Edit2.Text := IntToStr(CI^.NoiseMacro[1]); |
|
|
| 1123 |
Edit3.Text := IntToStr(CI^.NoiseMacro[2]); |
|
|
| 1124 |
Edit4.Text := IntToStr(CI^.NoiseMacro[3]); |
|
|
| 1125 |
Edit5.Text := IntToStr(CI^.NoiseMacro[4]); |
|
|
| 1126 |
Edit6.Text := IntToStr(CI^.NoiseMacro[5]);} |
|
|
| 1127 |
end; |
1119 |
end; |
| 1128 |
end; |
1120 |
end; |
| 1129 |
|
1121 |
|