{"id":20674924,"url":"https://github.com/lironhazan/ng-zzfx","last_synced_at":"2025-04-19T20:33:55.740Z","repository":{"id":38241726,"uuid":"266365956","full_name":"LironHazan/ng-ZzFx","owner":"LironHazan","description":"API for: ZzFX - Zuper Zmall Zound Zynth - Micro Edition by Frank Force (Web Audio rocks!) - Let it sound","archived":false,"fork":false,"pushed_at":"2023-03-04T19:57:03.000Z","size":3157,"stargazers_count":6,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T23:23:18.695Z","etag":null,"topics":["angular","game-development","ng-zzfx","zound","zzfx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/LironHazan.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":"2020-05-23T15:36:11.000Z","updated_at":"2023-08-24T01:24:40.000Z","dependencies_parsed_at":"2023-02-15T09:50:20.873Z","dependency_job_id":null,"html_url":"https://github.com/LironHazan/ng-ZzFx","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/LironHazan%2Fng-ZzFx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LironHazan%2Fng-ZzFx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LironHazan%2Fng-ZzFx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LironHazan%2Fng-ZzFx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LironHazan","download_url":"https://codeload.github.com/LironHazan/ng-ZzFx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249795026,"owners_count":21326776,"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":["angular","game-development","ng-zzfx","zound","zzfx"],"created_at":"2024-11-16T21:08:05.178Z","updated_at":"2025-04-19T20:33:55.714Z","avatar_url":"https://github.com/LironHazan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgZzFx 8bit zounds for Angular ;)\n\n[![npm version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=js\u0026type=6\u0026v=0.0.6\u0026x2=0)](https://www.npmjs.com/package/ng-zzfx)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/LironHazan/ng-ZzFx/blob/master/LICENSE)\n\n\nAngular API for: ZzFX - Zuper Zmall Zound Zynth - Micro Edition\n\n[ZzFx.js](https://github.com/KilledByAPixel/ZzFX)\n\n[ZzFX Demo](https://codepen.io/KilledByAPixel/pen/BaowKzv)\n\nMIT License - Copyright 2019 Frank Force\n\n[Angularish demo](https://ecstatic-carson-a46449.netlify.app/)\n\nng-zzfx is also used in [ng-tetris](https://github.com/melcor76/ng-tetris)\n--\u003e [Hit to play!](https://focused-mestorf-930f82.netlify.app/)\n\nHow to use?\n\nIn your component:\n\n```typescript\n  case1 = [ , , 1675, , .06, .24, 1, 1.82, , , 837, .06];\n```\nGive your element a sound by adding the directive as follows:\n\nIn your template:\n\n``` \n  \u003cdiv zoundfx trigger=\"click\" [zound]=\"case1\"\u003e💰\u003c/div\u003e\n\n```\n\nOr by using the zzfs function wrapper:\n\n```ts\n\n  playSound: ZzFxFn;\n  case4 = [1.5,.5,270,,.1,,1,1.5,,,,,,,,.1,.01];\n\n  ngOnInit() {\n    this.playSound = Zoundfx.start(0.2);\n  }\n\n  onClick() {\n    this.playSound(this.case4);\n  }\n````\n\n### API\nDirective inputs:\n- vol = 0.1; // Volume % should be a number from 0 to 1;\n- trigger = 'onclick'; // String, a name of any event you want to react to\n- zound: number[]; // [See example](https://codepen.io/KilledByAPixel/pen/BaowKzv) Or [custom your own sounds](https://zzfx.3d2k.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flironhazan%2Fng-zzfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flironhazan%2Fng-zzfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flironhazan%2Fng-zzfx/lists"}