Mercurial > hg > aimc
view scripts/aim-o-matic/aim-o-matic.php @ 623:b3118c9ed67f
Turn the AGC coeffs inside out: array of structs instead of a struct of little arrays.
In C++ use a vector<AGC_coeffs> for this; each of 4 stages has an entry; many fewer places
need to do indexing by stage, and this removes the temptation to use little eigen arrays
for the 4 stages.
Also latest version of experimental log-lag SAI hacks.
author | dicklyon@google.com |
---|---|
date | Tue, 21 May 2013 04:24:05 +0000 |
parents | b106283f812f |
children |
line wrap: on
line source
<?php if ($_FILES["audio_file"]["size"] < 20000000 && $_FILES["config_file"]["size"] < 2000000) { if ($_FILES["audio_file"]["error"] > 0 || $_FILES["config_file"]["error"]) { echo "error: file upload failed"; } else { $id_string = uniqid("aim-o-matic", true); $ext = pathinfo($_FILES["audio_file"]["name"], PATHINFO_EXTENSION); move_uploaded_file($_FILES["audio_file"]["tmp_name"], "/home/ubuntu/upload/" . $id_string . "." . $ext); move_uploaded_file($_FILES["config_file"]["tmp_name"], "/home/ubuntu/upload/" . $id_string . ".config"); echo "Results will be avaiable shortly, here:<br>"; echo "<a href='results/" . $id_string . "/'>" . $id_string . "</a>"; } } else { echo "error: file too large"; } ?>