{"id":18118596,"url":"https://github.com/munshkr/threejs-3d-sound-sandbox","last_synced_at":"2026-04-26T12:31:51.328Z","repository":{"id":139514706,"uuid":"255101117","full_name":"munshkr/threejs-3d-sound-sandbox","owner":"munshkr","description":"ThreeJS example of 3D sound simulation using PositionalAudio and extra filters","archived":false,"fork":false,"pushed_at":"2020-04-13T00:44:31.000Z","size":1214,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T11:12:40.677Z","etag":null,"topics":["3d-sound","example","threejs","webaudio"],"latest_commit_sha":null,"homepage":"https://munshkr.github.io/threejs-3d-sound-sandbox/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/munshkr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-12T14:33:52.000Z","updated_at":"2024-10-13T03:39:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"1fa1de6d-67fa-4a40-82e2-fab16adfb5b2","html_url":"https://github.com/munshkr/threejs-3d-sound-sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/munshkr/threejs-3d-sound-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Fthreejs-3d-sound-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Fthreejs-3d-sound-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Fthreejs-3d-sound-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Fthreejs-3d-sound-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/munshkr","download_url":"https://codeload.github.com/munshkr/threejs-3d-sound-sandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Fthreejs-3d-sound-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d-sound","example","threejs","webaudio"],"created_at":"2024-11-01T05:12:35.246Z","updated_at":"2026-04-26T12:31:51.312Z","avatar_url":"https://github.com/munshkr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# threejs-3d-sound-sandbox\n\n[See Demo](https://munshkr.github.io/threejs-3d-sound-sandbox/)\n\nTesting filters on a ThreeJS PositionalAudio object (WebAudio Panner wrapper),\nto get a richer 3D sound simulation.\n\nFor now, there is a Low shelf filter implemented with the\n[BiquadFilterNode](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode),\nthat changes its frequency dynamically based on the camera and mesh distance.\nBy default, the distance model used is the same as the one set to the\nPanner/PositionalAudio object (either \"linear\", \"inverse\" or \"exponential\").\n\n## Usage\n\nSee [jsm/PositionalAudioFilter.js](jsm/PositionalAudioFilter.js) for the actual\nclass that implements the filters.\n\nTo use:\n\n```javascript\nconst camera = new THREE.PerspectiveCamera(...);\nconst listener = new THREE.AudioListener();\ncamera.add(listener);\n\n...\n\nconst sound = new THREE.PositionalAudio(listener);\nconst filter = new PositionalAudioFilter(sound);\n\nfilter.connect();\n```\n\nThen, when the camera moves, you should call `filter.update()`, to update\nfrequency based on distance.\n\n\n## Attributions\n\nThis example was based on the [ThreeJS WebAudio sandbox\nexample](https://threejs.org/examples/?q=audio#webaudio_sandbox).\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunshkr%2Fthreejs-3d-sound-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunshkr%2Fthreejs-3d-sound-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunshkr%2Fthreejs-3d-sound-sandbox/lists"}