capacitor-musetrainer-pitch-detection
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

capacitor-musetrainer-pitch-detection

Capacitor Pitch Detection plugin, by authors of MuseTrainer app.

Example app.

Supports

  • [x] iOS
  • [ ] Android
  • [ ] Web

Install

npm install capacitor-musetrainer-pitch-detection
npx cap sync

API

addListener('pitchReceive', ...)

addListener(eventName: 'pitchReceive', listenerFunc: (pitch: Pitch) => void) => Promise<PluginListenerHandle>
Param Type
eventName 'pitchReceive'
listenerFunc (pitch: Pitch) => void

Returns: Promise<PluginListenerHandle>


checkPermissions()

checkPermissions() => Promise<PermissionStatus>

Returns: Promise<PermissionStatus>


requestPermissions()

requestPermissions() => Promise<PermissionStatus>

Returns: Promise<PermissionStatus>


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

PermissionStatus

Prop Type
microphone PermissionState

Type Aliases

Pitch

{ freq: number; amp: number; note: string; noteAlt: string; }

PermissionState

'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'

Readme

Keywords

Package Sidebar

Install

npm i capacitor-musetrainer-pitch-detection

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

22.5 kB

Total Files

21

Last publish

Collaborators

  • manhtai