cleanup envelope parameter mappings
This commit is contained in:
@@ -11,16 +11,16 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
audio_(new AudioEngine()),
|
||||
keyboard_(audio_->noteQueue()) {
|
||||
|
||||
// Initialize UI
|
||||
// initialize ui
|
||||
ui_->setupUi(this);
|
||||
setFocusPolicy(Qt::StrongFocus);
|
||||
|
||||
// connect scope
|
||||
ui_->scopeWidget->setScopeBuffer(&audioEngine_->scopeBuffer());
|
||||
|
||||
// Connect buttons to slots
|
||||
connect(ui_->buttonReset, &QPushButton::clicked, this, &MainWindow::onResetClicked);
|
||||
|
||||
// synth business
|
||||
audio_->start();
|
||||
|
||||
// connect envelopeGenerator
|
||||
ui_->envelopeOsc1Volume->init(EnvelopeId::Osc1Volume);
|
||||
connect(ui_->envelopeOsc1Volume, &EnvelopeGenerator::envelopeChanged,
|
||||
@@ -28,6 +28,10 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
audio_->parameters()->set(EnvelopeId::Osc1Volume, a, d, s, r);
|
||||
});
|
||||
// this should be easy enough to put into a for each envelopeGenerator loop
|
||||
|
||||
// synth business
|
||||
audio_->start();
|
||||
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() {
|
||||
|
||||
Reference in New Issue
Block a user