new DSP architecture (is this one correct ?)

Start of voice & echo functions (need to name them)
This commit is contained in:
Melefo
2021-02-03 01:34:43 +01:00
parent 694ea7f9d4
commit 61ef40e968
7 changed files with 774 additions and 302 deletions

View File

@@ -84,143 +84,156 @@ namespace ComSquare::Debugger
this->_ui.programCounterLineEdit->setText(Utility::to_hex(this->_internalRegisters.pc + 0x0001u).c_str());
this->_ui.programStatusWordLineEdit->setText(this->_getPSWString().c_str());
this->_ui.mvolLprogressBar->setValue(this->_dsp->getRegisters().mvolL);
this->_ui.mvolRprogressBar->setValue(this->_dsp->getRegisters().mvolR);
this->_ui.evolLprogressBar->setValue(this->_dsp->getRegisters().evolL);
this->_ui.evolRprogressBar->setValue(this->_dsp->getRegisters().evolR);
this->_ui.echoprogressBar->setValue(this->_dsp->getRegisters().efb);
this->_ui.flagslineEdit->setText(Utility::to_binary(this->_dsp->getRegisters().flg).c_str());
this->_ui.sourceDirectoryLineEdit->setText(Utility::to_hex(this->_dsp->getRegisters().dir).c_str());
this->_ui.echoBufferOffsetLineEdit->setText(Utility::to_hex(this->_dsp->getRegisters().esa).c_str());
this->_ui.echoDelayLineEdit->setText(Utility::to_hex(this->_dsp->getRegisters().edl).c_str());
auto voices = this->_dsp->getVoices();
auto master = this->_dsp->getMaster();
auto echo = this->_dsp->getEcho();
auto noise = this->_dsp->getNoise();
auto brr = this->_dsp->getBrr();
auto latch = this->_dsp->getLatch();
this->_ui.VolumeLprogressBar->setValue(this->_dsp->getVoices()[0].volL);
this->_ui.VolumeRprogressBar->setValue(this->_dsp->getVoices()[0].volR);
this->_ui.WaveHeightprogressBar->setValue(this->_dsp->getVoices()[0].outx);
this->_ui.EchoFIRCoeffprogressBar->setValue(this->_dsp->getVoices()[0].coeff);
this->_ui.PitchlineEdit->setText(Utility::to_hex(this->_dsp->getVoices()[0].pitch).c_str());
this->_ui.sourceNumberLineEdit->setText(Utility::to_hex(this->_dsp->getVoices()[0].srcn).c_str());
this->_ui.GainlineEdit->setText(Utility::to_hex(this->_dsp->getVoices()[0].gain).c_str());
this->_ui.EnvelopelineEdit->setText(Utility::to_hex(this->_dsp->getVoices()[0].envelope).c_str());
this->_ui.EnvelopeValueLineEdit->setText(Utility::to_hex(this->_dsp->getVoices()[0].envx).c_str());
this->_ui.KeyOncheckBox->setChecked(this->_dsp->getVoices()[0].kon);
this->_ui.KeyOffcheckBox->setChecked(this->_dsp->getVoices()[0].kof);
this->_ui.NoisecheckBox->setChecked(this->_dsp->getVoices()[0].non);
this->_ui.EchocheckBox->setChecked(this->_dsp->getVoices()[0].eon);
this->_ui.SampleEndcheckBox->setChecked(this->_dsp->getVoices()[0].endx);
this->_ui.PitchModulationcheckBox->setChecked(this->_dsp->getVoices()[0].pmon);
this->_ui.mvolLprogressBar->setValue(master.volume[0]);
this->_ui.mvolRprogressBar->setValue(master.volume[1]);
this->_ui.evolLprogressBar->setValue(echo.volume[0]);
this->_ui.evolRprogressBar->setValue(echo.volume[1]);
this->_ui.echoprogressBar->setValue(echo.feedback);
this->_ui.VolumeLprogressBar_2->setValue(this->_dsp->getVoices()[1].volL);
this->_ui.VolumeRprogressBar_2->setValue(this->_dsp->getVoices()[1].volR);
this->_ui.WaveHeightprogressBar_2->setValue(this->_dsp->getVoices()[1].outx);
this->_ui.EchoFIRCoeffprogressBar_2->setValue(this->_dsp->getVoices()[1].coeff);
this->_ui.PitchlineEdit_2->setText(Utility::to_hex(this->_dsp->getVoices()[1].pitch).c_str());
this->_ui.sourceNumberLineEdit_2->setText(Utility::to_hex(this->_dsp->getVoices()[1].srcn).c_str());
this->_ui.GainlineEdit_2->setText(Utility::to_hex(this->_dsp->getVoices()[1].gain).c_str());
this->_ui.EnvelopelineEdit_2->setText(Utility::to_hex(this->_dsp->getVoices()[1].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_2->setText(Utility::to_hex(this->_dsp->getVoices()[1].envx).c_str());
this->_ui.KeyOncheckBox_2->setChecked(this->_dsp->getVoices()[1].kon);
this->_ui.KeyOffcheckBox_2->setChecked(this->_dsp->getVoices()[1].kof);
this->_ui.NoisecheckBox_2->setChecked(this->_dsp->getVoices()[1].non);
this->_ui.EchocheckBox_2->setChecked(this->_dsp->getVoices()[1].eon);
this->_ui.SampleEndcheckBox_2->setChecked(this->_dsp->getVoices()[1].endx);
this->_ui.PitchModulationcheckBox_2->setChecked(this->_dsp->getVoices()[1].pmon);
uint8_t flg = 0;
flg += master.reset << 7;
flg += master.mute << 6;
flg += echo.enabled << 5;
flg += noise.clock;
this->_ui.flagslineEdit->setText(Utility::to_binary(flg).c_str());
this->_ui.sourceDirectoryLineEdit->setText(Utility::to_hex(brr.offset).c_str());
this->_ui.echoBufferOffsetLineEdit->setText(Utility::to_hex(echo.data).c_str());
this->_ui.echoDelayLineEdit->setText(Utility::to_hex(echo.delay).c_str());
this->_ui.VolumeLprogressBar_3->setValue(this->_dsp->getVoices()[2].volL);
this->_ui.VolumeRprogressBar_3->setValue(this->_dsp->getVoices()[2].volR);
this->_ui.WaveHeightprogressBar_3->setValue(this->_dsp->getVoices()[2].outx);
this->_ui.EchoFIRCoeffprogressBar_3->setValue(this->_dsp->getVoices()[2].coeff);
this->_ui.PitchlineEdit_3->setText(Utility::to_hex(this->_dsp->getVoices()[2].pitch).c_str());
this->_ui.sourceNumberLineEdit_3->setText(Utility::to_hex(this->_dsp->getVoices()[2].srcn).c_str());
this->_ui.GainlineEdit_3->setText(Utility::to_hex(this->_dsp->getVoices()[2].gain).c_str());
this->_ui.EnvelopelineEdit_3->setText(Utility::to_hex(this->_dsp->getVoices()[2].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_3->setText(Utility::to_hex(this->_dsp->getVoices()[2].envx).c_str());
this->_ui.KeyOncheckBox_3->setChecked(this->_dsp->getVoices()[2].kon);
this->_ui.KeyOffcheckBox_3->setChecked(this->_dsp->getVoices()[2].kof);
this->_ui.NoisecheckBox_3->setChecked(this->_dsp->getVoices()[2].non);
this->_ui.EchocheckBox_3->setChecked(this->_dsp->getVoices()[2].eon);
this->_ui.SampleEndcheckBox_3->setChecked(this->_dsp->getVoices()[2].endx);
this->_ui.PitchModulationcheckBox_3->setChecked(this->_dsp->getVoices()[2].pmon);
this->_ui.VolumeLprogressBar->setValue(voices[0].volume[0]);
this->_ui.VolumeRprogressBar->setValue(voices[0].volume[1]);
this->_ui.WaveHeightprogressBar->setValue(latch.outx);
this->_ui.EchoFIRCoeffprogressBar->setValue(echo.FIR[0]);
this->_ui.PitchlineEdit->setText(Utility::to_hex(voices[0].pitch).c_str());
this->_ui.sourceNumberLineEdit->setText(Utility::to_hex(voices[0].srcn).c_str());
this->_ui.GainlineEdit->setText(Utility::to_hex(voices[0].gain).c_str());
this->_ui.EnvelopelineEdit->setText(Utility::to_hex(voices[0].envelope).c_str());
this->_ui.EnvelopeValueLineEdit->setText(Utility::to_hex(voices[0].envx).c_str());
this->_ui.KeyOncheckBox->setChecked(voices[0].kon);
this->_ui.KeyOffcheckBox->setChecked(voices[0].kof);
this->_ui.NoisecheckBox->setChecked(voices[0].non);
this->_ui.EchocheckBox->setChecked(voices[0].eon);
this->_ui.SampleEndcheckBox->setChecked(voices[0].endx);
this->_ui.PitchModulationcheckBox->setChecked(voices[0].pmon);
this->_ui.VolumeLprogressBar_4->setValue(this->_dsp->getVoices()[3].volL);
this->_ui.VolumeRprogressBar_4->setValue(this->_dsp->getVoices()[3].volR);
this->_ui.WaveHeightprogressBar_4->setValue(this->_dsp->getVoices()[3].outx);
this->_ui.EchoFIRCoeffprogressBar_4->setValue(this->_dsp->getVoices()[3].coeff);
this->_ui.PitchlineEdit_4->setText(Utility::to_hex(this->_dsp->getVoices()[3].pitch).c_str());
this->_ui.sourceNumberLineEdit_4->setText(Utility::to_hex(this->_dsp->getVoices()[3].srcn).c_str());
this->_ui.GainlineEdit_4->setText(Utility::to_hex(this->_dsp->getVoices()[3].gain).c_str());
this->_ui.EnvelopelineEdit_4->setText(Utility::to_hex(this->_dsp->getVoices()[3].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_4->setText(Utility::to_hex(this->_dsp->getVoices()[3].envx).c_str());
this->_ui.KeyOncheckBox_4->setChecked(this->_dsp->getVoices()[3].kon);
this->_ui.KeyOffcheckBox_4->setChecked(this->_dsp->getVoices()[3].kof);
this->_ui.NoisecheckBox_4->setChecked(this->_dsp->getVoices()[3].non);
this->_ui.EchocheckBox_4->setChecked(this->_dsp->getVoices()[3].eon);
this->_ui.SampleEndcheckBox_4->setChecked(this->_dsp->getVoices()[3].endx);
this->_ui.PitchModulationcheckBox_4->setChecked(this->_dsp->getVoices()[3].pmon);
this->_ui.VolumeLprogressBar_2->setValue(voices[1].volume[0]);
this->_ui.VolumeRprogressBar_2->setValue(voices[1].volume[1]);
this->_ui.WaveHeightprogressBar_2->setValue(latch.outx);
this->_ui.EchoFIRCoeffprogressBar_2->setValue(echo.FIR[1]);
this->_ui.PitchlineEdit_2->setText(Utility::to_hex(voices[1].pitch).c_str());
this->_ui.sourceNumberLineEdit_2->setText(Utility::to_hex(voices[1].srcn).c_str());
this->_ui.GainlineEdit_2->setText(Utility::to_hex(voices[1].gain).c_str());
this->_ui.EnvelopelineEdit_2->setText(Utility::to_hex(voices[1].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_2->setText(Utility::to_hex(voices[1].envx).c_str());
this->_ui.KeyOncheckBox_2->setChecked(voices[1].kon);
this->_ui.KeyOffcheckBox_2->setChecked(voices[1].kof);
this->_ui.NoisecheckBox_2->setChecked(voices[1].non);
this->_ui.EchocheckBox_2->setChecked(voices[1].eon);
this->_ui.SampleEndcheckBox_2->setChecked(voices[1].endx);
this->_ui.PitchModulationcheckBox_2->setChecked(voices[1].pmon);
this->_ui.VolumeLprogressBar_5->setValue(this->_dsp->getVoices()[4].volL);
this->_ui.VolumeRprogressBar_5->setValue(this->_dsp->getVoices()[4].volR);
this->_ui.WaveHeightprogressBar_5->setValue(this->_dsp->getVoices()[4].outx);
this->_ui.EchoFIRCoeffprogressBar_5->setValue(this->_dsp->getVoices()[4].coeff);
this->_ui.PitchlineEdit_5->setText(Utility::to_hex(this->_dsp->getVoices()[4].pitch).c_str());
this->_ui.sourceNumberLineEdit_5->setText(Utility::to_hex(this->_dsp->getVoices()[4].srcn).c_str());
this->_ui.GainlineEdit_5->setText(Utility::to_hex(this->_dsp->getVoices()[4].gain).c_str());
this->_ui.EnvelopelineEdit_5->setText(Utility::to_hex(this->_dsp->getVoices()[4].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_5->setText(Utility::to_hex(this->_dsp->getVoices()[4].envx).c_str());
this->_ui.KeyOncheckBox_5->setChecked(this->_dsp->getVoices()[4].kon);
this->_ui.KeyOffcheckBox_5->setChecked(this->_dsp->getVoices()[4].kof);
this->_ui.NoisecheckBox_5->setChecked(this->_dsp->getVoices()[4].non);
this->_ui.EchocheckBox_5->setChecked(this->_dsp->getVoices()[4].eon);
this->_ui.SampleEndcheckBox_5->setChecked(this->_dsp->getVoices()[4].endx);
this->_ui.PitchModulationcheckBox_5->setChecked(this->_dsp->getVoices()[4].pmon);
this->_ui.VolumeLprogressBar_3->setValue(voices[2].volume[0]);
this->_ui.VolumeRprogressBar_3->setValue(voices[2].volume[1]);
this->_ui.WaveHeightprogressBar_3->setValue(latch.outx);
this->_ui.EchoFIRCoeffprogressBar_3->setValue(echo.FIR[2]);
this->_ui.PitchlineEdit_3->setText(Utility::to_hex(voices[2].pitch).c_str());
this->_ui.sourceNumberLineEdit_3->setText(Utility::to_hex(voices[2].srcn).c_str());
this->_ui.GainlineEdit_3->setText(Utility::to_hex(voices[2].gain).c_str());
this->_ui.EnvelopelineEdit_3->setText(Utility::to_hex(voices[2].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_3->setText(Utility::to_hex(voices[2].envx).c_str());
this->_ui.KeyOncheckBox_3->setChecked(voices[2].kon);
this->_ui.KeyOffcheckBox_3->setChecked(voices[2].kof);
this->_ui.NoisecheckBox_3->setChecked(voices[2].non);
this->_ui.EchocheckBox_3->setChecked(voices[2].eon);
this->_ui.SampleEndcheckBox_3->setChecked(voices[2].endx);
this->_ui.PitchModulationcheckBox_3->setChecked(voices[2].pmon);
this->_ui.VolumeLprogressBar_6->setValue(this->_dsp->getVoices()[5].volL);
this->_ui.VolumeRprogressBar_6->setValue(this->_dsp->getVoices()[5].volR);
this->_ui.WaveHeightprogressBar_6->setValue(this->_dsp->getVoices()[5].outx);
this->_ui.EchoFIRCoeffprogressBar_6->setValue(this->_dsp->getVoices()[5].coeff);
this->_ui.PitchlineEdit_6->setText(Utility::to_hex(this->_dsp->getVoices()[5].pitch).c_str());
this->_ui.sourceNumberLineEdit_6->setText(Utility::to_hex(this->_dsp->getVoices()[5].srcn).c_str());
this->_ui.GainlineEdit_6->setText(Utility::to_hex(this->_dsp->getVoices()[5].gain).c_str());
this->_ui.EnvelopelineEdit_6->setText(Utility::to_hex(this->_dsp->getVoices()[5].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_6->setText(Utility::to_hex(this->_dsp->getVoices()[5].envx).c_str());
this->_ui.KeyOncheckBox_6->setChecked(this->_dsp->getVoices()[5].kon);
this->_ui.KeyOffcheckBox_6->setChecked(this->_dsp->getVoices()[5].kof);
this->_ui.NoisecheckBox_6->setChecked(this->_dsp->getVoices()[5].non);
this->_ui.EchocheckBox_6->setChecked(this->_dsp->getVoices()[5].eon);
this->_ui.SampleEndcheckBox_6->setChecked(this->_dsp->getVoices()[5].endx);
this->_ui.PitchModulationcheckBox_6->setChecked(this->_dsp->getVoices()[5].pmon);
this->_ui.VolumeLprogressBar_4->setValue(voices[3].volume[0]);
this->_ui.VolumeRprogressBar_4->setValue(voices[3].volume[1]);
this->_ui.WaveHeightprogressBar_4->setValue(latch.outx);
this->_ui.EchoFIRCoeffprogressBar_4->setValue(echo.FIR[3]);
this->_ui.PitchlineEdit_4->setText(Utility::to_hex(voices[3].pitch).c_str());
this->_ui.sourceNumberLineEdit_4->setText(Utility::to_hex(voices[3].srcn).c_str());
this->_ui.GainlineEdit_4->setText(Utility::to_hex(voices[3].gain).c_str());
this->_ui.EnvelopelineEdit_4->setText(Utility::to_hex(voices[3].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_4->setText(Utility::to_hex(voices[3].envx).c_str());
this->_ui.KeyOncheckBox_4->setChecked(voices[3].kon);
this->_ui.KeyOffcheckBox_4->setChecked(voices[3].kof);
this->_ui.NoisecheckBox_4->setChecked(voices[3].non);
this->_ui.EchocheckBox_4->setChecked(voices[3].eon);
this->_ui.SampleEndcheckBox_4->setChecked(voices[3].endx);
this->_ui.PitchModulationcheckBox_4->setChecked(voices[3].pmon);
this->_ui.VolumeLprogressBar_7->setValue(this->_dsp->getVoices()[6].volL);
this->_ui.VolumeRprogressBar_7->setValue(this->_dsp->getVoices()[6].volR);
this->_ui.WaveHeightprogressBar_7->setValue(this->_dsp->getVoices()[6].outx);
this->_ui.EchoFIRCoeffprogressBar_7->setValue(this->_dsp->getVoices()[6].coeff);
this->_ui.PitchlineEdit_7->setText(Utility::to_hex(this->_dsp->getVoices()[6].pitch).c_str());
this->_ui.sourceNumberLineEdit_7->setText(Utility::to_hex(this->_dsp->getVoices()[6].srcn).c_str());
this->_ui.GainlineEdit_7->setText(Utility::to_hex(this->_dsp->getVoices()[6].gain).c_str());
this->_ui.EnvelopelineEdit_7->setText(Utility::to_hex(this->_dsp->getVoices()[6].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_7->setText(Utility::to_hex(this->_dsp->getVoices()[6].envx).c_str());
this->_ui.KeyOncheckBox_7->setChecked(this->_dsp->getVoices()[6].kon);
this->_ui.KeyOffcheckBox_7->setChecked(this->_dsp->getVoices()[6].kof);
this->_ui.NoisecheckBox_7->setChecked(this->_dsp->getVoices()[6].non);
this->_ui.EchocheckBox_7->setChecked(this->_dsp->getVoices()[6].eon);
this->_ui.SampleEndcheckBox_7->setChecked(this->_dsp->getVoices()[6].endx);
this->_ui.PitchModulationcheckBox_7->setChecked(this->_dsp->getVoices()[6].pmon);
this->_ui.VolumeLprogressBar_5->setValue(voices[4].volume[0]);
this->_ui.VolumeRprogressBar_5->setValue(voices[4].volume[1]);
this->_ui.WaveHeightprogressBar_5->setValue(latch.outx);
this->_ui.EchoFIRCoeffprogressBar_5->setValue(echo.FIR[4]);
this->_ui.PitchlineEdit_5->setText(Utility::to_hex(voices[4].pitch).c_str());
this->_ui.sourceNumberLineEdit_5->setText(Utility::to_hex(voices[4].srcn).c_str());
this->_ui.GainlineEdit_5->setText(Utility::to_hex(voices[4].gain).c_str());
this->_ui.EnvelopelineEdit_5->setText(Utility::to_hex(voices[4].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_5->setText(Utility::to_hex(voices[4].envx).c_str());
this->_ui.KeyOncheckBox_5->setChecked(voices[4].kon);
this->_ui.KeyOffcheckBox_5->setChecked(voices[4].kof);
this->_ui.NoisecheckBox_5->setChecked(voices[4].non);
this->_ui.EchocheckBox_5->setChecked(voices[4].eon);
this->_ui.SampleEndcheckBox_5->setChecked(voices[4].endx);
this->_ui.PitchModulationcheckBox_5->setChecked(voices[4].pmon);
this->_ui.VolumeLprogressBar_8->setValue(this->_dsp->getVoices()[7].volL);
this->_ui.VolumeRprogressBar_8->setValue(this->_dsp->getVoices()[7].volR);
this->_ui.WaveHeightprogressBar_8->setValue(this->_dsp->getVoices()[7].outx);
this->_ui.EchoFIRCoeffprogressBar_8->setValue(this->_dsp->getVoices()[7].coeff);
this->_ui.PitchlineEdit_8->setText(Utility::to_hex(this->_dsp->getVoices()[7].pitch).c_str());
this->_ui.sourceNumberLineEdit_8->setText(Utility::to_hex(this->_dsp->getVoices()[7].srcn).c_str());
this->_ui.GainlineEdit_8->setText(Utility::to_hex(this->_dsp->getVoices()[7].gain).c_str());
this->_ui.EnvelopelineEdit_8->setText(Utility::to_hex(this->_dsp->getVoices()[7].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_8->setText(Utility::to_hex(this->_dsp->getVoices()[7].envx).c_str());
this->_ui.KeyOncheckBox_8->setChecked(this->_dsp->getVoices()[7].kon);
this->_ui.KeyOffcheckBox_8->setChecked(this->_dsp->getVoices()[7].kof);
this->_ui.NoisecheckBox_8->setChecked(this->_dsp->getVoices()[7].non);
this->_ui.EchocheckBox_8->setChecked(this->_dsp->getVoices()[7].eon);
this->_ui.SampleEndcheckBox_8->setChecked(this->_dsp->getVoices()[7].endx);
this->_ui.PitchModulationcheckBox_8->setChecked(this->_dsp->getVoices()[7].pmon);
this->_ui.VolumeLprogressBar_6->setValue(voices[5].volume[0]);
this->_ui.VolumeRprogressBar_6->setValue(voices[5].volume[1]);
this->_ui.WaveHeightprogressBar_6->setValue(latch.outx);
this->_ui.EchoFIRCoeffprogressBar_6->setValue(echo.FIR[5]);
this->_ui.PitchlineEdit_6->setText(Utility::to_hex(voices[5].pitch).c_str());
this->_ui.sourceNumberLineEdit_6->setText(Utility::to_hex(voices[5].srcn).c_str());
this->_ui.GainlineEdit_6->setText(Utility::to_hex(voices[5].gain).c_str());
this->_ui.EnvelopelineEdit_6->setText(Utility::to_hex(voices[5].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_6->setText(Utility::to_hex(voices[5].envx).c_str());
this->_ui.KeyOncheckBox_6->setChecked(voices[5].kon);
this->_ui.KeyOffcheckBox_6->setChecked(voices[5].kof);
this->_ui.NoisecheckBox_6->setChecked(voices[5].non);
this->_ui.EchocheckBox_6->setChecked(voices[5].eon);
this->_ui.SampleEndcheckBox_6->setChecked(voices[5].endx);
this->_ui.PitchModulationcheckBox_6->setChecked(voices[5].pmon);
this->_ui.VolumeLprogressBar_7->setValue(voices[6].volume[0]);
this->_ui.VolumeRprogressBar_7->setValue(voices[6].volume[1]);
this->_ui.WaveHeightprogressBar_7->setValue(latch.outx);
this->_ui.EchoFIRCoeffprogressBar_7->setValue(echo.FIR[6]);
this->_ui.PitchlineEdit_7->setText(Utility::to_hex(voices[6].pitch).c_str());
this->_ui.sourceNumberLineEdit_7->setText(Utility::to_hex(voices[6].srcn).c_str());
this->_ui.GainlineEdit_7->setText(Utility::to_hex(voices[6].gain).c_str());
this->_ui.EnvelopelineEdit_7->setText(Utility::to_hex(voices[6].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_7->setText(Utility::to_hex(voices[6].envx).c_str());
this->_ui.KeyOncheckBox_7->setChecked(voices[6].kon);
this->_ui.KeyOffcheckBox_7->setChecked(voices[6].kof);
this->_ui.NoisecheckBox_7->setChecked(voices[6].non);
this->_ui.EchocheckBox_7->setChecked(voices[6].eon);
this->_ui.SampleEndcheckBox_7->setChecked(voices[6].endx);
this->_ui.PitchModulationcheckBox_7->setChecked(voices[6].pmon);
this->_ui.VolumeLprogressBar_8->setValue(voices[7].volume[0]);
this->_ui.VolumeRprogressBar_8->setValue(voices[7].volume[1]);
this->_ui.WaveHeightprogressBar_8->setValue(latch.outx);
this->_ui.EchoFIRCoeffprogressBar_8->setValue(echo.FIR[7]);
this->_ui.PitchlineEdit_8->setText(Utility::to_hex(voices[7].pitch).c_str());
this->_ui.sourceNumberLineEdit_8->setText(Utility::to_hex(voices[7].srcn).c_str());
this->_ui.GainlineEdit_8->setText(Utility::to_hex(voices[7].gain).c_str());
this->_ui.EnvelopelineEdit_8->setText(Utility::to_hex(voices[7].envelope).c_str());
this->_ui.EnvelopeValueLineEdit_8->setText(Utility::to_hex(voices[7].envx).c_str());
this->_ui.KeyOncheckBox_8->setChecked(voices[7].kon);
this->_ui.KeyOffcheckBox_8->setChecked(voices[7].kof);
this->_ui.NoisecheckBox_8->setChecked(voices[7].non);
this->_ui.EchocheckBox_8->setChecked(voices[7].eon);
this->_ui.SampleEndcheckBox_8->setChecked(voices[7].endx);
this->_ui.PitchModulationcheckBox_8->setChecked(voices[7].pmon);
}
std::string APUDebug::_getPSWString()