o圣地
钢琴四手(钢琴二重奏)的乐谱



'); docprint.document.write(''); if (ref==1){ docprint.document.write( document.getElementById(printpage).innerHTML +' '); } else{ var img=document.getElementById(printpage), style=img.currentStyle||window.getComputedStyle(img, false), bi=style.backgroundImage.slice(4, -1);docprint.document.write(' '); } docprint.document.close(); docprint.focus(); } function printdivold2(printpage,ref){ if (ref==1){ var headstr = " "; var footstr = " "; var newstr = document.getElementById(printpage).innerHTML; var oldstr = document.body.innerHTML; document.body.innerHTML = headstr+newstr+footstr; window.print(); setTimeout(function () { window.location.reload() }, 1000); return false; } else{ var headstr = " "; var footstr = " "; var img=document.getElementById(printpage), style=img.currentStyle||window.getComputedStyle(img, false), bi=style.backgroundImage.slice(4, -1); var newstr = ''; var oldstr = document.body.innerHTML; document.body.innerHTML = headstr+newstr+footstr; window.print(); } } function printdiv(printpage,ref) { if (ref==1){ var headstr = " "; var footstr = " "; var newstr = document.getElementById(printpage).innerHTML; var oldstr = document.body.innerHTML; document.body.innerHTML = headstr+newstr+footstr; window.print(); setTimeout(function () { window.location.reload() }, 1000); return false; } else{ const html = []; html.push(''); html.push('
'); html.push('',); html.push('
'); //console.log(html) var a = window.open('', '', 'width=700,height=960'); a.document.open("text/html"); a.document.write(html.join("")); a.document.close(); } } var tempo = 99.0,changedpage=0,lb,rb,sco,sco2,pb,pi,bg1,bg2,ic1,ic0,ic2,ic3,aic0,aic1,aic2,aic3,l1,l2,pdfadd,ss,styp,sic,pauseon=0,meton=0,speedval=1.0,currpage=1,currpagearryno=1,introbars=1; //no intro 5=4 var introdelay=2000,iipage=1,no_pages=4; ss='/school/png/'; var images = new Array(); var blankImage = new Image(); blankImage.src = "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAABngAAAkjAQMAAAAYztM1AAAAA1BMVEX///+nxBvIAAAACXBIWXMAAB7CAAAewgFu0HU+AAAB7klEQVR42u3BAQ0AAADCoPdPbQ43oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHg0bNkAAUrnO4MAAAAASUVORK5CYII=" var imageCache = {"": blankImage}; window.onload = function(){ document.onkeyup = function(event){ var e = (!event) ? window.event : event; var kcode=e.keyCode evenwhen(kcode); }; }; window.onkeydown = function(event) { var e = (!event) ? window.event : event; var kcode=e.keyCode if (kcode==32){ var elem if (e.srcElement) elem = e.srcElement; else if (e.target) elem = e.target; if (elem.tagName.toLowerCase()=='input' || elem.tagName.toLowerCase()=='textarea') {} else{ if(lb==null){ initiatestuff();playmain(kcode); } else{ callpause2(); } return false; } } }; var meton=0,everyplayed2=0,everyplayed=0,carryon=true,play_status=0,totdone,toty,score='piano_duet/o_holy_nightPNOduet'; function callpause2(){ var num_listened=readCookie('num_listened') if (num_listened=='undefined'||num_listened=='NaN'){num_listened=0;} if (num_listened>3){ overlay();return ; } else{ callpause();} } styp="main"; var page_printed=0; const newPButton = document.querySelector(".icon_printer"); newPButton.addEventListener("click", async () => { if (!showTwoPages){var src=document.getElementById('score').src; printdiv(src,0);return;} if (page_printed==0){ alert('This will print the left hand page. Press print again to print the right hand page. \n\nTo print entire pieces in one go, and for higher quality printing from our PDF files, please subscribe.'); var src=document.getElementById('score').src; page_printed=1; printdiv(src,0); } else {page_printed=0; alert('This will now print the right hand page. Press print again to print the left hand page, or for longer pieces, navigate to next pages and press print again.'); var src=document.getElementById('score2').src; printdiv(src,0) } }); function openPDF(){ } function doprint() { if(lb==null){initiatestuff()} alert('N.B. This will print only the current page.\n\nIf this piece has more than one page, you will need to print each page individually. Navigate to other pages using the << and >> buttons.\n\nTo print entire pieces in one go, and for higher quality printing from our PDF files, please subscribe.') var ssrc=sco.src; var src=document.getElementById('score').src; printdiv(src,0) } class ConfirmDialog { constructor({ questionText, trueButtonText, falseButtonText, parent }) { this.questionText = questionText || "Are you sure?"; this.trueButtonText = trueButtonText || "Yes"; this.falseButtonText = falseButtonText || "No"; this.parent = parent || document.body; this.dialog = undefined; this.trueButton = undefined; this.falseButton = undefined; this._createDialog(); this._appendDialog(); } confirm() { return new Promise((resolve, reject) => { const somethingWentWrongUponCreation = !this.dialog || !this.trueButton || !this.falseButton; if (somethingWentWrongUponCreation) { reject('Someting went wrong when creating the modal'); return; } this.dialog.showModal(); this.trueButton.focus(); this.trueButton.addEventListener("click", () => { resolve(true); this._destroy(); }); this.falseButton.addEventListener("click", () => { resolve(false); this._destroy(); }); }); } _createDialog() { this.dialog = document.createElement("dialog"); this.dialog.classList.add("confirm-dialog"); const question = document.createElement("div"); question.textContent = this.questionText; question.classList.add("confirm-dialog-question"); this.dialog.appendChild(question); const buttonGroup = document.createElement("div"); buttonGroup.classList.add("confirm-dialog-button-group"); this.dialog.appendChild(buttonGroup); this.falseButton = document.createElement("button"); this.falseButton.classList.add( "confirm-dialog-button", "confirm-dialog-button--false" ); this.falseButton.type = "button"; this.falseButton.textContent = this.falseButtonText; buttonGroup.appendChild(this.falseButton); this.trueButton = document.createElement("button"); this.trueButton.classList.add( "confirm-dialog-button", "confirm-dialog-button--true" ); this.trueButton.type = "button"; this.trueButton.textContent = this.trueButtonText; buttonGroup.appendChild(this.trueButton); } _appendDialog() { this.parent.appendChild(this.dialog); } _destroy() { this.parent.removeChild(this.dialog); delete this; } } function getCachedImageFromMap (path, map) { let image = map[path]; if (image) return image; image = new Image(); image.src = path; map[path] = image; return image; } var scfile=ss+score+'001.png'; var scfile2=ss+score+'002.png'; function playalongacc(pltype) { if(ison0) { hideLoopGuide(); } if(lb==null){initiatestuff()} switch (pltype){ case 1: if (ison1==0&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; case 2: if (ison2==00&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; case 3: if (ison3==00&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; } stimer = window.setTimeout( "playalongacc2("+pltype+")", (pppa*1000)); checkIfShouldShowTwoPages(); } var baseUrl = ''; function playalongacc2(pltype, keepPlayState, wasOn){ let wasStoped = pauseon || !wasOn; if(typeof bpp !== 'undefined' && typeof ppt !== 'undefined') { temp_IS_HIGHLIGHT_ON=IS_HIGHLIGHT_ON; } else{ temp_IS_HIGHLIGHT_ON=false;l1.style.visibility='hidden'; } var bon=0; stopplayalongreturntostandardview() if (ison1) { playalongstop() } else { if (!keepPlayState || !wasStoped) { startTimeframe(DESIRED_FPS); } temp_IS_HIGHLIGHT_ON=false;l1.style.visibility='hidden'; } var num_listened=readCookie('num_listened') if(num_listened=='undefined'||num_listened=='NaN'){num_listened=0;} if(everyplayed==0){num_listened=p(num_listened)+1;eraseCookie('num_listened');createCookie('num_listened',num_listened,1);everyplayed=1;} if(num_listened>3){overlay();return } temp_IS_HIGHLIGHT_ON=false;l1.style.visibility='hidden'; var aisp=document.getElementById('aispacer'); switch (pltype){ case 1: if (ison1==0){ bon=1;ison1=1;ison2=0;ison3=0;ison0=0;ic1.src=sic;aud=document.getElementById('demo1'); pico.style.display='inline-block!important';ic2.style.display='none';aic0.style.display='none';aic2.style.display='none'; aisp.style.display='inline-flex';aisp.style.visibiliy='visible'; if(ic3){aic3.style.display='none';ic3.style.display='none';} } break; case 2: if(ison2==0){bon=1;ison1=0;ison2=1;ison3=0;ison0=0;ic2.src=sic;aud=document.getElementById('demo2'); pico.style.display='inline-block!important';ic1.style.display='none';aic0.style.display='none';aic1.style.display='none';aisp.style.display='inline-flex';aisp.style.visibiliy='visible'; if(ic3){aic3.style.display='none';ic3.style.display='none';}} break; case 3: if(ison3==0){bon=1;ison1=0;ison2=0;ison3=1;ison0=0;ic3.src=sic;aud=document.getElementById('demo3'); pico.style.display='inline-block!important';ic1.style.display='none';aic0.style.display='none';aic1.style.display='none';aisp.style.display='inline-flex';aisp.style.visibiliy='visible' aic2.style.display='none';ic2.style.display='none'; } break; } if (bon==1) { pb.style.display='flex';pico.style.display='inline-block';document.getElementById('metandtemp').style.visibility='visible'; aud.addEventListener('timeframe', updateProgress, false); aud.addEventListener('ended', audioend); updateplaybackrate(document.getElementById('speed').value) speedval=document.getElementById('speed').value aud.play();aud.currentTime = 0; if(pltype==1){baseUrl=ss+'piano_duet/o_holy_nightpnoduet_pn1'; } if(pltype==2){baseUrl=ss+'piano_duet/o_holy_nightpnoduet_pn2'; } if(pltype==3){baseUrl=ss+''; } switchScore("score", `${baseUrl}001.png`); checkIfShouldShowTwoPages(); } else { pb.style.display='none';document.getElementById('metandtemp').style.visibiliy='hidden';pico.style.display='none'; ison1=0;ison2=0;ison3=0; stopplayalongreturntostandardview();stopLoop(); checkIfShouldShowTwoPages(); } if(keepPlayState) { if (wasStoped) { pauseon=0; callpause(); setTimeout(() => { checkbartimeupdate(); updateProgress(); }, 100) } } } var no_part_pages=100; function stopplayalongreturntostandardview() { if(lb==null){initiatestuff()} l1.style.visibility = 'hidden'; ic1.style.display='block'; ic2.style.display='block'; if(ic3){ic3.style.display='block';} ic0.style.display='block'; aic1.style.display='inline-block'; aic2.style.display='inline-block'; if(aic3){aic3.style.display='inline-block';} aic0.style.display='inline-block'; aisp=document.getElementById('aispacer'); aisp.style.display='none';aisp.style.visibility='hidden'; pico.src='/im/pause.svg'; document.getElementById('icon0').src = '/im/play.svg'; document.getElementById('progress').style.width = "0%"; ic1.src = '/im/player1.svg';ic2.src = '/im/player2.svg'; currpage=1; document.getElementById('demo0').pause(); document.getElementById('demo1').pause();document.getElementById('demo2').pause(); switchScore('score', ss+score+'001.png'); if(no_pages>1){ switchScore('score2',ss+score+'002.png'); } if (!ext_traditional){ lb.classList.add("pagenav_disabled"); if (no_pages>2||!showTwoPages&&no_pages>1){rb.classList.remove("pagenav_disabled");} } } function playalongstop() { resizeStage(); stop=true; l1.style.visibility = 'hidden'; sco.style.top='0'; document.getElementById('mainscore').style.height='100%'; document.getElementById('icon0').src = '/im/play.svg';ic1.src = '/im/player1.svg';ic2.src = '/im/player2.svg'; document.getElementById('demo0').pause(); document.getElementById('demo1').pause();document.getElementById('demo2').pause(); } function createCookie(name,value,days) { if (days) { var expires="",date=new Date(),midnight=new Date(date.getFullYear(),date.getMonth(),date.getDate(),23,59,59); expires = "; expires=" + midnight.toGMTString(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; var gtxt='' if(3-value>1){gtxt=(3-value)+' free plays';} else if (3-value==1){gtxt=(3-value)+' free play';} else if (3-value<1){gtxt='0 free plays';} else{gtxt='3 free plays';} var pleft=document.getElementById('playleft'); pleft.innerHTML=gtxt+' left today. 订阅 for unlimited plays.'; pleft.style.dispaly='block';pleft.style.visibility='visible'; } var pt = []; pt[1] = { e:30, p:1 }; pt[2] = { e:60, p:2 }; pt[3] = { e:87, p:3 }; pt[4] = { e:118, p:4 }; var bt = []; bt[1]={e:30,b:1};bt[2]={e:60,b:2};bt[3]={e:90,b:3};bt[4]={e:120,b:4};bt[5]={e:150,b:5};bt[6]={e:180,b:6};bt[7]={e:210,b:7};bt[8]={e:240,b:8};bt[9]={e:270,b:9};bt[10]={e:300,b:10};bt[11]={e:330,b:11};bt[12]={e:360,b:12};bt[13]={e:390,b:13};bt[14]={e:420,b:14};bt[15]={e:450,b:15};bt[16]={e:480,b:16};bt[17]={e:510,b:17};bt[18]={e:540,b:18};bt[19]={e:570,b:19};bt[20]={e:600,b:20};bt[21]={e:630,b:21};bt[22]={e:660,b:22};bt[23]={e:690,b:23};bt[24]={e:720,b:24};bt[25]={e:750,b:25};bt[26]={e:780,b:26};bt[27]={e:810,b:27};bt[28]={e:840,b:28};bt[29]={e:870,b:29};bt[30]={e:900,b:30};bt[31]={e:930,b:31};bt[32]={e:960,b:32};bt[33]={e:990,b:33};bt[34]={e:1020,b:34};bt[35]={e:1050,b:35};bt[36]={e:1080,b:36};bt[37]={e:1110,b:37};bt[38]={e:1142,b:38};bt[39]={e:1181,b:39}; var bp = []; bp[1]={t:137,l:103,w:182,h:171 };bp[2]={t:137,l:285,w:156,h:171 };bp[3]={t:137,l:441,w:161,h:171 };bp[4]={t:389,l:56,w:152,h:171 };bp[5]={t:389,l:208,w:130,h:171 };bp[6]={t:389,l:338,w:132,h:171 };bp[7]={t:389,l:470,w:131,h:171 };bp[8]={t:655,l:56,w:193,h:171 };bp[9]={t:655,l:249,w:173,h:171 };bp[10]={t:655,l:423,w:179,h:171 };bp[11]={t:92,l:56,w:150,h:173 };bp[12]={t:92,l:206,w:131,h:173 };bp[13]={t:92,l:336,w:135,h:173 };bp[14]={t:92,l:471,w:131,h:173 };bp[15]={t:372,l:56,w:193,h:173 };bp[16]={t:372,l:249,w:177,h:173 };bp[17]={t:372,l:427,w:175,h:173 };bp[18]={t:652,l:56,w:206,h:173 };bp[19]={t:652,l:263,w:168,h:173 };bp[20]={t:652,l:430,w:172,h:173 };bp[21]={t:92,l:56,w:192,h:173 };bp[22]={t:92,l:248,w:184,h:173 };bp[23]={t:92,l:432,w:170,h:173 };bp[24]={t:372,l:56,w:191,h:173 };bp[25]={t:372,l:247,w:182,h:173 };bp[26]={t:372,l:429,w:172,h:173 };bp[27]={t:653,l:56,w:194,h:173 };bp[28]={t:653,l:250,w:177,h:173 };bp[29]={t:653,l:427,w:175,h:173 };bp[30]={t:92,l:56,w:204,h:172 };bp[31]={t:92,l:260,w:169,h:172 };bp[32]={t:92,l:429,w:173,h:172 };bp[33]={t:366,l:56,w:192,h:172 };bp[34]={t:366,l:248,w:184,h:172 };bp[35]={t:366,l:432,w:170,h:172 };bp[36]={t:640,l:56,w:158,h:186 };bp[37]={t:640,l:214,w:176,h:186 };bp[38]={t:640,l:390,w:142,h:186 };bp[39]={t:640,l:532,w:66,h:186 }; var bpp = []; bpp[1]={t:154,l:58,w:106,h:86 };bpp[2]={t:154,l:164,w:97,h:86 };bpp[3]={t:154,l:260,w:123,h:86 };bpp[4]={t:154,l:383,w:106,h:86 };bpp[5]={t:154,l:489,w:113,h:86 };bpp[6]={t:348,l:58,w:117,h:86 };bpp[7]={t:348,l:175,w:127,h:86 };bpp[8]={t:348,l:303,w:161,h:86 };bpp[9]={t:348,l:463,w:139,h:86 };bpp[10]={t:542,l:58,w:139,h:86 };bpp[11]={t:542,l:197,w:98,h:86 };bpp[12]={t:542,l:295,w:93,h:86 };bpp[13]={t:542,l:388,w:121,h:86 };bpp[14]={t:542,l:509,w:93,h:86 };bpp[15]={t:736,l:58,w:138,h:86 };bpp[16]={t:736,l:195,w:97,h:86 };bpp[17]={t:736,l:293,w:90,h:86 };bpp[18]={t:736,l:383,w:121,h:86 };bpp[19]={t:736,l:504,w:97,h:86 };bpp[20]={t:92,l:58,w:126,h:92 };bpp[21]={t:92,l:184,w:113,h:92 };bpp[22]={t:92,l:297,w:123,h:92 };bpp[23]={t:92,l:420,w:85,h:92 };bpp[24]={t:92,l:506,w:96,h:92 };bpp[25]={t:313,l:58,w:124,h:92 };bpp[26]={t:313,l:182,w:122,h:92 };bpp[27]={t:313,l:304,w:91,h:92 };bpp[28]={t:313,l:395,w:103,h:92 };bpp[29]={t:313,l:498,w:104,h:92 };bpp[30]={t:535,l:58,w:139,h:84 };bpp[31]={t:535,l:197,w:99,h:84 };bpp[32]={t:535,l:296,w:99,h:84 };bpp[33]={t:535,l:394,w:91,h:84 };bpp[34]={t:535,l:485,w:117,h:84 };bpp[35]={t:748,l:58,w:109,h:74 };bpp[36]={t:748,l:167,w:87,h:74 };bpp[37]={t:748,l:254,w:137,h:74 };bpp[38]={t:748,l:391,w:115,h:74 };bpp[39]={t:748,l:507,w:90,h:74 }; var delaytime=0; var pageBeforeChanging; function changepage1(e) { document.getElementById('layer1').style.visibility = 'hidden'; if (lb == null) { initiatestuff(); } let base; let playTimes; let maxPages; let readytogo; //console.log(readytogo) //console.log(typeof ppt!== 'undefined') if (ison1 ||ison2) { if(typeof bpp !== 'undefined' && typeof ppt !== 'undefined') { playTimes = ppt; } else { playTimes = pt; } base = baseUrl; maxPages = max_playalong_page; } else { playTimes = pt; base = ss+score; maxPages = no_pages; } let mult = showTwoPages ? 2 : 1; if (changedpage==0) { pageBeforeChanging = currpage; changedpage = 1; manual_scroll=1; } if (carryon == 1 && e == 'r' && currpage + mult <= maxPages ) { currpage += mult; var cp; if (currpage < 10) { cp = '00' + currpage; } else if (currpage < 100) { cp = '0' + currpage; } else { cp = currpage; } switchScore("score", base+cp+'.png'); if (showTwoPages) { if (currpage + 1 <= maxPages ) { var currpageplus1 = currpage+1; if (currpageplus1 < 10) { cp2 = '00' + currpageplus1; } else if (currpageplus1 < 100) { cp2 = '0' + currpageplus1; } else { cp2 = currpageplus1; } switchScore("score2", base+cp2+'.png'); } else { switchScore("score2", ''); } } lb.classList.remove("pagenav_disabled") if (currpage >= maxPages ||(showTwoPages&&currpage+1 >= maxPages)) { rb.classList.add("pagenav_disabled") } } else if ('l' == e && currpage > 1 * mult) { currpage -= mult; var cp; if (currpage < 10) { cp = '00' + currpage; } else if (currpage < 100) { cp = '0' + currpage; } else { cp = currpage; } switchScore("score", base+cp+'.png'); if (showTwoPages) { if (currpage + 1 <= maxPages) { var currpageplus1 = currpage+1; if (currpageplus1 < 10) { cp2 = '00' + currpageplus1; } else if (currpageplus1 < 100) { cp2 = '0' + currpageplus1; } else { cp2 = currpageplus1; } switchScore("score2", base+cp2+'.png'); } else { switchScore("score2", ''); } } rb.classList.remove("pagenav_disabled") if (1 == currpage) { lb.classList.add("pagenav_disabled") } } } function changepage2(dir) { hideLoopGuide(); changepage1(dir); } function changepage_playalong(dir) { if(lb==null){ initiatestuff(); } document.getElementById('layer1').style.visibility='hidden'; if( ison3==1||ison2==1){ //changing part var ds=sco.src; if(dir=='r') { switchScore('score', bumpStringInt(ds,dir)); } else { switchScore('score', bumpStringInt(ds,dir)); } } else { if (changedpage==0) { pageBeforeChanging = currpage; changedpage = 1; } var cp2 if(carryon==true){ if(dir=='r'&&(currpage<0)) { currpage=currpage+1; if (currpage<10){cp2='00'+(currpage)} else if (currpage<100){cp2='0'+(currpage)} else {cp2=currpage} switchScore("score", baseUrl+cp2+'.png'); lb.classList.remove("pagenav_disabled"); if (currpage==max_playalong_page||showTwoPages&&(currpage+1 == max_playalong_page)){rb.classList.add("pagenav_disabled");} } else if(dir=='l'&&(currpage>1)) { currpage=currpage-1; if (currpage<10){cp2='00'+(currpage)} else if (currpage<100){cp2='0'+(currpage)} else {cp2=currpage} switchScore("score", baseUrl+cp2+'.png'); rb.classList.remove("pagenav_disabled"); if (currpage==1){lb.classList.add("pagenav_disabled");} } } } } var pauseamount=0; var pppa=0; var stimer; function playmain(stype){ temp_IS_HIGHLIGHT_ON=IS_HIGHLIGHT_ON; manual_scroll=0; if(ison1) { hideLoopGuide(); } if (document.getElementById('pausebefore').checked==true&&ison0 == 0){ pauseamount=5;updatecountin(); pppa=pauseamount+1;} else {pauseamount=0;pppa=0} stimer = window.setTimeout( "playmain2("+stype+")", (pppa*1000)); stopplayalongreturntostandardview() resizeStage(); } getCachedImageFromMap(ss+score+'001.png', imageCache); getCachedImageFromMap(ss+score+'002.png', imageCache); getCachedImageFromMap(ss+score+'003.png', imageCache); getCachedImageFromMap(ss+score+'004.png', imageCache); function playmain2(stype, keepPlayState, wasOn) { let wasStoped = pauseon || !wasOn; if(lb==null){initiatestuff()} if (stype==0){ stopplayalongreturntostandardview() } if (ison0) { playalongstop();changedpage=0; } else { if (!keepPlayState || !wasStoped) { startTimeframe(DESIRED_FPS); } l1.style.visibility='visible'; } var num_listened=readCookie('num_listened') if (num_listened=='undefined'||num_listened=='NaN'){num_listened=0;} if (everyplayed==0){ num_listened=p(num_listened)+1; eraseCookie('num_listened') createCookie('num_listened',num_listened,1) everyplayed=1; } if (num_listened>3){overlay();return ;} if (ison0 == 0) { ison0 = 1;ison1=0 ;ison2=0;ison3=0;ison4=0; document.getElementById('icon0').src = sic; aud=document.getElementById('demo0') pb.style.display='flex'; document.getElementById('metandtemp').style.visibility='visible'; pico.style.display='inline-block'; ic1.style.display='none'; ic2.style.display='none'; aic1.style.display='none'; aic2.style.display='none'; if (ic3){ ic3.style.display='none'; aic3.style.display='none'; } aisp=document.getElementById('aispacer'); aisp.style.display='inline-flex';aisp.style.visibiliy='visible'; checkIfShouldShowTwoPages(); aud.addEventListener('timeframe',function(){ if (aud.currentTime< 30) { if(currpage!=1&&changedpage==0){ currpage=1 switchScore('score', ss+score+'00'+(currpage)+'.png'); lb.classList.remove("pagenav_disabled"); rb.classList.remove("pagenav_disabled"); if (currpage==no_pages||showTwoPages&&(currpage+1 == no_pages)){rb.classList.add("pagenav_disabled");} } } },false); aud.addEventListener('timeframe',checktimeupdate); aud.addEventListener('timeframe',checkbartimeupdate); aud.addEventListener('timeframe', updateProgress, false);aud.addEventListener('ended', audioend); updateplaybackrate(document.getElementById('speed').value) aud.play();aud.currentTime = 0; if (stype==0) { switchScore('score', scfile); switchScore('score2', scfile2); currpage=1; if(!ext_traditional){ lb.classList.add("pagenav_disabled"); if(no_pages>1&&!showTwoPages||no_pages>2){rb.classList.remove("pagenav_disabled"); } } } } else { ison0 = 0; pb.style.display='none'; pico.style.display='none'; switchScore('score', scfile); switchScore('score2', scfile2); document.getElementById('metandtemp').style.visibility='hidden'; if (stype==0){ stopplayalongreturntostandardview(); l1.style.visibility='hidden'; stopLoop(); } } if(keepPlayState) { if (wasStoped) { pauseon=0; callpause(); setTimeout(() => { checkbartimeupdate(); updateProgress(); }, 100) } } resizeStage(); } function uptr(nop,currpage){ if(lb==null){initiatestuff();} lb.classList.remove("pagenav_disabled");rb.classList.remove("pagenav_disabled"); if ((currpage==nop)||showTwoPages&&(currpage==nop-1)){rb.classList.add("pagenav_disabled"); } if (currpage==1){lb.classList.add("pagenav_disabled");} } function audioend(){ if(ison0==1){playmain(0)} else if (ison1==1){playalongacc(1)} else if (ison2==1){playalongacc(2)} else if (ison3==1){playalongacc(3)} } var changingpage = false; var oldpage; function checktimeupdate() { let showingPages = 1; if (showTwoPages) { showingPages = 2; if (pt.length % 2 === 0) { pt.push({ e: pt[pt.length - 1].e }); } } let pageI = pt.findIndex((page) => { return (page || {e:0}).e - PAGE_TURNING_TIME>= aud.currentTime; }); if (pageI <= -1) pageI = 1; let curPage = pt[pageI] || {e:0}; if (ison0 == 1 && changedpage == 0) { if (oldpage == null) { oldpage = 0; } else { oldpage = currpage; } // Math to make f(1) -> 1 f(2) -> 1 f(3) -> 3 f(4) -> 3 if showing 2 pages // and f(x) -> x, if showing only 1 page let page = Math.max(1, curPage.p || 1); currpage = Math.ceil(page / showingPages) * showingPages - Math.floor(0.5 * showingPages); if (showingPages === 2) { currpagearryno = pageI - (page % 2 ? 0 : 1); } else { currpagearryno = pageI; } var cp = currpage.toString().padStart(3, "0"); let newSrc; if (curtransp!=0) { newSrc = thissc+'_'+curtranspdir+curtransp+cp+'.gif' } else { newSrc = ss+score+cp+'.png'; } switchScore("score", newSrc); if (showTwoPages && currpage + 1 <= no_pages) { var currpageplus1 = currpage + 1; let cp2 = currpageplus1.toString().padStart(3, "0"); if (curtransp != 0) { newSrc = thissc + "_" + curtranspdir+curtransp + cp2 + ".gif"; } else { newSrc = ss + score + cp2 + ".png"; } } else { newSrc = ""; } if ( sco2.src !== sco.src ) { switchScore("score2", newSrc); } uptr(no_pages, currpage); } } function checktimeupdateparts() { var delaytime=0; if (showTwoPages) { if (ppt.length % 2 === 0) { ppt.push({ e: ppt[ppt.length - 1].e }); } } let pageI = ppt.findIndex((page) => { return (page || {e:0}).e + p(delaytime/1000) - PAGE_TURNING_TIME >= aud.currentTime; }); if (pageI <= -1) pageI = 1; let curPage = ppt[pageI] || {e:0}; if (ison1 == 1 && changedpage == 0) { if (oldpage == null) { oldpage = 0; } else { oldpage = currpage; } // f(1) -> 1 f(2) -> 1 f(3) -> 3 f(4) -> 3 if showing 2 pages // and f(x) -> x, if showing only 1 page let page = Math.max(1, curPage.p || 1); if (showTwoPages) { currpage = Math.ceil(page / 2) * 2 - 1; currpagearryno = pageI - (page % 2 ? 0 : 1); } else { currpage = page; currpagearryno = pageI; } var cp = currpage.toString().padStart(3, "0"); let newSrc; if (baseUrl !== '') { newSrc = baseUrl + cp + '.png'; } else { newSrc = ss+score+cp+'.png'; } switchScore("score", newSrc); if (showTwoPages && currpage + 1 <= no_part_pages) { var currpageplus1 = currpage + 1; let cp2 = currpageplus1.toString().padStart(3, "0"); if (baseUrl !== '') { newSrc = baseUrl + cp2 + '.png'; } else { newSrc = ss+score+cp2+'.png'; } } else { newSrc = ''; } if(sco2.src !== sco.src) { switchScore("score2", newSrc); } uptr(max_playalong_page, currpage) } } function isElementInViewport (el) { var rect = el.getBoundingClientRect(); return ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /* or $(window).height() */ rect.right <= (window.innerWidth || document.documentElement.clientWidth) /* or $(window).width() */ ); } function checkbartimeupdate() { var delaytime=0; var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); var chrome_delay if (isChrome){ chrome_delay=aud.currentTime/500 } else{ chrome_delay=0 } if (ison0==1){delaytime=0;} if (((aud.currentTime+chrome_delay)*1000)delaytime||delaytime==0){ for(var aaa=1;aaa 1) { if ( zthisbartiming <= pageEndTime + 6 && zthisbartiming >= pageBeginTime ) { zthispage = true; } } else { zthispage = true; } } let pageOffset = 0; if (showTwoPages && zthisbartiming > firstPageEnd + 6) { pageOffset = document.getElementById('score2').offsetLeft; } else { pageOffset = document.getElementById('score').offsetLeft; } if(changedpage && currpage !== pageBeforeChanging) { l1.style.visibility='hidden'; } else { l1.style.visibility= temp_IS_HIGHLIGHT_ON ? 'visible' : 'hidden'; changedpage=0; if (ison0==1||ison1==1||ison1==2||ison3==1){ } var u,v,toppercwidth,leftpercwidth if (ison0==1 || (ison1 && typeof(bpp) === 'undefined')){ u = p(window.getComputedStyle(sco).getPropertyValue("width")); v = p(window.getComputedStyle(sco).getPropertyValue("height")); toppercwidth=p(window.getComputedStyle(sco).getPropertyValue("width")); toppercwidth=650/p(toppercwidth); leftpercwidth=p(window.getComputedStyle(sco).getPropertyValue("height")); leftpercwidth=918/p(leftpercwidth); if (document.getElementById('scrollview').checked==true) { l1.style.top=(p(bp[cbn].t))/toppercwidth+'px'; l1.style.left=(p((bp[cbn].l /toppercwidth ) +pageOffset))+'px'; l1.style.width=((p(bp[cbn].w))/toppercwidth)+'px'; l1.style.height=((p(bp[cbn].h))/toppercwidth)+'px'; if (cbn= (bt[loopEnd].e - 5 + delaytime / 100) / 10) { if (loopStart === 1) { aud.currentTime = 0 } else { aud.currentTime = ((bt[loopStart - 1] || {e: 0}).e + delaytime / 100) / 10; } } } } var curtransp=0; var curtranspdir='u'; notransps=0; var thissc='//www.52jinshan.cn/school/transpositions/gif/piano_duet/o_holy_nightpnoduet',tru=document.getElementById('tranup').style.background,trd=document.getElementById('trandown').style.background; function cleartransps(){ var u0=document.getElementById('u0'); u0.classList.remove("alphselected"); var u1=document.getElementById('u1'); u1.classList.remove("alphselected"); var u2=document.getElementById('u2'); u2.classList.remove("alphselected"); var u3=document.getElementById('u3'); u3.classList.remove("alphselected"); var u4=document.getElementById('u4'); u4.classList.remove("alphselected"); var u5=document.getElementById('u5'); u5.classList.remove("alphselected"); var u6=document.getElementById('u6'); u6.classList.remove("alphselected"); var d1=document.getElementById('d1'); d1.classList.remove("alphselected"); var d2=document.getElementById('d2'); d2.classList.remove("alphselected"); var d3=document.getElementById('d3'); d3.classList.remove("alphselected"); var d4=document.getElementById('d4'); d4.classList.remove("alphselected"); var d5=document.getElementById('d5'); d5.classList.remove("alphselected"); } function transp(dir,numb,typeofaddition,kno){ if(lb==null){ initiatestuff() } rb.classList.remove("pagenav_disabled"); lb.classList.add("pagenav_disabled"); var actime=aud.currentTime; notransps=notransps+1; if(notransps>2) { overlay(); } else { if (typeofaddition==1){ switchScore('score', thissc+'_'+dir+numb+'001.gif'); cleartransps(); document.getElementById(dir+numb).classList.add("alphselected"); curtransp=numb; curtranspdir=dir; if (pt.length > 1) { pdfadd=dir+numb; switchScore('score2', thissc+'_'+dir+numb+'002.gif'); } } else { //click the up or down buttons if(dir=='u') { if (curtransp<6) { curtransp=curtransp+numb; if(curtransp<0){ negtransp=-curtransp; pdfadd='d'+negtransp; switchScore('score', thissc+'_d'+negtransp+'001.gif'); cleartransps(); document.getElementById('d'+negtransp).classList.add("alphselected"); if (pt.length > 1) { switchScore('score', thissc+'_d'+negtransp+'002.gif'); } trd=bg2; } else { pdfadd='u'+curtransp; cleartransps(); switchScore('score', thissc+'_u'+curtransp+'001.gif'); document.getElementById('u'+curtransp).classList.add("alphselected"); if (pt.length > 1) { switchScore('score2', thissc+'_u'+curtransp+'002.gif'); } } if(curtransp==6){ tru=bg1; } else { trd=bg2; } } } else if(dir=='d'){ if(curtransp>-5) { curtransp=curtransp-numb; if(curtransp<0) { negtransp=-curtransp; pdfadd='d'+negtransp; cleartransps(); switchScore('score', thissc+'_d'+negtransp+'001.gif'); document.getElementById('d'+negtransp).classList.add("alphselected"); if (pt.length > 1) { switchScore('score2', thissc+'_d'+negtransp+'002.gif'); } if (curtransp==-6) { trd=bg1; } else { tru=bg2; } } else { pdfadd='u'+curtransp; cleartransps(); switchScore('score', thissc+'_u'+curtransp+'001.gif'); document.getElementById('u'+curtransp).classList.add("alphselected"); if (pt.length > 1) { switchScore('score2', thissc+'_u'+curtransp+'002.gif'); } tru=bg2; } } } } } transp_modal.style.display = "none"; }



