mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 12:06:52 -04:00
Change baseband floats to normalize at +/-1.0.
This commit is contained in:
parent
a5ed3b20b4
commit
ef86848139
10 changed files with 35 additions and 26 deletions
|
@ -33,6 +33,9 @@ public:
|
|||
const buffer_c16_t& src,
|
||||
const buffer_f32_t& dst
|
||||
);
|
||||
|
||||
private:
|
||||
static constexpr float k = 1.0f / 32768.0f;
|
||||
};
|
||||
|
||||
class SSB {
|
||||
|
@ -41,6 +44,9 @@ public:
|
|||
const buffer_c16_t& src,
|
||||
const buffer_f32_t& dst
|
||||
);
|
||||
|
||||
private:
|
||||
static constexpr float k = 1.0f / 32768.0f;
|
||||
};
|
||||
|
||||
class FM {
|
||||
|
@ -59,7 +65,8 @@ public:
|
|||
|
||||
private:
|
||||
complex16_t::rep_type z_ { 0 };
|
||||
float k { 0 };
|
||||
float kf { 0 };
|
||||
float ks16 { 0 };
|
||||
};
|
||||
|
||||
} /* namespace demodulate */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue