xen-midi
    Preparing search index...

    Type Alias NoteOnCallback

    NoteOnCallback: (index: number, rawAttack: number, channel: number) => NoteOff

    Function to call when a MIDI note-on event is received (e.g. for turning on your synth). Attack velocity is from 0 to 127. Must return a note-off callback (e.g. for turning off your synth).

    Type Declaration

      • (index: number, rawAttack: number, channel: number): NoteOff
      • Parameters

        • index: number
        • rawAttack: number
        • channel: number

        Returns NoteOff