WebMidi.js

驯服 Web MIDI API。轻松收发 MIDI 信息 使用用户友好的功能(playNote、sendPitchBend 等)控制乐器。使用简单的事件监听器(noteon、pitchbend、controlchange 等)对 MIDI 输入做出反应。「Tame the Web MIDI API. Send and receive MIDI messages with ease. Control instruments with user-friendly functions (playNote, sendPitchBend, etc.). React to MIDI input with simple event listeners (noteon, pitchbend, controlchange, etc.).」

WebMidi.js Logo


npm
npm

npm

Introduction

WEBMIDI.js makes it easy to interact with MIDI instruments directly from a web browser or from
Node.js. It simplifies the control of physical or virtual MIDI instruments with user-friendly
functions such as playNote(), sendPitchBend() or sendControlChange(). It also allows reacting
to inbound MIDI messages by adding listeners for events such as "noteon", "pitchbend" or
"programchange".

In short, the goal behind WEBMIDI.js is to get you started with your web-based MIDI project as quickly
and efficiently as possible.

Getting Started

The official website site is the best place to get started. Over there,
you will find, amongst others, two key resources:

To exchange with fellow users and myself, you can visit our Forum
which is hosted on the GitHub Discussions platform:

If you want to stay up-to-date, here are your best sources:

Sponsors

WEBMIDI.js is a passion project but it still takes quite a bit of time, effort and money to develop and
maintain. That's why I would like to sincerely thank 👏 these sponsors for their support:

         

If you use the library and find it useful, please 💜 sponsor the project.

Feature Request

If you would like to request a new feature, enhancement or API change, please first check that it is
not already planned. Then, discuss it in the
Enhancement Proposals
section of the forum.

Citing this Software in Research

If you use this software for research or academic purposes, please cite the project in your
references (or wherever appropriate). Here's an example of how to cite it
(APA Style):

Côté, J. P. (2021). WebMidi.js v3.0.0 [Computer Software]. Retrieved from
https://github.com/djipco/webmidi

Cheers!

-- Jean-Philippe

Main metrics

Overview
Name With Ownerdjipco/webmidi
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 4)
Platform
License:Apache License 2.0
所有者活动
Created At2015-10-14 20:22:34
Pushed At2025-04-24 17:58:01
Last Commit At2025-04-14 16:06:10
Release Count147
Last Release Namev3.1.12 (Posted on 2024-11-22 18:55:25)
First Release Name1.0.0-alpha.1 (Posted on 2015-10-14 16:23:21)
用户参与
Stargazers Count1.6k
Watchers Count42
Fork Count121
Commits Count4.8k
Has Issues Enabled
Issues Count185
Issue Open Count5
Pull Requests Count185
Pull Requests Open Count3
Pull Requests Close Count10
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private