{"id":24754985,"url":"https://github.com/lukehorvat/vibrato","last_synced_at":"2026-05-02T10:32:02.523Z","repository":{"id":57392081,"uuid":"105886710","full_name":"lukehorvat/vibrato","owner":"lukehorvat","description":"Web Audio API vibrato effect.","archived":false,"fork":false,"pushed_at":"2017-10-07T12:20:36.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T12:40:15.321Z","etag":null,"topics":["audiocontext","vibrato","web-audio"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/lukehorvat.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}},"created_at":"2017-10-05T12:23:45.000Z","updated_at":"2017-10-05T15:26:33.000Z","dependencies_parsed_at":"2022-09-19T04:31:30.538Z","dependency_job_id":null,"html_url":"https://github.com/lukehorvat/vibrato","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehorvat%2Fvibrato","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehorvat%2Fvibrato/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehorvat%2Fvibrato/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehorvat%2Fvibrato/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukehorvat","download_url":"https://codeload.github.com/lukehorvat/vibrato/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061388,"owners_count":20554563,"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":["audiocontext","vibrato","web-audio"],"created_at":"2025-01-28T12:33:31.004Z","updated_at":"2026-05-02T10:32:02.488Z","avatar_url":"https://github.com/lukehorvat.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vibrato [![NPM version](http://img.shields.io/npm/v/vibrato.svg?style=flat-square)](https://www.npmjs.com/package/vibrato)\n\n[Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API) vibrato effect.\n\n## Installation\n\nInstall the package with NPM:\n\n```bash\n$ npm install vibrato\n```\n\n## Usage\n\nThe package exposes a function that accepts an [AudioContext](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext) as the first argument, and an [AudioParam](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam) as the second. Optionally, an object specifying `rate` and `depth` can also be provided as the third argument. When called, the function will apply a vibrato effect to the AudioParam.\n\nExample:\n\n```javascript\nimport vibrato from \"vibrato\";\n\nlet context = new (window.AudioContext || window.webkitAudioContext)();\nlet oscillator = context.createOscillator();\noscillator.connect(context.destination);\noscillator.start();\n\nvibrato(context, oscillator.frequency, { rate: 4, depth: 16 });\n```\n\nFurthermore, as a convenient shorthand, you can pass in an [OscillatorNode](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode) directly:\n\n```javascript\nvibrato(oscillator, { rate: 4, depth: 16 });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukehorvat%2Fvibrato","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukehorvat%2Fvibrato","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukehorvat%2Fvibrato/lists"}