react-orchestra
Version:
A toolbox to build interactive and smart instruments on the web and mobile.
25 lines (24 loc) • 773 B
TypeScript
import React from "react";
export declare type InstrumentProps = {
onStartPlaying?: (noteName: string) => void;
onStopPlaying?: (noteName: string) => void;
onInstrumentLoaded?: (instrumentName: string, noteName: string) => void;
name: string;
loader?: any;
style?: any;
interactive?: boolean;
};
declare class Instrument extends React.Component<InstrumentProps> {
loadingNotesCounter: number;
state: {
isLoaded: boolean;
};
static defaultProps: {
name: string;
};
onStartPlaying: (noteName: string) => void;
onStopPlaying: (noteName: string) => void;
onNoteLoaded: (instrumentName: string, noteName: string) => void;
render(): JSX.Element;
}
export default Instrument;