Files
SeeSynth/inc/SynthGuiState.h
e1lama c50a8335d7 [feature]: ADSR (#15)
closes #14

Reviewed-on: #15
2023-09-06 11:29:46 +03:00

24 lines
476 B
C++

#pragma once
#include "OscillatorType.h"
#include "raygui.h"
#include <vector>
struct OscillatorGuiState {
float volume;
float freq; // todo: remove or change to pitch shift
OscillatorType waveshape;
bool is_dropdown_open;
Rectangle shape_dropdown_rect;
};
struct ADSRGuiState {
float attack;
float decay;
float sustain;
float release;
};
struct SynthGuiState {
std::vector<OscillatorGuiState*> oscillators;
ADSRGuiState adsr;
};