title: Convert midi to mp3
body: <p>I have got one midi file and i want to play that file on web page, currently i am using midi.js player for playing but it is not working on mobile browsers.</p>
  
  <p>Please guide me how to play that file or else how can i play midi or convert it into mp3</p>
  
  <p>Here is my code</p>
  
  <pre><code>  $data = fopen ($midi, 'rb');
   $size= filesize($midi);
   $contents = fread ($data, $size);
   fclose($data);
   $encoded= base64_encode($contents);
  
   $encode = "'data:audio/midi;base64,".$encoded."=='";
  </code></pre>
  
  <p>and finally passing base64 value to midi.js </p>