0.2.3 • Published 3 years ago

capacitor-musetrainer-midi v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

license version

capacitor-musetrainer-midi

Capacitor MIDI plugin by MuseTrainer. Use internally in MuseTrainer app.

Supports

  • Web
  • iOS
  • Android

Install

npm install capacitor-musetrainer-midi
npx cap sync

API

addListener('deviceChange' | 'commandReceive' | 'connectError', ...)

addListener(eventName: 'deviceChange' | 'commandReceive' | 'connectError', listenerFunc: (args: any) => void) => Promise<PluginListenerHandle>
ParamType
eventName'deviceChange' | 'commandReceive' | 'connectError'
listenerFunc(args: any) => void

Returns: Promise<PluginListenerHandle>


sendCommand(...)

sendCommand({ command, timestamp, }: { command: number[]; timestamp: number; }) => Promise<void>
ParamType
__0{ command: number[]; timestamp: number; }

listDevices()

listDevices() => Promise<{ devices: any[]; }>

Returns: Promise<{ devices: any[]; }>


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.0-alpha.1

3 years ago

0.2.0-alpha.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.1-alpha.1

3 years ago

0.1.1-alpha.0

3 years ago

0.1.0

3 years ago

0.0.6-alpha.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago