{"id":20796393,"url":"https://github.com/jazz-soft/jzz-synth-tiny","last_synced_at":"2025-07-24T14:33:31.314Z","repository":{"id":47711308,"uuid":"153374381","full_name":"jazz-soft/JZZ-synth-Tiny","owner":"jazz-soft","description":"Tiny Web-Audio GM Synthesizer","archived":false,"fork":false,"pushed_at":"2025-03-30T23:24:41.000Z","size":116,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T15:59:28.504Z","etag":null,"topics":["general-midi","midi","web-audio","webaudio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jazz-soft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"jazz-soft","custom":"https://paypal.me/jazzsoft"}},"created_at":"2018-10-17T00:55:45.000Z","updated_at":"2025-03-30T23:23:03.000Z","dependencies_parsed_at":"2024-01-22T06:40:07.126Z","dependency_job_id":"879e777b-00e1-4617-b46e-9c1d397979f0","html_url":"https://github.com/jazz-soft/JZZ-synth-Tiny","commit_stats":{"total_commits":73,"total_committers":3,"mean_commits":"24.333333333333332","dds":"0.34246575342465757","last_synced_commit":"fc651bd0490984ff0438a215852ccc4313b4aff1"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/jazz-soft/JZZ-synth-Tiny","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-Tiny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-Tiny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-Tiny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-Tiny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazz-soft","download_url":"https://codeload.github.com/jazz-soft/JZZ-synth-Tiny/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-Tiny/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266856049,"owners_count":23995617,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["general-midi","midi","web-audio","webaudio"],"created_at":"2024-11-17T16:27:04.225Z","updated_at":"2025-07-24T14:33:31.289Z","avatar_url":"https://github.com/jazz-soft.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jazz-soft","https://paypal.me/jazzsoft"],"categories":[],"sub_categories":[],"readme":"# JZZ-synth-Tiny\n\n[![npm](https://img.shields.io/npm/v/jzz-synth-tiny.svg)](https://www.npmjs.com/package/jzz-synth-tiny)\n[![npm](https://img.shields.io/npm/dt/jzz-synth-tiny.svg)](https://www.npmjs.com/package/jzz-synth-tiny)\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/jzz-synth-tiny/badge)](https://www.jsdelivr.com/package/npm/jzz-synth-tiny)\n[![build](https://github.com/jazz-soft/JZZ-synth-Tiny/actions/workflows/build.yml/badge.svg)](https://github.com/jazz-soft/JZZ-synth-Tiny/actions)\n[![Coverage Status](https://coveralls.io/repos/github/jazz-soft/JZZ-synth-Tiny/badge.svg)](https://coveralls.io/github/jazz-soft/JZZ-synth-Tiny)\n[![Try jzz-synth-tiny on RunKit](https://badge.runkitcdn.com/jzz-synth-tiny.svg)](https://npm.runkit.com/jzz-synth-tiny)\n\nTiny Web-Audio GM Synthesizer \n([g200kg/webaudio-tinysynth](https://github.com/g200kg/webaudio-tinysynth))\nwrapped for [JZZ.js](https://github.com/jazz-soft/JZZ)\n\nIncludes all General MIDI instruments, plus, you can load your own sounds. \n\nPlease check the [demo](https://jazz-soft.github.io/modules/tiny/index.html)...\n\n## Install\n\n`npm install jzz-synth-tiny`  \nor `yarn add jzz-synth-tiny`  \nor get the full development version and minified scripts from [**GitHub**](https://github.com/jazz-soft/JZZ-synth-Tiny)\n\n## Usage\n\n##### Plain HTML\n\n```html\n\u003cscript src=\"JZZ.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"JZZ.synth.Tiny.js\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CDN (jsdelivr)\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz-synth-tiny\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CDN (unpkg)\n\n```html\n\u003cscript src=\"https://unpkg.com/jzz\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/jzz-synth-tiny\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CommonJS\n\n```js\nvar JZZ = require('jzz');\nrequire('jzz-synth-tiny')(JZZ);\n//...\n```\n\n##### TypeScript / ES6\n\n```ts\nimport { JZZ } from 'jzz';\nimport { Tiny } from 'jzz-synth-tiny';\nTiny(JZZ);\n//...\n```\n\n##### AMD\n\n```js\nrequire(['JZZ', 'JZZ.synth.Tiny'], function(JZZ, dummy) {\n  // ...\n});\n```\n\n## API\n\n##### Play directly\n\n```js\nJZZ.synth.Tiny().noteOn(0, 'C5', 127)\n   .wait(500).noteOn(0, 'E5', 127)\n   .wait(500).noteOn(0, 'G5', 127)\n   .wait(500).noteOff(0, 'C5').noteOff(0, 'E5').noteOff(0, 'G5');\n```\n\n##### Register as a MIDI port\n\n```js\nJZZ.synth.Tiny.register('Web Audio');\n\nJZZ().openMidiOut('Web Audio').noteOn(0, 'C5', 127)\n   .wait(500).noteOn(0, 'E5', 127)\n   .wait(500).noteOn(0, 'G5', 127)\n   .wait(500).noteOff(0, 'C5').noteOff(0, 'E5').noteOff(0, 'G5');\n```\nTo make vitual port visible by Web MIDI API, please check the instructions at https://github.com/jazz-soft/JZZ#virtual-midi-ports\n\n##### Get/Set sound\n\n```js\nvar synth = JZZ.synth.Tiny();\nvar tuba = synth.getSynth(58); // tuba\nvar drum = synth.getSynth(36, true); // bass drum\nsynth.setSynth(0, tuba); // set tuba to program 0 (it was piano originally);\nsynth.setSynth(35, drum, true); // set bass drum to percussion instrument 35;\n```\n\nSee more details at https://github.com/g200kg/webaudio-tinysynth#timbre-object-structure\n\n## Using in Node.js with headless Web Audio\n\n```js\nconst WAAPI = require('node-web-audio-api');\nconst JZZ = require('jzz');\nrequire('jzz-synth-tiny')(JZZ);\n\nglobal.window = { AudioContext: WAAPI.AudioContext };\n\nJZZ.synth.Tiny()\n  .or(function() { console.log('Cannot open MIDI-Out!\\n'/* + this.err() */); })\n  .note(0, 'C5', 127, 500).wait(500)\n  .note(0, 'E5', 127, 500).wait(500)\n  .note(0, 'G5', 127, 500).wait(500)\n  .note(9, 'C6', 127, 500).wait(500)\n  .and(function() { JZZ.lib.closeAudioContext(); });\n```\n\n## More information\n\nPlease visit [**https://jazz-soft.net**](https://jazz-soft.net) for more information.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-synth-tiny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazz-soft%2Fjzz-synth-tiny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-synth-tiny/lists"}