GUI: run per-chan osc on instrument preview

This commit is contained in:
tildearrow 2022-06-29 01:37:12 -05:00
parent 4dfd413ead
commit 9fee9fa363
3 changed files with 8 additions and 1 deletions

View file

@ -312,7 +312,7 @@ void FurnaceGUI::drawChanOsc() {
inRect.Max.y-=dpiScale;
ImGui::ItemSize(size,style.FramePadding.y);
if (ImGui::ItemAdd(rect,ImGui::GetID("chOscDisplay"))) {
if (!e->isPlaying()) {
if (!e->isRunning()) {
for (unsigned short i=0; i<512; i++) {
float x=(float)i/512.0f;
waveform[i]=ImLerp(inRect.Min,inRect.Max,ImVec2(x,0.5f));