работа над envelope закончена

envelope работает. без щелчков
This commit is contained in:
2026-11-13 02:02:50 +06:00
parent a92de417b5
commit 3a16ac0c0e
7 changed files with 130 additions and 77 deletions
+5 -2
View File
@@ -4,6 +4,7 @@
#include "../include/synth.hpp"
#include "../include/audio_engine.hpp"
int main(){
std::cout << "110.гц\n";
@@ -16,13 +17,15 @@ int main(){
try{
AudioEngine audio_engine(synth);
audio_engine.start();
while (true){
std::cin >> a;
if (a == "start"){
audio_engine.start();
synth.note_on();
}
else audio_engine.stop();
else synth.note_off();
}
// audio_engine.stop();
}
catch (const std::exception& error){
std::cerr << error.what() << "\n";