Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matthewshirley/react-midi-hook

React hook to easily use MIDI inputs via the Web MIDI API 🎹 🎼
https://github.com/matthewshirley/react-midi-hook

midi midiaccess react react-hooks web-midi-api

Last synced: about 2 hours ago
JSON representation

React hook to easily use MIDI inputs via the Web MIDI API 🎹 🎼

Awesome Lists containing this project

README

        

# react-midi-hook
> React hook to easily use MIDI inputs via the Web MIDI API.

## Install

```bash
yarn add --save react-midi-hook
```

## Usage

```jsx
import React from 'react'
import useMidi from 'react-midi-hook'

export default function App() {}
const { pressedKeys } = useMidi();

return (

{pressedKeys[0].letter}


);
}
```

# Browser Support

The Web MIDI API is currently only supported on Edge, Chrome and Opera. Please refer to [Can I use](https://caniuse.com/#feat=midi) for up to date information.

## License

MIT © [matthewshirley](https://github.com/matthewshirley)