53c53 < var cbut="
"; --- > var cbut="
"; 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?

'; < } else { < document.getElementById('areyousinging').innerHTML='

Are you hearing your singing recorded in ' + audiof + ' along with ' + document.getElementById('myh1').innerHTML + ' yet?

'; < } < //closeaudio(); < //alert(audiof); < if (1 == 10) { < if (document.getElementById('audiofiles').innerHTML == '') { < document.getElementById('audiofiles').innerHTML=""; < } else { < document.getElementById('audioif').src="http://www.rjmprogramming.com.au/HTMLCSS/legend_via_map.php?url=" + encodeURIComponent(audiof); < } < //audiow=new Audio(); < //audiow.src=audiof; < //audiow.autoplay=true; < //audiow.play(); < } else { < if (audiof.indexOf('file') != 0) { < if (audiof.indexOf('.wav') != -1) { < audiow=window.open(audiof, '_blank', 'top=100,left=0,width=190,height=190'); < } else { < audiow=window.open(audiof, '_blank', 'top=100,left=0,width=420,height=590'); < } < } < if (document.URL.indexOf('debug=') != -1) huhaudiow=true; < if (dorecord) setTimeout(closeaudio, Math.min(25000, eval(1000 * eval(eval(thisstart) + 5 - eval(lastfinish))))); < } < if (huhaudiow) document.title+=" h:setTimeout(queuenext, eval(1000 * eval(eval(thisstart) - eval(lastfinish)))); via thisstart=" + thisstart + " and lastfinish=" + lastfinish; < setTimeout(queuenext, eval(1000 * eval(eval(thisstart) - eval(lastfinish)))); < next++; < } else if (dorecord) { < document.getElementById('areyousinging').innerHTML='

Are you recording your singing along with ' + document.getElementById('myh1').innerHTML + ' yet?

'; < audioask=true; < closeaudio(); < audiow=window.open('https://webaudiodemos.appspot.com/AudioRecorder/index.html', '_blank', 'top=300,left=0,width=900,height=300'); < if (document.URL.indexOf('debug=') != -1) huhaudiow=true; < document.title+=" a:setTimeout(queuenext, eval(1000 * eval(eval(thisstart) - eval(lastfinish)))); b:setTimeout(closeaudio, Math.min(25000, eval(1000 * eval(eval(thisstart) + 5 - eval(lastfinish))))); "; < setTimeout(queuenext, eval(1000 * eval(eval(thisstart) - eval(lastfinish)))); < setTimeout(closeaudio, Math.min(25000, eval(1000 * eval(eval(thisstart) + 5 - eval(lastfinish))))); < } else { 551c432 < if (huhaudiow) document.title+=" c:setTimeout(queuenext, eval(1000 * eval(eval(thisstart) - eval(lastfinish)))); "; --- > more=true; 553d433 < } 555,556d434 < if (audiof != '') ioffset=-1; < if (audiof == '') ioffset=0; 559d436 < if (huhaudiow) document.title+=" j:setTimeout(queuenext, 1000); "; 566,568c443 < if (huhaudiow) document.title+=" and now thisstart=" + thisstart + " and lastfinish=" + lastfinish + " and thisd=" + thisd; < thisd = eval(eval(document.getElementById('j' + i).value) - eval(document.getElementById('i' + i).value.split(';')[0])); < if (huhaudiow) document.title+=" now thisstart=" + thisstart + " and lastfinish=" + lastfinish + " and thisd=" + thisd; --- > thisd = eval(eval(document.getElementById('j' + i).value) - eval(document.getElementById('i' + i).value)); 572,574c447,448 < document.getElementById('myiframe').src="stop_start_youtube.html?vid=" + ourvid + "&playtime=" + thisd + "&start=" + document.getElementById('i' + i).value.split(';')[0] + '&ct=' + encodeURIComponent(ndt.toUTCString()); < if (huhaudiow) document.title+=" " + document.getElementById('myiframe').src + " "; < next++; --- > document.getElementById('myiframe').src="stop_start_youtube.html?vid=" + ourvid + "&playtime=" + thisd + "&start=" + document.getElementById('i' + i).value + '&ct=' + encodeURIComponent(ndt.toUTCString()); > next++; 581d454 < if (huhaudiow) document.title+=" f:setTimeout(queuenext, eval(1000 * thisd)); "; 588,589d460 < if (audiof != '') ioffset=-1; < if (audiof == '') ioffset=0; 591d461 < if (!somethingtodo && audiow != null) closeaudio(); 624c494 < --- > 645c515 < ✔ (Record own parts? )Start time in seconds Finish --- > ✔Start time in seconds Finish 651d520 <