This commit is contained in:
Tobias Reisinger 2020-03-05 21:46:08 +01:00
commit 9b70aa22b6
13 changed files with 711 additions and 0 deletions

16
audio.php Normal file
View file

@ -0,0 +1,16 @@
<?php
const OUTPUT_FOLDER = "./tmp/";
header("Content-Type: audio/ogg");
if(isset($_GET["file_name"]) && is_string($_GET["file_name"]))
{
system("timidity " . OUTPUT_FOLDER . $_GET["file_name"] . ".midi -Ov -o -");
}
else
{
http_response_code(400);
echo("Missing Parameters");
}
?>