; Module header definitions for the MIDI Player module

title-string: MIDIPlay
help-string: MIDIPlay 3.23 MIDI Player  Pete Everett
date-string: 08 Mar 2025

initialisation-code: module_init
finalisation-code: module_term
generic-veneers: ticker_callback, timer_callback
vector-handlers: tickerv

error-base: &821800
swi-chunk-base-number: &45340
swi-handler-code: module_swi
swi-decoding-table: MIDIPlay,
  File,
  Start,
  Stop,
  Volume,
  Tempo,
  Info,
  Close,
; following are not implemented
  Player,
  Pattern,
  PatternParameter,
  PatternPlay,
  PatternEvent,
  Test,
  Event,
  Text,
  15,16,17,18,
; next swi only for this version
  Control

command-keyword-table: module_command
  MidiPlayer(,
    min-args:1,
    max-args:10,
    invalid-syntax: "Syntax:\tMidiPlayer [-option [-option ...]]\n",
    help-text: "Sets Player options\n"

"Syntax:\tMidiPlayer [-option [-option ...]]\n"
"Options:\n"
  "\t-t<x> x = tempo in percent, (10..1000)\n"
  "\t-p<x> x = pitch transpose in semitones (-12..+12)\n"
  "\t-i display information\n"
  "\t-i+ as -i with additional information\n"
"Following options are used for testing\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"
    "\t\t2 = log swi calls\n"
    "\t\t4 = log lyrics text\n"
    "\t\t8 = log main function calls\n")

