implement voice stealing
This commit is contained in:
1 parent
5e5f08c4f9
commit
2b1a2b59d4
3 files changed
+45
-24
No files matched your search
@@ -13,17 +13,16 @@ typedef enum {
|
||||
} Waveform;
|
||||
|
||||
typedef struct {
|
||||
uint8_t id;
|
||||
float phase;
|
||||
float freq;
|
||||
float gain;
|
||||
float attack_ms;
|
||||
float release_ms;
|
||||
float filter_cutoff;
|
||||
float lp;
|
||||
bool is_playing;
|
||||
Waveform form;
|
||||
} Note;
|
||||
|
||||
void play_note(Note *note, float *buffer, int buffer_size);
|
||||
void play_note(Note *note, float *buffer, unsigned int buffer_size, float sample_rate);
|
||||
|
||||
#endif // NOTE_H
|
||||
Reference in new issue
Block a user