-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIR: clipping: Fix FIR filters. Add clipping indicator
When adding the 'FIR filter normalisation' for v1.2, it looks like I messed up, and made things worse. The primary 'visible' results from this were: - it was very easy to clip the input audio levels, which then gave a nasty output - the morse decoders were struggling a lot more detecting tones. The core issue was some mismash of inherited code that meant we ended up with two notions of 'SAMPLE_RATE', and the wrong one (an index, not a value) ended up being used for the FIR evaluation, thus breaking it. Fix that by ensuring we now only have one idea of SAMPLE_RATE. Whilst there, it seemed obvious that we already measured the input volume level with a peak meter, so why not use that to try and give a clear indication when we were clipping the input. Now when a clipped input is detected (too loud!), we show a '!' in the input volume slot for 0.5s to make it clear the input is too high. Ultimately: - FIR filters are now better, so clipping reduced - CW decoders seem back to detecting tones better - Visual clip indicator should help identify why clipping is happenning. Mark this as release v1.2, as this is a reasonaly important 'fix' on the quality front. Signed-off-by: Graham Whaley <[email protected]>
- Loading branch information
1 parent
8e7d37a
commit 772d159
Showing
8 changed files
with
87 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.