; Module header definitions for the MIDI Support module

title-string: MIDISupport
help-string: MIDISupport 0.06 MIDI Support  Pete Everett
date-string: 02 Nov 2025

initialisation-code: module_init
finalisation-code: module_term
generic-veneers: midis_receive, midis_givedata

error-base: &1E6
swi-chunk-base-number: &4EE80
swi-handler-code: module_swi
swi-decoding-table: MIDISupport,
  InstallDriver,
  RemoveDriver,
  DriverInfo,
  CreateDriver,
  Send,
  Receive,
  Connect,
  ConnectName,
  GetAddress,
  Insert

command-keyword-table: module_command
  MIDIMap(,
    min-args:0,
    max-args:0,
    help-text: "Displays installed drivers and their connections\n"),

  MIDIConnect(,
    min-args:2,
    max-args:2,
    invalid-syntax: "Syntax:\tMIDIConnect <driver name> <driver name>\n",
    help-text: "Syntax:\tMIDIConnect <driver name> <driver name>\n"
               "Connects the first driver send to the second driver receive\n"),

  MIDIDisconnect(,
    min-args:2,
    max-args:2,
    invalid-syntax: "Syntax:\tMIDIDisconnect <driver name> <driver name>\n",
    help-text: "Syntax:\tMIDIDisconnect <driver name> <driver name>\n"
               "Disconnects the first driver send from the second driver receive\n"),

  MidiSdebug(,
    min-args:1,
    max-args:10,
    invalid-syntax: "Syntax:\tMidiSdebug [-option [-option ...]]\n",
    help-text: "Sets Debug options for the MIDI Support module\n"
"Syntax:\tMidiSdebug [-option [-option ...]]\n"
"Options:\n"
  "\t-o open log file in the current directory\n"
  "\t-c close log file\n"
  "\t-d<x> x = the sum of the following values\n"
    "\t\t1 = log midi messages\n")
