René's URL Explorer Experiment


Title: Hanning window correction in Tonality analysis · Issue #255 · python-acoustics/python-acoustics · GitHub

Open Graph Title: Hanning window correction in Tonality analysis · Issue #255 · python-acoustics/python-acoustics

X Title: Hanning window correction in Tonality analysis · Issue #255 · python-acoustics/python-acoustics

Description: I am confused about the Tonality class in iso_1996_2_2007.py. On line 34 of iso_1996_2_2007.py a correction for Hanning windows is defined: _WINDOW_CORRECTION = { 'hanning': -1.8, } This correction is subtracted from the total level of t...

Open Graph Description: I am confused about the Tonality class in iso_1996_2_2007.py. On line 34 of iso_1996_2_2007.py a correction for Hanning windows is defined: _WINDOW_CORRECTION = { 'hanning': -1.8, } This correction...

X Description: I am confused about the Tonality class in iso_1996_2_2007.py. On line 34 of iso_1996_2_2007.py a correction for Hanning windows is defined: _WINDOW_CORRECTION = { 'hanning': -1.8, } This co...

Opengraph URL: https://github.com/python-acoustics/python-acoustics/issues/255

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hanning window correction in Tonality analysis","articleBody":"I am confused about the Tonality class in iso_1996_2_2007.py. \r\n\r\nOn line 34 of iso_1996_2_2007.py a correction for Hanning windows is defined:\r\n`_WINDOW_CORRECTION = {\r\n    'hanning': -1.8,\r\n}`\r\n\r\nThis correction is subtracted from the total level of the sum of all lines of the tones in the cricital band on line 505, so effectively 1.8 dB is added:\r\n`tone_level = tones_level(tone_lines) - window_correction(window)`\r\n\r\nI understand the reason for a 1.8 dB correction is explained in the note after equation C.1 in ISO 1996-2: 2007:\r\n\r\n\u003eNOTE If a 'tone' is a narrow band of noise, or if the frequency of a tone varies, the tone appears as several lines in the averaged spectrum. In such cases, the tone level, L_pt, is the energy sum of all lines, with levels within 6 dB of the local maximum level and corrected for the influence of the applied window function. (For Hanning weighting, this is the energy sum of the lines minus 1.8 dB.)\r\n\r\nI believe the same correction is applied when calculating the total masking noise level in equation C.11, calculated with the function on line 78:\r\n`return dbsum(noise_lines) + 10.0 * np.log10(frequency_resolution / effective_analysis_bandwidth)\r\n`\r\nWhen using a Hanning window this is roughly equivalent to: \r\n`return dbsum(noise_lines) - 1.8\r\n`\r\n\r\nSo to summarise I would expect on line 505 the -1.8 dB should be added to the total tone level. I hope somebody can shed some light on this. Any help would be greatly appreciated!\r\n","author":{"url":"https://github.com/thvanbon","@type":"Person","name":"thvanbon"},"datePublished":"2021-12-01T14:12:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/255/python-acoustics/issues/255"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cfba7300-4600-f44a-86a8-9b8962a42089
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id880E:1230D0:FF300:15ABC0:698E1957
html-safe-nonce4c580c11e7741f04c22280a4f4ec38c4ee94c2229c707f3de0b515f80e13e547
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODBFOjEyMzBEMDpGRjMwMDoxNUFCQzA6Njk4RTE5NTciLCJ2aXNpdG9yX2lkIjoiMTcxNjgxNDY0MzIwNzIxNTQ0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd918e18ead736bd70b2a0f2e90be0db3530eae96a783b84aaf3ccc43d5672efd
hovercard-subject-tagissue:1068457197
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-acoustics/python-acoustics/255/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2dfc2629299f2aaf3d0f82bf4398de92fdc5805bcc87f708f2d05a76bc121903/python-acoustics/python-acoustics/issues/255
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2dfc2629299f2aaf3d0f82bf4398de92fdc5805bcc87f708f2d05a76bc121903/python-acoustics/python-acoustics/issues/255
og:image:altI am confused about the Tonality class in iso_1996_2_2007.py. On line 34 of iso_1996_2_2007.py a correction for Hanning windows is defined: _WINDOW_CORRECTION = { 'hanning': -1.8, } This correction...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethvanbon
hostnamegithub.com
expected-hostnamegithub.com
None52130a026bd9a3f98228b6aa6af91acdab5d18de411e2c1e67e6253493561296
turbo-cache-controlno-preview
go-importgithub.com/python-acoustics/python-acoustics git https://github.com/python-acoustics/python-acoustics.git
octolytics-dimension-user_id3644840
octolytics-dimension-user_loginpython-acoustics
octolytics-dimension-repository_id14710112
octolytics-dimension-repository_nwopython-acoustics/python-acoustics
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14710112
octolytics-dimension-repository_network_root_nwopython-acoustics/python-acoustics
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release301a1d7743177dcb7528b1322117cdafeda8ff08
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/255#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-acoustics%2Fpython-acoustics%2Fissues%2F255
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-acoustics%2Fpython-acoustics%2Fissues%2F255
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-acoustics%2Fpython-acoustics
Reloadhttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/255
Reloadhttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/255
Reloadhttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/255
python-acoustics https://patch-diff.githubusercontent.com/python-acoustics
python-acousticshttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-acoustics%2Fpython-acoustics
Fork 151 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-acoustics%2Fpython-acoustics
Star 553 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-acoustics%2Fpython-acoustics
Code https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics
Issues 24 https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues
Pull requests 8 https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/pulls
Actions https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/actions
Projects 0 https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/projects
Security 0 https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/security
Insights https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/pulse
Code https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics
Issues https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues
Pull requests https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/pulls
Actions https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/actions
Projects https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/projects
Security https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/security
Insights https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/pulse
Hanning window correction in Tonality analysishttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/255#top
https://github.com/thvanbon
https://github.com/thvanbon
thvanbonhttps://github.com/thvanbon
on Dec 1, 2021https://github.com/python-acoustics/python-acoustics/issues/255#issue-1068457197
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.