Added tone to string and string to tone

This commit is contained in:
GullCode 2022-09-11 16:08:05 +02:00
parent a7370ee95d
commit 5d5865eefb
2 changed files with 30 additions and 2 deletions

View file

@ -30,12 +30,18 @@ using namespace ui;
namespace tonekey {
typedef int16_t tone_index ;
using tone_key_t = std::vector<std::pair<std::string, float>>;
extern const tone_key_t tone_keys;
void tone_keys_populate(OptionsField& field);
float tone_key_frequency(const uint32_t index);
float tone_key_frequency(const tone_index index);
std::string tone_key_string( const tone_index index );
tone_index tone_key_index_by_string( char *str );
// tone_index tone_key_index_by_value( int32_t freq );
}