fix the legendary chiptune moment

it still distorts on the first key on, but not later on
This commit is contained in:
freq-mod 2023-03-10 15:42:58 +01:00 committed by GitHub
parent 708c0e359a
commit c2761e4f41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4420,11 +4420,11 @@ void FurnaceGUI::drawInsEdit() {
}
if (ImGui::InputInt("Offset##WAVEPOS",&ins->n163.wavePos,1,16)) { PARAMETER
if (ins->n163.wavePos<0) ins->n163.wavePos=0;
if (ins->n163.wavePos>255) ins->n163.wavePos=255;
if (ins->n163.wavePos>236) ins->n163.wavePos=236;
}
if (ImGui::InputInt("Length##WAVELEN",&ins->n163.waveLen,4,16)) { PARAMETER
if (ins->n163.waveLen<0) ins->n163.waveLen=0;
if (ins->n163.waveLen>252) ins->n163.waveLen=252;
if (ins->n163.waveLen>240) ins->n163.waveLen=240;
ins->n163.waveLen&=0xfc;
}