{"id":43037538,"url":"https://github.com/niusounds/miku.js","last_synced_at":"2026-01-31T08:34:50.608Z","repository":{"id":19913272,"uuid":"23178932","full_name":"niusounds/miku.js","owner":"niusounds","description":"JavaScript library for using NSX-39 with Web MIDI.","archived":false,"fork":false,"pushed_at":"2017-03-11T17:03:48.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T09:02:48.147Z","etag":null,"topics":["javascript","midi","miku","web-midi"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/niusounds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-21T07:58:14.000Z","updated_at":"2024-04-07T21:52:52.000Z","dependencies_parsed_at":"2022-08-17T15:10:18.107Z","dependency_job_id":null,"html_url":"https://github.com/niusounds/miku.js","commit_stats":null,"previous_names":["ejeinc/miku.js"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/niusounds/miku.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niusounds%2Fmiku.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niusounds%2Fmiku.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niusounds%2Fmiku.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niusounds%2Fmiku.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niusounds","download_url":"https://codeload.github.com/niusounds/miku.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niusounds%2Fmiku.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28935452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T07:49:44.436Z","status":"ssl_error","status_checked_at":"2026-01-31T07:49:34.274Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","midi","miku","web-midi"],"created_at":"2026-01-31T08:34:50.551Z","updated_at":"2026-01-31T08:34:50.601Z","avatar_url":"https://github.com/niusounds.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"miku.js\n=======\n\nJavaScript library for using NSX-39 with Web MIDI.\n\n[DEMO](demo.html)\n\n## How to use\n\n```JavaScript\n// get instance\nMiku.init()\n  .then(miku =\u003e {\n    // set lyrics\n    miku.lyrics('こ', 'ん', 'に', 'ち', 'わ');\n\n    // play\n    miku.noteOn(69, 127, 0);\n\n    // stop\n    miku.noteOff(69, 0, 0);\n  });\n```\n\n## API\n\n### Set lyrics\n\nSend MIDI message to set lyrics.\n\n```JavaScript\n// Array of String\nmiku.lyrics(['あ', 'い', 'う', 'え', 'お']);\n\n// Separated by space\nmiku.lyrics('あ い う え お');\n\n// Separated by comma\nmiku.lyrics('こ,ん,に,ち,わ');\n\n// unknown character is ignored\nmiku.lyrics('み t ddd く'); // Same as miku.lyrics('み く')\n```\n\n### Play note\n\n```JavaScript\nlet noteNumber = 60;\nlet velocity   = 64;\n\nmiku.noteOn(noteNumber, velocity, 0);\n\n...\n// Some seconds after\n\nmiku.noteOff(noteNumber, velocity, 0);\n```\n\n### Send other MIDI message\n\n```JavaScript\n// bend value is 0 to 16384. Default value is 8192.\nmiku.pitchBend(4096);\n\n// Modulation\nmiku.controlChange(1, 127);\n```\n\n### Event listening\n\nThese events are also emitted from MIDI Input.\n\n```JavaScript\nmiku.on('noteOn', (noteNum, velocity) =\u003e {\n  console.log('Note on', noteNum, velocity);\n});\n\nmiku.on('noteOff', (noteNum, velocity) =\u003e {\n  console.log('Note off', noteNum, velocity);\n});\n\nmiku.on('pitchBend', (value) =\u003e {\n  console.log('Pitch bend', value);\n});\n\nmiku.on('sysEx', (dataArray) =\u003e {\n  console.log('sys ex', dataArray);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniusounds%2Fmiku.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniusounds%2Fmiku.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniusounds%2Fmiku.js/lists"}