jamstik
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Jamstik+

WebBluetooth client for the Jamstik+

Installation

npm install --save jamstik

Usage

import Jamstik from 'jamstik';
 
const jamstik = new Jamstik();
await jamstik.connect();
 
jamstik.midi.subscribe(sample => {
    console.log('sample', sample);
});

A sample consists of:

{
  header: number,
  timestamp: number,
  status: number,
  note: number,
  velocity: number
};

For security reasons, WebBLE must be started from user interaction. Add a connect button that would start the BLE connection. See ./examples/basic/index.js

Demo

License

MIT

Dependents (0)

Package Sidebar

Install

npm i jamstik

Weekly Downloads

2

Version

0.0.7

License

MIT

Last publish

Collaborators

  • alexcastillo