tone-generator/tones.hpp

17 lines
214 B
C++
Raw Normal View History

2024-08-19 22:43:24 +10:00
#pragma once
#include "tone.hpp"
namespace tones {
2024-08-25 13:55:43 +10:00
inline Tone all[32];
2024-08-19 22:43:24 +10:00
inline int active;
2024-08-25 16:53:23 +10:00
void init();
2024-08-19 22:43:24 +10:00
void set(uint8_t index, uint16_t frequency, float amplitude);
void clear_all();
2024-08-25 16:53:23 +10:00
void recalc();
2024-08-19 22:43:24 +10:00
}