{"id":20249997,"url":"https://github.com/bafs/phase","last_synced_at":"2025-04-10T22:45:17.000Z","repository":{"id":38988092,"uuid":"183964883","full_name":"BafS/Phase","owner":"BafS","description":"Generates sounds from javascript functions.","archived":false,"fork":false,"pushed_at":"2023-12-06T01:42:44.000Z","size":2411,"stargazers_count":14,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T22:45:08.996Z","etag":null,"topics":["react","signal-processing","sound","sound-synthesis","webaudio-api"],"latest_commit_sha":null,"homepage":"https://bafs.github.io/Phase/build","language":"TypeScript","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/BafS.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":"2019-04-28T22:22:26.000Z","updated_at":"2023-12-12T08:44:03.000Z","dependencies_parsed_at":"2022-08-25T21:53:08.641Z","dependency_job_id":null,"html_url":"https://github.com/BafS/Phase","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/BafS%2FPhase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BafS%2FPhase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BafS%2FPhase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BafS%2FPhase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BafS","download_url":"https://codeload.github.com/BafS/Phase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312190,"owners_count":21082637,"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":["react","signal-processing","sound","sound-synthesis","webaudio-api"],"created_at":"2024-11-14T09:56:32.608Z","updated_at":"2025-04-10T22:45:16.978Z","avatar_url":"https://github.com/BafS.png","language":"TypeScript","readme":"# Phase\n\nEvaluate, plot and listen given javascript functions using web audio api.\n\n\u003ccenter\u003e\n\u003cimg src=\"https://i.imgur.com/RaU2et7.png\" width=\"1133px\" /\u003e\n\u003c/center\u003e\n\n## Example\n\n```js\nconst a = 440;\nconst sum = (fn, [min, max]) =\u003e Array(max - min + 1).fill().reduce((sum, _, i) =\u003e sum + fn(i + min), 0);\n\n// 3 harmonics to have a more realistic sound\nsum(n =\u003e Math.sin(2 * a * n * Math.PI * t) * .7 / n, [1, 3])\n```\n\n### Dev\n\n`npm i` to install the dependencies\n\n - `npm run dev` to dev and run a local server\n - `npm run build` to build for production\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbafs%2Fphase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbafs%2Fphase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbafs%2Fphase/lists"}