Musical keyboard component written in React.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

8 lines
347 B

  1. export default interface SoundGenerator {
  2. changeInstrument(channel: number, patch: number): void,
  3. noteOn(channel: number, key: number, velocity: number): void,
  4. noteOff(channel: number, key: number, velocity: number): void,
  5. getInstrumentNames(): string[],
  6. sendMessage?(channel: number, type: number, arg1: number, arg2?: number): void,
  7. }