.
This commit is contained in:
+4
-3
@@ -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. частота звука в Герцах
|
||||
|
||||
Reference in New Issue
Block a user