{"id":13767984,"url":"https://github.com/jazz-soft/jazz-midi-electron","last_synced_at":"2025-05-06T07:48:29.617Z","repository":{"id":57279693,"uuid":"118369358","full_name":"jazz-soft/jazz-midi-electron","owner":"jazz-soft","description":"MIDI for Electron","archived":false,"fork":false,"pushed_at":"2025-04-05T16:42:31.000Z","size":142,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T14:16:25.979Z","etag":null,"topics":["electron","midi","midi2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jazz-soft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"jazz-soft","custom":"https://paypal.me/jazzsoft"}},"created_at":"2018-01-21T20:04:56.000Z","updated_at":"2025-04-05T16:41:34.000Z","dependencies_parsed_at":"2024-01-01T23:32:40.224Z","dependency_job_id":"2a3e880e-2923-45db-98ac-128183cbb229","html_url":"https://github.com/jazz-soft/jazz-midi-electron","commit_stats":{"total_commits":96,"total_committers":3,"mean_commits":32.0,"dds":"0.44791666666666663","last_synced_commit":"4af4f45ac813be39cfda2faa27a69fbf698a55c5"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fjazz-midi-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fjazz-midi-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fjazz-midi-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fjazz-midi-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazz-soft","download_url":"https://codeload.github.com/jazz-soft/jazz-midi-electron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252642410,"owners_count":21781313,"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":["electron","midi","midi2"],"created_at":"2024-08-03T16:01:15.120Z","updated_at":"2025-05-06T07:48:29.582Z","avatar_url":"https://github.com/jazz-soft.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jazz-soft","https://paypal.me/jazzsoft"],"categories":["Libraries: Web MIDI API"],"sub_categories":["Web MIDI API"],"readme":"# jazz-midi-electron\n\n[![npm](https://img.shields.io/npm/v/jazz-midi-electron.svg)](https://www.npmjs.com/package/jazz-midi-electron)\n[![npm](https://img.shields.io/npm/dt/jazz-midi-electron.svg)](https://www.npmjs.com/package/jazz-midi-electron)\n[![build](https://github.com/jazz-soft/jazz-midi-electron/actions/workflows/build.yml/badge.svg)](https://github.com/jazz-soft/jazz-midi-electron/actions)\n[![Coverage Status](https://coveralls.io/repos/github/jazz-soft/jazz-midi-electron/badge.svg?branch=master)](https://coveralls.io/github/jazz-soft/jazz-midi-electron?branch=master)\n\n## MIDI for Electron\n\nMIDI integration in [**Electron**](https://electronjs.org) applications.\n\n( see also: [jazz-midi-vscode](https://github.com/jazz-soft/jazz-midi-vscode) ... )\n\n*Notice:* v2.x.x introduces some breaking changes,  \nhowever, upgrading old projects from v1.x.x will well worth the trouble.  \nYou are getting:\n- fewer dependencies\n- improved code security\n- no additional installs required\n\n## Examples\n\n[**sample-midi-piano**](https://github.com/jazz-soft/jazz-midi-electron/tree/master/sample-midi-piano)  \n[![screenshot](https://raw.githubusercontent.com/jazz-soft/jazz-midi-electron/master/sample-midi-piano/screenshot.png)](https://github.com/jazz-soft/jazz-midi-electron/tree/master/sample-midi-piano)\n\n[**sample-midi-player**](https://github.com/jazz-soft/jazz-midi-electron/tree/master/sample-midi-piano)  \n[![screenshot](https://raw.githubusercontent.com/jazz-soft/jazz-midi-electron/master/sample-midi-player/screenshot.png)](https://github.com/jazz-soft/jazz-midi-electron/tree/master/sample-midi-player)\n\n## Install\n`npm install jazz-midi-electron --save`\n\n## Usage\n( see the examples above... )\n\n### Main Process\n\n```js\nconst JZZ = require('jzz');\n// jazz-midi-electron is not required if using MIDI only in the Main Process\n// ...\nJZZ().openMidiOut() // ...\n```\nMain Process can use [**JZZ.js**](https://github.com/jazz-soft/JZZ) as normal Node.js application.  \nIt can access regular MIDI ports and create virtual ports.\n\n### Browser Window\n\n```html\n\u003cscript src='node_modules/jazz-midi-electron/jazz-midi-electron.js'\u003e\u003c/script\u003e\n\u003cscript src='node_modules/jzz/javascript/JZZ.js'\u003e\u003c/script\u003e\n// ...\nJZZ().openMidiOut() // ...\n```\n```js\n// when creating the Browser Window:\nconst JME = require('jazz-midi-electron');\n// ...\nwin = new BrowserWindow({\n    // ...\n    webPreferences: { // see the preload.js in this repository\n        preload: path.join(__dirname, 'preload.js')\n    }\n});\nJME.init(win);\n// ...\n```\nBrowser Window will see all MIDI ports (including virtual) available to the Main Process.  \nIt can create additional Web Audio and HTML-based MIDI ports\n(see [jzz-synth-tiny](https://github.com/jazz-soft/JZZ-synth-Tiny) and [jzz-input-kbd](https://github.com/jazz-soft/JZZ-input-Kbd)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjazz-midi-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazz-soft%2Fjazz-midi-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjazz-midi-electron/lists"}