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

feat: Example 8 - calculate RMS, dBSPL and dBA levels #254

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

milanredon
Copy link
Collaborator

New example to calculate overall levels, levels versus time and to write the results in csv files.

@github-actions github-actions bot added documentation Improvements or additions to documentation enhancement New features or code improvements labels Mar 20, 2025
Copy link
Collaborator

@anssmolla anssmolla left a comment

Choose a reason for hiding this comment

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

excellent first contribution @milanredon 😊


# %%
# In a loop, for each sound, create a :class:`.OverallLevel` object, set its signals,
# get and the overall RMS, dBSPL and dBA levels, then Write the results into the first .csv file.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@milanredon there is a missing verb here:
"get and XXX the overall RMS"

my guess XXX = display? print?


# %%
# In a loop, for each sound, create a :class:`.OverallLevel` object, set its signals,
# get and the overall RMS, dBSPL and dBA levels, then Write the results into the one .csv file per sound.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@milanredon there is a missing verb here:
"get and XXX the overall RMS"

my guess: XXX = plot?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@milanredon it is probably "[...] dBSPL and dBA vs time, [...]"

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Collaborator

@anshlachamb anshlachamb left a comment

Choose a reason for hiding this comment

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

good one :)

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9a5a217) to head (a13cd2f).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #254    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           79        81     +2     
  Lines         4648      4974   +326     
==========================================
+ Hits          4648      4974   +326     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions bot added testing and removed testing labels Mar 21, 2025
@github-actions github-actions bot removed the testing label Mar 21, 2025
@github-actions github-actions bot added testing and removed testing labels Mar 21, 2025
@github-actions github-actions bot added testing and removed testing labels Mar 21, 2025
@github-actions github-actions bot added testing and removed testing labels Mar 21, 2025
@github-actions github-actions bot added testing and removed testing labels Mar 21, 2025
@github-actions github-actions bot added testing and removed testing labels Mar 21, 2025
@github-actions github-actions bot added testing and removed testing labels Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New features or code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants