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

Noise library and examples for basic FFT and frequency binning #33

Merged
merged 6 commits into from
Feb 5, 2020

Conversation

Gadgetoid
Copy link
Member

@Gadgetoid Gadgetoid commented Sep 17, 2019

After experimenting with capturing and plotting various noise types I've put together a starter library for noise profiling on Enviro+.

To use this code you'll need to:

sudo pip3 install sounddevice
sudo pip install sounddevice
sudo apt install libportaudio2

TODO:

  • Test & get a feel for the results
  • Add DocStrings
  • Add (optional) compensation for human perception of amplitude at different frequencies
  • Add dependencies to installer (sounddevice and portaudio libportaudio2)

@Bugierek
Copy link

Bugierek commented Oct 1, 2019

Thank you for working on the noise sensor :)
I've run both examples and there's an issue with noise-profile.py due to lack of measure attribute:

Traceback (most recent call last):
File "noise-profile.py", line 29, in
low, mid, high, amp = noise.measure()
AttributeError: 'Noise' object has no attribute 'measure'

@Gadgetoid Gadgetoid marked this pull request as ready for review February 5, 2020 14:00
@Gadgetoid Gadgetoid merged commit 02c9f28 into master Feb 5, 2020
@Gadgetoid Gadgetoid deleted the noise branch November 15, 2023 13:24
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.

2 participants