use midi
Installation
npm install use-midi
Quick started
git clone https://github.com/tseijp/use-midi
cd use-midi
cd examples
yarn i
yarn start
- open browser and visit localhost:3000
- Now you can go to our demo, and try its usage.
Documentation and Examples
More info about the project can be found here.
Examples and tutorials can be found here.
What does it look like?
import React from 'react'
import { useMidi } from 'use-midi'
export function App () {
const ref = React.useRef()
const bind = useMidi(() => {/*~~~*/})
return (
<button {...bind()}/>
)
}