";
58,90d57
< var huhaudiow=false;
< var audiow=null;
< var audiof='';
< var audioi=0;
< var audioask=false;
< var dorecord=false;
< var ourrec=location.search.split('recown=')[1] ? location.search.split('recown=')[1].split('&')[0] : 'off';
< var ioffset=0;
<
<
< function closeaudio() {
< try {
< if (audiow != null) {
< audiow.close();
< audioask=false;
< if (audiof == '') {
< //audiof='';
< var outaf=null;
< if (dorecord) outaf=prompt('Please enter URL to access local audio you just captured. There is very little chance you will not need to change the default value. If it starts with file: you will have to double click these when prompted, else http: .wav ones are automated, and you can use local web servers like Mac OS X Apache/PHP MAMP (https://www.mamp.info) for a filename like http://localhost:8888/myRecording00.wav that would work if you have copied the audio from the Downloads folder to /Applications/MAMP/htdocs/ for instance. Windows has Apache/PHP EasyPHP (http://www.easyphp.org/) local web server.', 'file:///home/Downloads/myRecording00.wav');
< if (outaf) {
< if (outaf != '') {
< document.getElementById('i' + audioi).value+=';' + outaf;
< document.getElementById('dkaraoke').style.visibility='visible';
< document.getElementById('karaoke').style.visibility='visible';
< }
< } else {
< ioffset=-1;
< }
< }
< }
< } catch (ee) { }
< audiow=null;
< }
94,95c61,62
< if (inf.value.split(';')[0].substring(0,1) >= '0' && inf.value.split(';')[0].substring(0,1) <= '9') {
< var secsare=eval(inf.value.split(';')[0]);
---
> if (inf.value.substring(0,1) >= '0' && inf.value.substring(0,1) <= '9') {
> var secsare=eval(inf.value);
294,295c261,262
< var isnippet=location.search.split('i' + snippet + '=')[1] ? decodeURIComponent(location.search.split('i' + snippet + '=')[1].split('&')[0]) : ' ';
< var jsnippet=location.search.split('j' + snippet + '=')[1] ? decodeURIComponent(location.search.split('j' + snippet + '=')[1].split('&')[0]) : ' ';
---
> var isnippet=location.search.split('i' + snippet + '=')[1] ? location.search.split('i' + snippet + '=')[1].split('&')[0] : ' ';
> var jsnippet=location.search.split('j' + snippet + '=')[1] ? location.search.split('j' + snippet + '=')[1].split('&')[0] : ' ';
440,466c407
< var which=next, thisd=0.0, more=false, thisstart=0.0, audios, somethingtodo=false;
< if (audiof != '' && document.getElementById('audiofiles').innerHTML != '') {
< document.getElementById('audiofiles').innerHTML="";
< audiof='';
< ioffset=-1;
< } else if (audioask) {
< audioask=false;
< try {
< if (audiow !=- null) {
< audiow.close();
< }
< } catch (ee) { }
< audiow=null;
< if (audiof == '') {
< var outaf=null;
< if (dorecord) outaf=prompt('Please enter URL to access local audio you just captured. There is very little chance you will not need to change the default value. If it starts with file: you will have to double click these when prompted, else http: .wav ones are automated, and you can use local web servers like Mac OS X Apache/PHP MAMP (https://www.mamp.info) for a filename like http://localhost:8888/myRecording00.wav that would work if you have copied the audio from the Downloads folder to /Applications/MAMP/htdocs/ for instance. Windows has Apache/PHP EasyPHP (http://www.easyphp.org/) local web server.', 'file:///home/Downloads/myRecording00.wav');
< if (outaf) {
< if (outaf != '') {
< document.getElementById('i' + audioi).value+=';' + outaf;
< document.getElementById('dkaraoke').style.visibility='visible';
< document.getElementById('karaoke').style.visibility='visible';
< }
< }
< }
< audiof='';
< }
< if (huhaudiow) document.title+=" here again with next=" + next + " and ioffset=" + ioffset + " ";
---
> var which=next, thisd=0.0, more=false, thisstart=0.0;
484,501c425,426
< if (i == eval(ioffset + which)) {
< somethingtodo=true;
< if (huhaudiow) document.title+=" chose i=" + i + " ";
< next=i;
< audioi=i;
< audios=document.getElementById('i' + i).value.split(';');
< if (audios.length > 1 && eval(ioffset) == 0) {
< audiof=audios[1];
< dorecord=false;
< } else if (audios.length > 1) {
< if (dorecord) closeaudio();
< audiof='';
< } else if (audiow) {
< if (dorecord) closeaudio();
< }
< if (huhaudiow) document.title+=" and audiof=" + audiof + " ";
< thisstart=eval(audios[0]);
< if (huhaudiow) document.title+=" well now thisstart=" + thisstart + " and lastfinish=" + lastfinish + " and thisd=" + thisd;
---
> if (i == which) {
> thisstart=eval(document.getElementById('i' + i).value);
504d428
< if (huhaudiow) document.title+=" gap detected ";
507,549d430
< more=true;
< if (audiof != '') {
< if (audiof.indexOf('file') == 0) {
< document.getElementById('areyousinging').innerHTML='
Are you hearing your singing, by double clicking it in Finder or Windows Explorer etcetera, recorded in ' + audiof + ' along with ' + document.getElementById('myh1').innerHTML + ' yet?