You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							490 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							490 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								use App\Dataclasses\DatabaseFolkTuneDetails;
							 | 
						|
								use App\Wrappers\DatabaseInteractions;
							 | 
						|
								use App\Wrappers\SQLQueryBuilderWrapper;
							 | 
						|
								
							 | 
						|
								require_once __DIR__ . "/../../../vendor/autoload.php";
							 | 
						|
								
							 | 
						|
								$targetTuneID = $_GET['tune-id'];
							 | 
						|
								
							 | 
						|
								$db = new DatabaseInteractions();
							 | 
						|
								
							 | 
						|
								$tuneDetails = $db->RunOneSelect(
							 | 
						|
								    queryBuilder: SQLQueryBuilderWrapper::SELECT_ONE(
							 | 
						|
								        table: 'Tunes',
							 | 
						|
								        id: $targetTuneID
							 | 
						|
								    )
							 | 
						|
								);
							 | 
						|
								
							 | 
						|
								header(header: "Content-type: audio/midi");
							 | 
						|
								echo $tuneDetails['MIDIData'];
							 | 
						|
								die();
							 | 
						|
								
							 |