scope checkpoint

This commit is contained in:
2026-06-13 16:36:33 -05:00
parent fcc24c5e3e
commit dbc1db37e1
4 changed files with 99 additions and 7 deletions

View File

@@ -10,7 +10,7 @@
#include "ConfigService.hpp"
#include "synth/AudioEngine.hpp"
#include "synth/KeyboardController.hpp"
//#include "synth/ScopeBuffer.hpp"
#include "synth/Scope.hpp"
int main(int argc, char* argv[]) {
@@ -22,7 +22,7 @@ int main(int argc, char* argv[]) {
ConfigService config = ConfigService("config/sonobulus.cfg");
LoggerService logger = LoggerService(&config, "Engine");
NoteQueue queue = NoteQueue();
//ScopeBuffer scope = ScopeBuffer();
ScopeBuffer scopeBuffer = ScopeBuffer(512);
KeyboardController keyboard(&config, &logger, &queue);
Synth synth(&config, &logger, nullptr, &queue);
@@ -31,9 +31,11 @@ int main(int argc, char* argv[]) {
audioEngine.start();
// attach backend gui components
//Scope scope; //scope.setBuffer(&scopeBuffer);
qmlRegisterType<TimerComponent>("AppDemo", 1, 0, "TimerComponent");
//qmlRegisterSingletonInstance("AppDemo", 1, 0, "Scope", &scope);
qmlRegisterType<Scope>("AppDemo", 1, 0, "Scope");
engine.rootContext()->setContextProperty("keyboardController", &keyboard);
// adds the TimerComponent type (exposed in qml as "TimerComponent") to the module named"AppDemo" (numbers mean version 1.0)
// load qml
//engine.loadFromModule("sonobulus", "Main");