#ifndef _SIMPLEMIDI_H
#define _SIMPLEMIDI_H

/* 
  "4f:3:7a "
  reltime:noteval:duration
*/

struct MIDIFILE;

// mf will be poplated (and is to be freed even on error!);  tempo in BPM
int simplemidi_to_midi(const char *smidi,int ppq,int tempo,struct MIDIFILE *mf); // 0 on success

int simplemidis_to_midi(const char **smidis,int slen,int ppq,int tempo,struct MIDIFILE *mf); // 0 on success

/*
  -1: invalid arguments
  -2: alloc error
  -3: parse error
  -4: bad data
  -5: midi_event_write failed
*/

#endif
