{"id":20796425,"url":"https://github.com/jazz-soft/jzz-synth-osc","last_synced_at":"2025-05-06T07:53:47.968Z","repository":{"id":57287850,"uuid":"118856170","full_name":"jazz-soft/JZZ-synth-OSC","owner":"jazz-soft","description":"Fallback MIDI-Out implementation","archived":false,"fork":false,"pushed_at":"2024-04-15T06:49:47.000Z","size":59,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T05:04:53.432Z","etag":null,"topics":["audio","midi","web-audio","web-audio-api","web-midi","web-midi-api","webaudio","webaudioapi","webmidi","webmidiapi"],"latest_commit_sha":null,"homepage":null,"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},"funding":{"github":"jazz-soft","custom":"https://paypal.me/jazzsoft"}},"created_at":"2018-01-25T03:19:59.000Z","updated_at":"2023-01-07T18:01:39.000Z","dependencies_parsed_at":"2024-04-05T04:21:32.375Z","dependency_job_id":"c7646c29-f67b-4642-a3c4-1b0517ff6d2a","html_url":"https://github.com/jazz-soft/JZZ-synth-OSC","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":"0.42553191489361697","last_synced_commit":"441db20519580df0fbfaf775a1be4d96768e2096"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-OSC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-OSC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-OSC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-synth-OSC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazz-soft","download_url":"https://codeload.github.com/jazz-soft/JZZ-synth-OSC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225063838,"owners_count":17415172,"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":["audio","midi","web-audio","web-audio-api","web-midi","web-midi-api","webaudio","webaudioapi","webmidi","webmidiapi"],"created_at":"2024-11-17T16:27:13.563Z","updated_at":"2024-11-17T16:27:14.144Z","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-OSC\nA simple MIDI-Out implementation for the systems with no better option available.  \nMainly, for use as a template for your own JZZ-compatible synths.  \nFor real world applications,\nplease consider using [JZZ-synth-Tiny](https://www.npmjs.com/package/jzz-synth-tiny) instead.\n\n[![npm](https://img.shields.io/npm/v/jzz-synth-osc.svg)](https://www.npmjs.com/package/jzz-synth-osc)\n[![npm](https://img.shields.io/npm/dt/jzz-synth-osc.svg)](https://www.npmjs.com/package/jzz-synth-osc)\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/jzz-synth-osc/badge)](https://www.jsdelivr.com/package/npm/jzz-synth-osc)\n[![build](https://github.com/jazz-soft/JZZ-synth-OSC/actions/workflows/build.yml/badge.svg)](https://github.com/jazz-soft/JZZ-synth-OSC/actions)\n[![Coverage Status](https://coveralls.io/repos/github/jazz-soft/JZZ-synth-OSC/badge.svg?branch=master)](https://coveralls.io/github/jazz-soft/JZZ-synth-OSC?branch=master)\n\n## Install\n\n`npm install jzz-synth-osc`  \nor `yarn add jzz-synth-osc`  \nor get the full development version and minified scripts from [**GitHub**](https://github.com/jazz-soft/JZZ-synth-OSC)\n\n## Usage\n\n##### Plain HTML\n\n```html\n\u003cscript src=\"JZZ.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"JZZ.synth.OSC.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-osc\"\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-osc\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CommonJS\n\n```js\nvar JZZ = require('jzz');\nrequire('jzz-synth-osc')(JZZ);\n//...\n```\n\n##### TypeScript / ES6\n\n```ts\nimport { JZZ } from 'jzz';\nimport { OSC } from 'jzz-synth-osc';\nOSC(JZZ);\n//...\n```\n\n##### AMD\n\n```js\nrequire(['JZZ', 'JZZ.synth.OSC'], function(JZZ, dummy) {\n  // ...\n});\n```\n\n##### //...\n\n```js\nJZZ.synth.OSC().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## 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-osc')(JZZ);\n\nglobal.window = { AudioContext: WAAPI.AudioContext };\n\nJZZ.synth.OSC()\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.  \nYour questions and comments are welcome [**here**](https://jazz-soft.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-synth-osc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazz-soft%2Fjzz-synth-osc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-synth-osc/lists"}