Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ble-midi-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ble-midi-parser

Parse BLE MIDI data into timestamp and MIDI data that can be passed to the MIDI parsing library of your choice.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 23 Aug 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc