5 changed files with 31 additions and 8 deletions
@ -0,0 +1,22 @@ |
|||||
|
<?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(); |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue