Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved audio beep tone #2014

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

NotherNgineer
Copy link
Contributor

Improved audio quality of RSSI beep tone.

Explanation example: Audio DMA uses a 128-sample buffer. For a 1KHz tone and a 24KHz sample rate, each sine wave has 24 samples. But 128/24 = 5.3333, i.e. 5 full sine waves plus a partial wave.

Instead of always sending 128 samples to the audio chip, this PR tweaks the number of samples to eliminate sending that partial sine wave which was causing distortion. In the above example, 5 complete sine waves (5 x 24 samples) will be sent instead of 5.333 sine waves.

Copy link
Member

@gullradriel gullradriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's hear the result X-D

@NotherNgineer NotherNgineer merged commit 807c763 into portapack-mayhem:next Mar 19, 2024
3 checks passed
@NotherNgineer
Copy link
Contributor Author

Now I just have to wait for some weather balloon to fly over. :-)

@gullradriel
Copy link
Member

I need to add this in Level app, the beeeeep !!!

@NotherNgineer
Copy link
Contributor Author

FYI, I will have another fix coming for the beep when clicking the Beep checkbox in the Sonde app. Currently the "request_beep" function only makes a sound if the RSSI level is high enough, so I'll need to modify that baseband message to allow beeps of any audio frequency regardless of RSSI level.

@frangonzas
Copy link

@NotherNgineer Eres un genio, gracias por todo el trabajo, cada día entro para ver tus obras maestras.

@NotherNgineer NotherNgineer deleted the clean-beep-tone branch March 21, 2024 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants