Title: t60_impulse estimation fails for octave bands up to 16kHz with fs=44100Hz · Issue #262 · python-acoustics/python-acoustics · GitHub
Open Graph Title: t60_impulse estimation fails for octave bands up to 16kHz with fs=44100Hz · Issue #262 · python-acoustics/python-acoustics
X Title: t60_impulse estimation fails for octave bands up to 16kHz with fs=44100Hz · Issue #262 · python-acoustics/python-acoustics
Description: Example code: from acoustics import room, bands t60 = room.t60_impulse(file, bands.octave(31.25, 16e3), "t30") An error raised ValueError: Digital filter critical frequencies must be 0 < Wn < 1, which happens at the last frequency band p...
Open Graph Description: Example code: from acoustics import room, bands t60 = room.t60_impulse(file, bands.octave(31.25, 16e3), "t30") An error raised ValueError: Digital filter critical frequencies must be 0 < Wn < 1, wh...
X Description: Example code: from acoustics import room, bands t60 = room.t60_impulse(file, bands.octave(31.25, 16e3), "t30") An error raised ValueError: Digital filter critical frequencies must be 0 &l...
Opengraph URL: https://github.com/python-acoustics/python-acoustics/issues/262
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"t60_impulse estimation fails for octave bands up to 16kHz with fs=44100Hz","articleBody":"Example code:\r\n```py\r\nfrom acoustics import room, bands\r\nt60 = room.t60_impulse(file, bands.octave(31.25, 16e3), \"t30\")\r\n```\r\nAn error raised `ValueError: Digital filter critical frequencies must be 0 \u003c Wn \u003c 1`, which happens at the last frequency band\r\n\r\nhttps://github.com/python-acoustics/python-acoustics/blob/3147c6f579e4de5dbf60ba15ae7381cf1a84e0b1/acoustics/room.py#L169-L171\r\n\r\n`octave_high()` gives the largest element of `high` is 22627.41699797, which is out of range of Nyquist at 44100Hz. That results in the `ValueError` in\r\nhttps://github.com/python-acoustics/python-acoustics/blob/3147c6f579e4de5dbf60ba15ae7381cf1a84e0b1/acoustics/room.py#L198\r\n\r\nIt may be better to check the frequency range in `octave_high` and `third_high` or just after they are called.","author":{"url":"https://github.com/happyTonakai","@type":"Person","name":"happyTonakai"},"datePublished":"2023-05-25T06:50:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/262/python-acoustics/issues/262"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:913b4f63-dfe2-27ae-7be8-506613a22b12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 944C:87C1F:117536:17FF8A:698E194B |
| html-safe-nonce | da0e91f6503b15a3063def6eb06914233c61b7e2193462965e4f9f105be789c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDRDOjg3QzFGOjExNzUzNjoxN0ZGOEE6Njk4RTE5NEIiLCJ2aXNpdG9yX2lkIjoiNTU1MzQ3ODIwMTI4NjM5MzA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7c784759d60ba037563fab11bb76bfc8573e64caa4b99c69a1e3ec1f6099eb59 |
| hovercard-subject-tag | issue:1725197078 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-acoustics/python-acoustics/262/issue_layout |
| twitter:image | https://opengraph.githubassets.com/abdda094dcf2d990346afd6f7cefb706e49484a52ad5d041ebdb4c9f7b415601/python-acoustics/python-acoustics/issues/262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/abdda094dcf2d990346afd6f7cefb706e49484a52ad5d041ebdb4c9f7b415601/python-acoustics/python-acoustics/issues/262 |
| og:image:alt | Example code: from acoustics import room, bands t60 = room.t60_impulse(file, bands.octave(31.25, 16e3), "t30") An error raised ValueError: Digital filter critical frequencies must be 0 < Wn < 1, wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | happyTonakai |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52130a026bd9a3f98228b6aa6af91acdab5d18de411e2c1e67e6253493561296 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-acoustics/python-acoustics git https://github.com/python-acoustics/python-acoustics.git |
| octolytics-dimension-user_id | 3644840 |
| octolytics-dimension-user_login | python-acoustics |
| octolytics-dimension-repository_id | 14710112 |
| octolytics-dimension-repository_nwo | python-acoustics/python-acoustics |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14710112 |
| octolytics-dimension-repository_network_root_nwo | python-acoustics/python-acoustics |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 301a1d7743177dcb7528b1322117cdafeda8ff08 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width