wave synth work

now there is a preview
This commit is contained in:
tildearrow 2022-05-21 18:36:15 -05:00
parent 61916be495
commit 367d14357c
7 changed files with 109 additions and 13 deletions

View file

@ -248,11 +248,13 @@ void FurnaceGUI::drawInsList() {
}
if (ImGui::Selectable(name.c_str(),(i==-1)?(curIns<0 || curIns>=e->song.insLen):(curIns==i))) {
curIns=i;
wavePreviewInit=true;
}
if (wantScrollList && curIns==i) ImGui::SetScrollHereY();
if (settings.insFocusesPattern && patternOpen && ImGui::IsItemActivated()) {
nextWindow=GUI_WINDOW_PATTERN;
curIns=i;
wavePreviewInit=true;
}
ImGui::PopStyleColor();
if (ImGui::IsItemHovered() && i>=0) {