ukkonooa and frequency slider

This commit is contained in:
2026-01-13 14:49:35 +02:00
parent c767b541be
commit a2871a193b
11 changed files with 335 additions and 56 deletions

23
main/headers/un.h Normal file
View 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_