ixfx
    Preparing search index...

    Function pack

    • Packs a MidiMessage into an array for sending to a MIDIOutput.

      const msg: Midi.MidiMessage = {
      command: `cc`,
      channel: 1,
      velocity: 50,
      note: 40
      }

      // Where 'output' is a MIDIOutput
      output.send(pack(msg));

      Parameters

      Returns Uint8Array