This commit is contained in:
2026-11-13 23:59:25 +06:00
parent 7d60addcd9
commit 5731475015
6 changed files with 126 additions and 97 deletions
+4 -3
View File
@@ -13,7 +13,7 @@
class Synth {
public:
Synth(){
frequency = 440;
frequency = 440.0;
amplitude = 0.5;
sample_rate = 48000;
phase = 0.0;
@@ -24,9 +24,10 @@ class Synth {
void generate_buffer(double* array, int size);
void set_frequency(double value);
void set_amplitude(double value);
void set_midi_note(uint8_t note);
bool note_on();
bool note_off();
bool note_on(uint8_t note, uint8_t velocity);
bool note_off(uint8_t note);
private:
/* 1. частота звука в Герцах