| 1234567891011121314151617181920212223 |
- #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_
|