René's URL Explorer Experiment


Title: Why would wave read be normalized ? · Issue #268 · python-acoustics/python-acoustics · GitHub

Open Graph Title: Why would wave read be normalized ? · Issue #268 · python-acoustics/python-acoustics

X Title: Why would wave read be normalized ? · Issue #268 · python-acoustics/python-acoustics

Description: Hi there ! I've spend a some time figuring it out but wav file read is normalized... To me (as an acoustic engineer) it makes absolutely no sense :) Especially since there are some calibrate_to and calibrate_with functions. Am I missing ...

Open Graph Description: Hi there ! I've spend a some time figuring it out but wav file read is normalized... To me (as an acoustic engineer) it makes absolutely no sense :) Especially since there are some calibrate_to and...

X Description: Hi there ! I've spend a some time figuring it out but wav file read is normalized... To me (as an acoustic engineer) it makes absolutely no sense :) Especially since there are some calibrate_to...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Why would wave read be normalized ?","articleBody":"Hi there !\r\n\r\nI've spend a some time figuring it out but wav file read is normalized...\r\nTo me (as an acoustic engineer) it makes absolutely no sense :)\r\nEspecially since there are some `calibrate_to` and `calibrate_with` functions.\r\nAm I missing something ? Why would you normalize on import ?\r\n\r\nI ended up with the following code to read from the wave file : \r\n```python\r\nimport acoustics\r\nimport wave\r\nfrom scipy.io import wavfile\r\nfile_path = \"whatever.wav\"\r\nwith wave.open(file_path, 'rb') as wav:\r\n    sampwidth = wav.getsampwidth()\r\nfs, data = wavfile.read(file_path) \r\ndata = data / 2**(8*sampwidth-1)\r\nsignal= acoustics.Signal(data, fs=fs)\r\n```\r\n\r\nThis works with `S16_LE`, `S32_LE`, `S24_3LE ` formats (using the ALSA labelling) but would fail with `S24_LE` or `FLOAT_LE ` .\r\nIt would be nice to have any wav red as a float array in the end.\r\n\r\nI would be happy to contribute, I just want to make sure I didn't misunderstand an intentional design choice.","author":{"url":"https://github.com/Nitnelav","@type":"Person","name":"Nitnelav"},"datePublished":"2024-02-07T07:46:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/268/python-acoustics/issues/268"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cde0ff60-2102-edbf-37c6-ae4542040edf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8080:39D8D:6F267A:96B575:698F6978
html-safe-noncebedbd8536d67bdea7bf77a45a0718783d62abaa3210d156ec7510a722e5de487
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDgwOjM5RDhEOjZGMjY3QTo5NkI1NzU6Njk4RjY5NzgiLCJ2aXNpdG9yX2lkIjoiNzgxMDUxMzIzMzQ1NDc4NjkzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac98feb5b52129d5d6fc5a923568d8dac367b0d4407ac3a60d1c3521566c7b45e6
hovercard-subject-tagissue:2122394205
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/268/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7a3832d9d39e9b8dac24c0e0421ba2a3b644883d64324ac7b8f344f3ea2dba8b/python-acoustics/python-acoustics/issues/268
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7a3832d9d39e9b8dac24c0e0421ba2a3b644883d64324ac7b8f344f3ea2dba8b/python-acoustics/python-acoustics/issues/268
og:image:altHi there ! I've spend a some time figuring it out but wav file read is normalized... To me (as an acoustic engineer) it makes absolutely no sense :) Especially since there are some calibrate_to and...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNitnelav
hostnamegithub.com
expected-hostnamegithub.com
None7ab1c9acb90dba91d5e994ebfb6bfb1130e0e0e6aca329cdbbd934d636e22ab6
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
release1d6695367a1b2f05addc4030b791720f01693df4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/268#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%2F268
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%2F268
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/268
Reloadhttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/268
Reloadhttps://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/268
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
Why would wave read be normalized ?https://patch-diff.githubusercontent.com/python-acoustics/python-acoustics/issues/268#top
https://github.com/Nitnelav
https://github.com/Nitnelav
Nitnelavhttps://github.com/Nitnelav
on Feb 7, 2024https://github.com/python-acoustics/python-acoustics/issues/268#issue-2122394205
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.