{"id":20796395,"url":"https://github.com/jazz-soft/midi-test","last_synced_at":"2025-05-06T07:48:58.370Z","repository":{"id":57296895,"uuid":"136407995","full_name":"jazz-soft/midi-test","owner":"jazz-soft","description":"Virtual MIDI ports for testing MIDI applications","archived":false,"fork":false,"pushed_at":"2025-04-17T22:32:11.000Z","size":73,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T12:21:29.231Z","etag":null,"topics":["midi","test"],"latest_commit_sha":null,"homepage":"","language":"C++","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},"funding":{"github":"jazz-soft","custom":"https://paypal.me/jazzsoft"}},"created_at":"2018-06-07T01:58:46.000Z","updated_at":"2025-04-17T22:32:14.000Z","dependencies_parsed_at":"2024-04-26T16:54:41.660Z","dependency_job_id":"b20e8f3a-fc79-4491-844d-d4c69c45c33b","html_url":"https://github.com/jazz-soft/midi-test","commit_stats":{"total_commits":100,"total_committers":2,"mean_commits":50.0,"dds":0.35,"last_synced_commit":"7fefa8a419fd715729f4aa9eef5c406959933fe4"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fmidi-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fmidi-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fmidi-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fmidi-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazz-soft","download_url":"https://codeload.github.com/jazz-soft/midi-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252642500,"owners_count":21781325,"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","test"],"created_at":"2024-11-17T16:27:04.522Z","updated_at":"2025-05-06T07:48:58.351Z","avatar_url":"https://github.com/jazz-soft.png","language":"C++","funding_links":["https://github.com/sponsors/jazz-soft","https://paypal.me/jazzsoft"],"categories":[],"sub_categories":[],"readme":"# midi-test\n\n[![npm](https://img.shields.io/npm/v/midi-test.svg)](https://www.npmjs.com/package/midi-test)\n[![npm](https://img.shields.io/npm/dt/midi-test.svg)](https://www.npmjs.com/package/midi-test)\n[![build](https://github.com/jazz-soft/midi-test/actions/workflows/build.yml/badge.svg)](https://github.com/jazz-soft/midi-test/actions)\n\n## Virtual MIDI ports for testing MIDI applications\n\nSee also: [**web-midi-test**](https://github.com/jazz-soft/web-midi-test), [**test-midi-files**](https://github.com/jazz-soft/test-midi-files)\n\nInstall: `npm install midi-test --save-dev`\n\nManual rebuild (if needed): `node-gyp rebuild`\n\n## API\n### MIDI Source (Virtual MIDI-In)\n\n```js\nvar MT = require('midi-test');\nvar port = new MT.MidiSrc('VIRTUAL MIDI-In');\nport.connect();\nport.emit([0x90, 0x40, 0x7f]);\n//...\nport.disconnect();\n```\n\n### MIDI Destination (Virtual MIDI-Out)\n\n```js\nvar MT = require('midi-test');\nvar port = new MT.MidiDst('VIRTUAL MIDI-Out');\nport.receive = function(msg) { console.log('received:', msg); };\nport.connect();\n//...\nport.disconnect();\n```\n\n### TypeScript\n\n```ts\nimport * as MT from 'midi-test'\n//...\n```\n\n## Developer notes\n\n**midi-test** currently works in **Linux** and **MacOS**.  \n**Windows** version may appear some day in the future, but it is not in the immediate plans.\n\nThis package requires **Node.js v18 or above**,\nand the full stack of [**node-gyp**](https://www.npmjs.com/package/node-gyp) build tools.  \n(for older versions of Node please use **midi-test v1.2.9**)  \nLinux build also requires the ALSA libraries: `apt-get install libasound2-dev`\n\nSince the Linux version needs special permissions to access the computer's sound system,  \nit may not work properly in virtual Linux environments such as the one at [**Travis-CI**](https://travis-ci.org)\nor [**GitHub Actions**](https://docs.github.com/en/actions).\n\nTo make your test work with **Travis-CI** or **GitHub Actions**, run it on **MacOS**.  \nin `.travis.yml`:\n```\nos:\n  - osx\n...\n```\nin `.github/workflows/*.yml`:\n```\njobs:\n  build-macos:\n    runs-on: macos-latest\n  ...\n```\n\nIf you are getting a build error related to Python 3.12, you may want to add this build step\n(see the [build.yml](https://github.com/jazz-soft/midi-test/blob/master/.github/workflows/build.yml) file):\n```\n- run: python -m pip install --upgrade packaging pip setuptools\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fmidi-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazz-soft%2Fmidi-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fmidi-test/lists"}