Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ble-midi-parser
Advanced tools
Parse BLE MIDI data into timestamp and MIDI data that can be passed to the MIDI parsing library of your choice.
Parse BLE MIDI data into timestamp and MIDI data that can be passed to the MIDI parsing library of your choice.
Example Usage:
import MIDIMessage from 'midimessage';
import { parsePacket } from 'ble-midi-parser';
// After receiving a BLE MIDI packet from a source
// such as the `noble` library.
const info = parsePacket(data);
info.events.forEach((event) => {
const m = MIDIMessage({
receivedTime: event.timestamp,
data: [event.midiStatus, event.midiOne, event.midiTwo]
});
// Do something with your midi message.
});
The contents of this library were extracted from the ble-midi project. Big thank you to skratchdot.
FAQs
Parse BLE MIDI data into timestamp and MIDI data that can be passed to the MIDI parsing library of your choice.
We found that ble-midi-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.