{"id":17049475,"url":"https://github.com/samccone/wavesvg","last_synced_at":"2025-06-10T09:35:43.156Z","repository":{"id":8341709,"uuid":"9899500","full_name":"samccone/wavesvg","owner":"samccone","description":"wavesvg","archived":false,"fork":false,"pushed_at":"2013-06-09T17:07:08.000Z","size":236,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-03T17:36:55.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/samccone.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-05-06T23:29:31.000Z","updated_at":"2021-06-21T13:12:30.000Z","dependencies_parsed_at":"2022-09-12T15:41:38.994Z","dependency_job_id":null,"html_url":"https://github.com/samccone/wavesvg","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/samccone%2Fwavesvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samccone%2Fwavesvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samccone%2Fwavesvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samccone%2Fwavesvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samccone","download_url":"https://codeload.github.com/samccone/wavesvg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samccone%2Fwavesvg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259048833,"owners_count":22797810,"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-10-14T09:54:42.317Z","updated_at":"2025-06-10T09:35:43.120Z","avatar_url":"https://github.com/samccone.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"wave svg\n----------------\n\n\n#### wavesvg\n\n```js\n  new waveSvg({\n    buffer: Audiobuffer,\n    maxHeight: 300,\n    width: 1300, //\u003cdefault window.innerWidth\u003e\n    pixelsPerSecond: 200, //\u003cdefault window.innerWidth\u003e\n    appendTo: dom node, //\u003cdefault document.body\u003e\n    max: 0.2 //\u003cdefaults to the tallest audio peak\u003e\n    workerPath: \"path to worker\" //\u003cdefaults to peak-worker.js\u003e\n    downSample: 16 // \u003cdefaults to 16\u003e -- higher num for faster render\n  });\n```\n##### interface\n\n```js\n  instance.updatePixelsPerSecond(n);\n  instance.updateMaxScalar(n);\n  instance.updateDownSampleRate(n);\n```\n\n#### streamsvg\n\n```js\n  navigator.webkitGetUserMedia({audio: true}, function(d) {\n    new streamSvg({\n      maxHeight: 300,\n      pixelsPerSecond: 200,\n      stream: d,\n      max: 2\n    });\n  });\n```\n\n##### interface\n\n```js\n  // you can also not pass a stream and just call\n  instance.onstream(buffer);\n```\n\n#### To Dev\n```\n  cake watch\n```\n\n#### To Build From Source\n```\n  cake build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamccone%2Fwavesvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamccone%2Fwavesvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamccone%2Fwavesvg/lists"}