mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-18 19:28:02 -04:00
simplifications, better precision, less sleeps (#1091)
* simplifications, better precision, less sleeps * fixing glitches * fixed res freeze * correct frequency picking for marker, yay ! * added comments into the code in hard parts * took out unneeded sleep Special thanks to users vmakeev, tel, f1ghy, u-foka for their resilience in testing the bunch of bins I've produced to fix the thing :-)
This commit is contained in:
parent
e50d8dc148
commit
69011754c9
2 changed files with 104 additions and 122 deletions
|
@ -89,7 +89,10 @@ class GlassView : public View {
|
|||
};
|
||||
|
||||
std::vector<preset_entry> presets_db{};
|
||||
void clip_min(int32_t v);
|
||||
void clip_max(int32_t v);
|
||||
void get_max_power(const ChannelSpectrum& spectrum, uint8_t bin, uint8_t& max_power);
|
||||
rf::Frequency get_freq_from_bin_pos(uint8_t pos);
|
||||
void on_marker_change();
|
||||
int64_t next_mult_of(int64_t num, int64_t multiplier);
|
||||
void adjust_range(int64_t* f_min, int64_t* f_max, int64_t width);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue