capacitor-musetrainer-midi
v0.2.3
Published
Capacitor MIDI plugin by MuseTrainer
Downloads
145
Maintainers
Readme
capacitor-musetrainer-midi
Capacitor MIDI plugin by MuseTrainer. Use internally in MuseTrainer app.
Supports
- [x] Web
- [x] iOS
- [ ] Android
Install
npm install capacitor-musetrainer-midi
npx cap syncAPI
addListener('deviceChange' | 'commandReceive' | 'connectError', ...)sendCommand(...)listDevices()- Interfaces
addListener('deviceChange' | 'commandReceive' | 'connectError', ...)
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(...)
sendCommand({ command, timestamp, }: { command: number[]; timestamp: number; }) => Promise<void>| Param | Type |
| --------- | ------------------------------------------------------ |
| __0 | { command: number[]; timestamp: number; } |
listDevices()
listDevices() => Promise<{ devices: any[]; }>Returns: Promise<{ devices: any[]; }>
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
