Some improvements to the FM Wavetable editor (More waveforms, full modulation matrix) (Take 495, I hope SDL is fine now) (#935)

* Added more waveforms to the FM wavetable editor (Finally Sine isn't the only option anymore!)

* fixed quarter waveforms

* Complete modulation matrix with cross modulation. Also, now X axis modulates Y axis (it was Y modulating X before)

* I really hope it will work this time bruh

* Update gui.cpp

Fixed a programming error that can potentially lead to a SEGFAULT (Core dumped) because I was writing out of bounds of an array

---------

Co-authored-by: System64MC <nicolas1811.jans@gmail.com>
This commit is contained in:
System64 2023-02-06 07:29:01 +01:00 committed by GitHub
parent cdc472dace
commit 056c895c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 499 additions and 82 deletions

View file

@ -1765,13 +1765,16 @@ class FurnaceGUI {
float waveGenAmp[16];
float waveGenPhase[16];
float waveGenTL[4];
int fmWaveform[4];
int waveGenMult[4];
int waveGenFB[4];
int waveGenScaleX, waveGenScaleY, waveGenOffsetX, waveGenOffsetY, waveGenSmooth;
float waveGenAmplify;
bool waveGenFMCon1[4];
bool waveGenFMCon2[3];
bool waveGenFMCon3[2];
bool waveGenFMCon0[5];
bool waveGenFMCon1[5];
bool waveGenFMCon2[5];
bool waveGenFMCon3[5];
bool waveGenFMCon4[5];
bool waveGenFM;
void drawSSGEnv(unsigned char type, const ImVec2& size);