信息

About 'O Holy Night'



艺术家:
交易。 ()
出生:
- , -
死了:
- , -
The Artist:
传统音乐未知作者。
Composed:1847
信息:
"O Holy Night" ("Cantique de Noel")是一位着名的圣诞节卡罗尔,由Adolphe Adam于1847年到法国诗"Minuit, christiens"(午夜,基督徒)通过普莱德·科帕达(1808-1877)。 Cappeau,葡萄酒商人和诗人,被教区牧师询问了圣诞节诗。联合家部长约翰苏尔维文德怀特,德怀特编辑'音乐杂志,创建了一个基于Cappeau的歌唱版'在1855年的法语文本。在法国原装和两个熟悉的英语版本中,文本反映了耶稣和人类的诞生's redemption.

歌词
o圣地! The stars are brightly shining,
这是亲爱的救主的夜晚's birth.
漫长的世界犯罪和错误的困扰。
直到他出现,圣灵感受到了它的价值。
希望疲惫的世界欢欣鼓舞,
因为yonder打破了一个新的和光荣的早晨。
摔倒在膝盖上!哦,听到天使的声音!
夜神圣,基督出生的夜晚;
哦,晚上,夜神圣!
哦,晚上,夜神圣!

由宁静的信仰光线导致,
用他的摇篮发光的心脏。
O'呃世界一个明星甜美闪闪发光,
现在从东方土地中来到智慧。
国王之王较低的售工;
在我们所有的审判中都是我们的朋友。
他知道我们的需要,我们的弱点是没有陌生人,
看到你的国王!在他差价之前弯曲!
看到你的国王!在他差价之前弯曲!

