UNPKG

react-orchestra

Version:

A toolbox to build interactive and smart instruments on the web and mobile.

36 lines (35 loc) 1.62 kB
import Instrument from "./components/Instrument"; import Note from "./components/Note"; import Orchestra from "./components/Orchestra"; import NoteFactory from "./components/NoteFactory"; import KeyBinding from "./components/KeyBinding"; import MusicManager from "./MusicManager"; declare const _default: { Instrument: typeof Instrument; Note: typeof Note; Orchestra: typeof Orchestra; NoteFactory: typeof NoteFactory; KeyBinding: typeof KeyBinding; MusicManager: { generateNoteKey: (instrumentName: string, noteName: string) => string; midiURLToMetaAndTracks: (midiURL: string) => Promise<{ meta: any; tracks: any[]; }>; playSound: (noteBlob: any, { gain }: { gain?: number | undefined; }) => Promise<{}>; playNote: (instrumentName: string, noteName: string, { gain }: { gain?: number | undefined; }) => Promise<{}>; sharpToBemol: (noteName: string) => string; instrumentNameToRemotePath: (instrumentName: string) => string; stopPlayingNote: (noteBuffer: any, fadeOutDuration?: number) => Promise<void>; getNoteBlob: (instrumentName: string, noteName: string) => Promise<{} | null>; getSoundFromRemote: (instrumentName: string, noteName: string) => Promise<ArrayBuffer>; loadSound: (instrumentName: string, noteName: string) => Promise<{} | null>; delay: (ms: number) => Promise<{}>; }; }; export default _default; export { Instrument, Note, Orchestra, NoteFactory, KeyBinding, MusicManager };