project scaffolding
This commit is contained in:
2
src/CMakeLists.txt
Normal file
2
src/CMakeLists.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
# empty
|
||||
33
src/Main.qml
33
src/Main.qml
@@ -1,33 +0,0 @@
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
import AppDemo
|
||||
|
||||
ApplicationWindow {
|
||||
visible: true
|
||||
width: 600
|
||||
height: 400
|
||||
title: "sonobulus"
|
||||
|
||||
TimerComponent {
|
||||
id: timerComponent
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
spacing: 20
|
||||
|
||||
Label {
|
||||
text: timerComponent.seconds + " s"
|
||||
font.pixelSize: 32
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Reset"
|
||||
onClicked: timerComponent.reset()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,11 +15,12 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
// attach backend gui components
|
||||
qmlRegisterType<TimerComponent>("AppDemo", 1, 0, "TimerComponent");
|
||||
// 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");
|
||||
//engine.load(QUrl("qrc:/Main.qml"));
|
||||
engine.load(QUrl::fromLocalFile("src/Main.qml")); // ugh
|
||||
engine.load(QUrl::fromLocalFile("ui/Main.qml")); // ugh
|
||||
|
||||
if(engine.rootObjects().isEmpty()) {
|
||||
std::cout << "engine is empty" << std::endl;
|
||||
|
||||
2
src/synth/AudioEngine.cpp
Normal file
2
src/synth/AudioEngine.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
#include "AudioEngine.hpp"
|
||||
2
src/synth/AudioEngine.hpp
Normal file
2
src/synth/AudioEngine.hpp
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
// The audio engine handles the RtAudio implementation of outputing samples to audio. the audio callback fills a buffer of audio samples and submits it for playback
|
||||
2
src/synth/KeyboardController.cpp
Normal file
2
src/synth/KeyboardController.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
#include "KeyboardController.hpp"
|
||||
2
src/synth/KeyboardController.hpp
Normal file
2
src/synth/KeyboardController.hpp
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
// the keyboard controller acts as an instrument input device for creating note events from a computer keyboard
|
||||
2
src/synth/MidiController.cpp
Normal file
2
src/synth/MidiController.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
#include "MidiController.hpp"
|
||||
2
src/synth/MidiController.hpp
Normal file
2
src/synth/MidiController.hpp
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
// the midi controller handles interfacing a stream from a midi input device and processing them into note events for the synthesizer
|
||||
2
src/synth/NoteQueue.cpp
Normal file
2
src/synth/NoteQueue.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
#include "NoteQueue.hpp"
|
||||
2
src/synth/NoteQueue.hpp
Normal file
2
src/synth/NoteQueue.hpp
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
// the note queue is a wrapper for a FIFO array to which the midi/keyboard controller enters note events into and the synthesizer consumes from
|
||||
Reference in New Issue
Block a user