Files
SeeSynth/inc/SynthGuiState.h
2023-09-10 07:13:51 +04:00

33 lines
601 B
C++

#pragma once
#include "OscillatorType.h"
#include "raygui.h"
#include <vector>
#include "Filter.h"
struct OscillatorGuiState {
float volume;
float fine;
OscillatorType waveshape;
bool is_dropdown_open;
Rectangle shape_dropdown_rect;
};
struct ADSRGuiState {
float attack;
float decay;
float sustain;
float release;
};
struct FilterGuiState {
float freq;
float res; //todo: res
FilterType type;
bool is_dropdown_open;
};
struct SynthGuiState {
std::vector<OscillatorGuiState*> oscillators;
ADSRGuiState adsr;
FilterGuiState filter;
};