ukkonooa and frequency slider
This commit is contained in:
23
main/headers/un.h
Normal file
23
main/headers/un.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef UN_H_
|
||||
#define UN_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// https://mixbutton.com/music-tools/frequency-and-pitch/music-note-to-frequency-chart
|
||||
|
||||
// Octave 2
|
||||
// typedef enum { P = -1, C = 65, D = 73, E = 82, F = 87, G = 98 } NoteFreq;
|
||||
|
||||
// Octave 4
|
||||
typedef enum { P = -1, C = 262, D = 294, E = 330, F = 349, G = 392 } NoteFreq;
|
||||
|
||||
typedef struct {
|
||||
NoteFreq note;
|
||||
uint32_t length;
|
||||
} Note;
|
||||
|
||||
const char* NoteFreqToStr(NoteFreq note);
|
||||
void play_note(Note* note);
|
||||
void un_task(void* param);
|
||||
|
||||
#endif // UN_H_
|
||||
Reference in New Issue
Block a user