Capacitor MIDI plugin by MuseTrainer. Use internally in MuseTrainer app.
- Web
- iOS
- Android
npm install capacitor-musetrainer-midi
npx cap sync
addListener('deviceChange' | 'commandReceive' | 'connectError', ...)
sendCommand(...)
listDevices()
- Interfaces
addListener(eventName: 'deviceChange' | 'commandReceive' | 'connectError', listenerFunc: (args: any) => void) => Promise<PluginListenerHandle>
Param | Type |
---|---|
eventName |
'deviceChange' | 'commandReceive' | 'connectError' |
listenerFunc |
(args: any) => void |
Returns: Promise<PluginListenerHandle>
sendCommand({ command, timestamp, }: { command: number[]; timestamp: number; }) => Promise<void>
Param | Type |
---|---|
__0 |
{ command: number[]; timestamp: number; } |
listDevices() => Promise<{ devices: any[]; }>
Returns: Promise<{ devices: any[]; }>
Prop | Type |
---|---|
remove |
() => Promise<void> |