I have got one midi file, converted it into binary
Know i want to make a mp3 using that binary how can i do it.
i am using php as my scripting language
here is my code using which i am converting midi to binary
$filename = "flute.mid";
$handle = fopen($filename, "rb");
$contents = fread($handle, filesize($filename));
for ($i = 0; $i < strlen($contents); $i++) {
$binary = sprintf("%08d", base_convert(ord($contents[$i]), 10, 2));
echo $binary;
}
fclose($handle);