react-mobx-music
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

React Mobx Music

Install

yarn add react-mobx-music

Usage

<ReactMobxMusic instrumentNames={["accordion"]}>
  {({ isLoading, instruments }) =>
    isLoading ? (
      <div> Loading </div>
    ) : (
      <div>
        Loaded !
        <button
          onMouseDown={() => {
            instruments.get("accordion").play("A4");
          }}
          onMouseUp={() => {
            instruments.get("accordion").stop("A4");
          }}
        >
          Play A4
        </button>
      </div>
    )
  }
</ReactMobxMusic>

Readme

Keywords

none

Package Sidebar

Install

npm i react-mobx-music

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

9.34 kB

Total Files

5

Last publish

Collaborators

  • rakannimer