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

@ -21,6 +21,7 @@
#define _FUR_GUI_H
#include "../engine/engine.h"
#include "../engine/waveSynth.h"
#include "imgui.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_sdlrenderer.h"
@ -1073,6 +1074,10 @@ class FurnaceGUI {
OperationMask opMaskRandomize, opMaskFlip, opMaskCollapseExpand;
short latchNote, latchIns, latchVol, latchEffect, latchEffectVal;
DivWaveSynth wavePreview;
int wavePreviewLen, wavePreviewHeight;
bool wavePreviewInit;
// bit 31: ctrl
// bit 30: reserved for SDL scancode mask
// bit 29: shift