cleanup include paths

This commit is contained in:
2026-04-18 13:48:00 -05:00
parent 8e838c61e6
commit 2590b03756
7 changed files with 12 additions and 7 deletions

View File

@@ -90,7 +90,9 @@ qt_add_executable(metabolus
set_target_properties(metabolus PROPERTIES AUTOUIC ON) set_target_properties(metabolus PROPERTIES AUTOUIC ON)
target_include_directories(metabolus PRIVATE target_include_directories(metabolus PRIVATE
${CMAKE_SOURCE_DIR}/src/
${CMAKE_SOURCE_DIR}/src/ui ${CMAKE_SOURCE_DIR}/src/ui
${CMAKE_SOURCE_DIR}/src/synth
${CMAKE_SOURCE_DIR}/src/ui/widgets ${CMAKE_SOURCE_DIR}/src/ui/widgets
) )

View File

@@ -48,11 +48,11 @@ Linux: GCC
Clone repository Clone repository
```PowerShell ```PowerShell
git clone https://github.com/Blitblank/metabalus.git --recursive git clone https://git.vxbard.net/homeburger/metabalus.git --recursive
``` ```
or if you forgot to --recursive: or if you forgot to --recursive:
```PowerShell ```PowerShell
git clone https://github.com/Blitblank/metabalus.git git clone https://git.vxbard.net/homeburger/metabalus.git
git submodule update --init --recursive git submodule update --init --recursive
``` ```
\ \

View File

@@ -16,6 +16,7 @@ int main(int argc, char *argv[]) {
window.show(); window.show();
// TODO: logging // TODO: logging
// TODO: separate app from the window
// i made a good debug filtering setup in ouros so could probably improt that into this project // i made a good debug filtering setup in ouros so could probably improt that into this project
int status = app.exec(); // app execution; blocks until window close int status = app.exec(); // app execution; blocks until window close

View File

@@ -11,6 +11,8 @@
#define M_PI 3.14159265358979323846 #define M_PI 3.14159265358979323846
#endif #endif
// TODO: if the amount of notes per octave is changed via config then this constant needs to be calculated at startup
// as SYNTH_Xth_ROOT_TWO
#define SYNTH_TWELFTH_ROOT_TWO 1.05946309435929526463 #define SYNTH_TWELFTH_ROOT_TWO 1.05946309435929526463
// TODO: you get it, also in a yml config // TODO: you get it, also in a yml config

View File

@@ -101,7 +101,7 @@ float Voice::process(float* params, bool& scopeTrigger) {
// TODO: implement controls for noise // TODO: implement controls for noise
//float scale = static_cast<float>(rand()) / static_cast<float>(RAND_MAX); // Range [0.0, 1.0] //float scale = static_cast<float>(rand()) / static_cast<float>(RAND_MAX); // Range [0.0, 1.0]
//float noise = -1.0f + 2.0f * scale; //float noise = (-1.0f + 2.0f * scale) * 0.2f;
// these values didn't sound good so I commented them out before I get controls for them // these values didn't sound good so I commented them out before I get controls for them
// mix oscillators // mix oscillators

View File

@@ -59,7 +59,6 @@ MainWindow::MainWindow(QWidget *parent) :
} }
} }
// rogue sliders, TODO: clean these up in a package // rogue sliders, TODO: clean these up in a package
connect(ui_->sliderMasterOctave, &SmartSlider::valueChanged, connect(ui_->sliderMasterOctave, &SmartSlider::valueChanged,
this, [this](float value) { this, [this](float value) {
@@ -157,6 +156,7 @@ void MainWindow::onResetClicked() {
// TODO: clean these up, maybe put them in a package like the envelope generators (it'll help encapsulate the int-snapping business) // TODO: clean these up, maybe put them in a package like the envelope generators (it'll help encapsulate the int-snapping business)
// what I might do is make a variable-length slider-package object // what I might do is make a variable-length slider-package object
// TODO: the oscillator things also need an amplitude parameter too
YAML::Node masterNode = configRoot["MasterPitchOffset"]; YAML::Node masterNode = configRoot["MasterPitchOffset"];
YAML::Node osc1Node = configRoot["Osc1PitchOffset"]; YAML::Node osc1Node = configRoot["Osc1PitchOffset"];
YAML::Node osc2Node = configRoot["Osc2PitchOffset"]; YAML::Node osc2Node = configRoot["Osc2PitchOffset"];

View File

@@ -4,9 +4,9 @@
#include <QMainWindow> #include <QMainWindow>
#include <QKeyEvent> #include <QKeyEvent>
#include "../ConfigInterface.h" #include "ConfigInterface.h"
#include "../synth/AudioEngine.h" #include "synth/AudioEngine.h"
#include "../MidiController.h" #include "MidiController.h"
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; } namespace Ui { class MainWindow; }