真正他教我们彼此相爱,
他的法律是爱,他的福音是和平。
连锁店他会休息,因为奴隶是我们的兄弟。
在他的名字中,所有压迫都应停止。
感恩合唱团的甜美赞美赞美赞美促进我们,
全心全意,我们赞美他的圣名。
基督是主!曾经,永远赞美我们,
他的力量和荣耀更加宣称!
他的力量和荣耀更加宣称!
Score Key:C专业(发声音高)(查看更多 C钢琴二重奏的主要音乐 )
速度标记:安坦特
Time Signature:4/4 (查看更多 4/4音乐)
期间:2:58
页数:4
Difficulty:简单级别:推荐为初学者提供一些玩耍体验
标签:




信息

你可能还喜欢:

华尔兹睡美美 经过 棕榈牛伊利奇Tchaikovsky.
来自胡桃夹子的糖梅子仙女舞 经过 棕榈牛伊利奇Tchaikovsky.
Jingle Bells Boogie. 经过 大卫布鲁斯
春天从'The Four Seasons' 经过 Antonio Vivaldi.
枫叶抹布 经过 斯科特·乔普林
可以可以 经过 Jacques Offenbach.
关闭X.

感谢您尝试8notes.com音频和换位功能

你今天达到了极限。
订阅 用于无限播放和换位
个人订阅:

点击此处查看订阅的更多信息


©2000-2021 52jinshan.cn.