{"id":13786598,"url":"https://github.com/keijiro/unity-audio-spectrum","last_synced_at":"2025-05-11T22:31:36.751Z","repository":{"id":137964506,"uuid":"13381870","full_name":"keijiro/unity-audio-spectrum","owner":"keijiro","description":"Provides spectrum data with audio output (Unity, C#)","archived":false,"fork":false,"pushed_at":"2013-10-12T06:02:52.000Z","size":3756,"stargazers_count":215,"open_issues_count":0,"forks_count":37,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-07T22:43:02.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keijiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-07T11:21:21.000Z","updated_at":"2025-03-11T14:19:00.000Z","dependencies_parsed_at":"2023-03-14T15:16:23.530Z","dependency_job_id":null,"html_url":"https://github.com/keijiro/unity-audio-spectrum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2Funity-audio-spectrum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2Funity-audio-spectrum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2Funity-audio-spectrum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2Funity-audio-spectrum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keijiro","download_url":"https://codeload.github.com/keijiro/unity-audio-spectrum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253645219,"owners_count":21941313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-03T19:01:18.763Z","updated_at":"2025-05-11T22:31:31.731Z","avatar_url":"https://github.com/keijiro.png","language":"C#","readme":"unity-audio-spectrum\n====================\n\n![Screenshot](http://keijiro.github.io/unity-audio-spectrum/Screenshot.png)\n\nThis is a set of C# scripts which provides spectrum data with audio output.\nIt provides spectrum data as a set of [octave bands]\n(http://en.wikipedia.org/wiki/Octave_band) which is commonly used in music visualizers.\nYou can easily use these data to make audio visualization in Unity apps.\n\nFor a detailed example, see [the test branch]\n(https://github.com/keijiro/unity-audio-spectrum/tree/test).\n\nSetup\n-----\n\n1. Import AudioSpectrum.cs.\n1. Import AudioSpectrumEditor.cs into the \"Editor\" directory.\n1. Add AudioSpectrum to a game object.\n\nOptions\n-------\n\n![Inspector](http://keijiro.github.io/unity-audio-spectrum/Inspector.png)\n\n#### Number of samples\n\nThe number of samples which is fed to FFT. The higher number, the more accurate result,\nbut reduce performance.\n\n#### Band type\n\nThere are several octave band types.\n\n- 4 band\n- 4 band (visual) - only covers low and middle ranges\n- 8 band\n- 10 band (ISO standard)\n- 24 band \n- 31 band (FBQ3012)\n\n#### Fall speed\n\nThe fall-down speed of the peak levels.\n\n#### Sensibility\n\nThe coefficient which is used to calculate the mean levels. The higher value, the faster movement.\n\nProperties\n----------\n\n#### float[] Levels\n\nThe array which provides the level of the each octave band.\n\n#### float[] PeakLevels\n\nThe array which provides the peak level of the each band.\n\n#### float[] MeanLevels\n\nThe array which provides the mean level for a short period of the time.\nThese values respond slower than real-time values and suit for make smooth animations.\n\nLicense\n-------\n\nCopyright (C) 2013 Keijiro Takahashi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Sound"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeijiro%2Funity-audio-spectrum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeijiro%2Funity-audio-spectrum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeijiro%2Funity-audio-spectrum/lists"}