{"id":20796410,"url":"https://github.com/jazz-soft/jzz-input-uke","last_synced_at":"2025-10-18T08:44:38.320Z","repository":{"id":101555601,"uuid":"432365576","full_name":"jazz-soft/JZZ-input-Uke","owner":"jazz-soft","description":"SVG MIDI Ukulele","archived":false,"fork":false,"pushed_at":"2024-02-05T06:08:22.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-18T23:48:02.597Z","etag":null,"topics":["midi","svg","ukulele"],"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},"funding":{"github":"jazz-soft","custom":"https://paypal.me/jazzsoft"}},"created_at":"2021-11-27T04:15:03.000Z","updated_at":"2022-03-05T05:16:32.000Z","dependencies_parsed_at":"2024-02-05T07:26:30.443Z","dependency_job_id":null,"html_url":"https://github.com/jazz-soft/JZZ-input-Uke","commit_stats":{"total_commits":73,"total_committers":1,"mean_commits":73.0,"dds":0.0,"last_synced_commit":"28b2d4a96b2b634cbb691755e6f495213871c1b1"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-input-Uke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-input-Uke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-input-Uke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-input-Uke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazz-soft","download_url":"https://codeload.github.com/jazz-soft/JZZ-input-Uke/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243141258,"owners_count":20242817,"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":["midi","svg","ukulele"],"created_at":"2024-11-17T16:27:07.307Z","updated_at":"2025-10-18T08:44:38.218Z","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-input-Uke\nSVG MIDI Ukulele\n\n[![npm](https://img.shields.io/npm/v/jzz-input-uke.svg)](https://www.npmjs.com/package/jzz-input-uke)\n[![npm](https://img.shields.io/npm/dt/jzz-input-uke.svg)](https://www.npmjs.com/package/jzz-input-uke)\n[![build](https://github.com/jazz-soft/JZZ-input-Uke/actions/workflows/build.yml/badge.svg)](https://github.com/jazz-soft/JZZ-input-Uke/actions)\n[![Coverage Status](https://coveralls.io/repos/github/jazz-soft/JZZ-input-Uke/badge.svg?branch=main)](https://coveralls.io/github/jazz-soft/JZZ-input-Uke?branch=main)\n\n## Install\n`npm install jzz-input-uke --save`  \nor `yarn add jzz-input-uke`  \nor get the full development version and minified scripts from [**GitHub**](https://github.com/jazz-soft/JZZ-input-Uke)\n\n## Usage\n\n##### Plain HTML\n```html\n\u003cscript src=\"JZZ.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"JZZ.input.Uke.js\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CDN (jsdelivr)\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz-input-uke\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CDN (unpkg)\n```html\n\u003cscript src=\"https://unpkg.com/jzz\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/jzz-input-uke\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CommonJS\n```js\nvar JZZ = require('jzz');\nrequire('jzz-input-uke')(JZZ);\n//...\n```\n\n##### TypeScript / ES6\n\n```ts\nimport { JZZ } from 'jzz';\nimport { Uke } from 'jzz-input-uke';\nUke(JZZ);\n//...\n```\n\n## Example HTML\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=en\u003e\n\u003chead\u003e\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\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz-input-uke\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003cdiv id=\"uke_div\"\u003e\u003c/div\u003e\n\u003cscript\u003e\nJZZ.synth.Tiny.register('Web Audio');\nvar out = JZZ().openMidiOut();\nvar uke = JZZ.input.Uke({ at: \"uke_div\" });\nuke.viewbox(-3.1, -.15, 3.2, 1.35);\nuke.transform(1, 3, -3, 1, 0, 0)\nuke.connect(out);\n\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## API\n#### Construction\n```js\nvar uke = JZZ.input.Uke(args);\n// or\nJZZ.input.Uke.register('My Cool Ukulele', args);\nvar uke = JZZ().openMidiIn('My Cool Ukulele');\n```\n`args` is an object with th optional keys:\n- `at`: DOM element to insert SVG, or its ID as string; default: the bottom of the page;\n- `frets`: number of frets; default: `18`;\n- `strings`: tuning; default: `gCEA`;\n- `channels`: MIDI channels for each string; default: `[0, 1, 2, 3]`;\n- `active`: if `false`, ignore the user interaction; default: `true`\n\n#### Connection\n```\nvar midi_in = JZZ().openMidiIn();\nvar midi_out = JZZ().openMidiOut();\nmidi_in.connect(uke);\nuke.connect(midi_out);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-input-uke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazz-soft%2Fjzz-input-uke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-input-uke/lists"}