scope checkpoint
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user