init
This commit is contained in:
		
						commit
						9b70aa22b6
					
				
					 13 changed files with 711 additions and 0 deletions
				
			
		
							
								
								
									
										16
									
								
								audio.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								audio.php
									
										
									
									
									
										Normal 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"); | ||||
| } | ||||
| ?>
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue