midi checkpoint
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "synth/AudioEngine.hpp"
|
||||
#include "synth/KeyboardController.hpp"
|
||||
#include "synth/Scope.hpp"
|
||||
#include "synth/MidiController.hpp"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
@@ -24,6 +25,7 @@ int main(int argc, char* argv[]) {
|
||||
NoteQueue queue = NoteQueue();
|
||||
ScopeBuffer scopeBuffer = ScopeBuffer(512);
|
||||
KeyboardController keyboard(&config, &logger, &queue);
|
||||
MidiController midi(&config, &logger, &queue);
|
||||
Synth synth(&config, &logger, &scopeBuffer, &queue);
|
||||
|
||||
// audio synthesizer doohickey
|
||||
@@ -33,12 +35,11 @@ int main(int argc, char* argv[]) {
|
||||
// attach backend gui components
|
||||
qmlRegisterType<TimerComponent>("AppDemo", 1, 0, "TimerComponent");
|
||||
qmlRegisterType<Scope>("AppDemo", 1, 0, "Scope");
|
||||
// attach backend services to qml
|
||||
engine.rootContext()->setContextProperty("keyboardController", &keyboard);
|
||||
engine.rootContext()->setContextProperty("scopeBuffer", &scopeBuffer);
|
||||
|
||||
// load qml
|
||||
//engine.loadFromModule("sonobulus", "Main");
|
||||
//engine.load(QUrl("qrc:/Main.qml"));
|
||||
engine.load(QUrl::fromLocalFile("ui/Main.qml")); // ugh
|
||||
|
||||
if(engine.rootObjects().isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user