/*
  !MidiPlay   A MIDI synthesiser and file player.

  player.h

  created  01/01/2021
*/

#ifndef player_h
#define player_h

void midi_file_player(void);            // player, called at sample rate

int cmd_load(char *msg, int len);       // loads and plays a file
int cmd_play(char *msg, int len);       // plays a loaded file
int cmd_save(char *msg, int len);       // saves a loaded file
int cmd_convert(char *msg, int len);    // loads and records a file (for batch conversion)
void restart_player(void);
int cmd_tempo(char *msg, int len);      // Controls the overall tempo
int cmd_pitch(char *msg, int len);      // Controls pitch transposition

void harden_spaces(char *str);

#endif
