работа над envelope закончена
envelope работает. без щелчков
This commit is contained in:
+5
-2
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user