'); 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,ic4,aic0,aic1,aic2,aic3,aic4,l1,l2,pdfadd,ss,styp,sic,pauseon=0,meton=0,speedval=1.0,currpage=1,currpagearryno=1,introbars=1; //no intro 5=4var introdelay=2000,iipage=1,no_pages=4;ss='/school/svg/';var images = new Array();var blankImage = new Image();blankImage.src ="/school/svg/blank3.svg"; 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/memphis_blues_2PNO';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;var cp4p; 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){ cp4p=currpage; if (currpage<10){ cp4p='00'+cp4p; } else if(currpage<100){cp4p='0'+cp4p;} //var printstring=ss+score+cp4p+'.png'; 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; src = src.replace(/(\d{2})\.svg$/, '0$1.svg'); src = src.replace(/svg/g, 'png'); page_printed=1; printdiv(src,0); } else {page_printed=0; //var printstring=ss+score+cp4p+'.png'; 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; src = src.replace(/(\d{2})\.svg$/, '0$1.svg'); src = src.replace(/svg/g, 'png'); printdiv(src,0) }});function convertToPdfUrl(url) { if (url.includes('/png/')) { url = url.replace('/png/', '/pdf/'); let lastPngIndex = url.lastIndexOf('.png'); if (lastPngIndex !== -1) { url = url.substring(0, lastPngIndex - 3) + url.substring(lastPngIndex); } url = url.replace('.png', '.pdf'); } else if (url.includes('/svg/')) { url = url.replace('/svg/', '/pdf/'); let lastSvgIndex = url.lastIndexOf('.svg'); if (lastSvgIndex !== -1) { url = url.substring(0, lastSvgIndex - 2) + url.substring(lastSvgIndex); } url = url.replace('.svg', '.pdf'); } return url;}function openPDF(){}function doprint() { var isSafari = window.safari !== undefined; 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+'01.svg'; var scfile2=ss+score+'02.svg'; 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==0&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; case 3: if (ison3==0&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; case 4: if (ison4==0&&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||ison2||ison3||ison4) { 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;ison4=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';} if(ic4){aic4.style.display='none';ic4.style.display='none';} } break; case 2: if(ison2==0){bon=1;ison1=0;ison2=1;ison4=0;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';} if(ic4){aic4.style.display='none';ic4.style.display='none';} } break; case 3: if(ison3==0){bon=1;ison1=0;ison2=0;ison4=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'; if(ic4){aic4.style.display='none';ic4.style.display='none';} } break; case 4: if(ison4==0){bon=1;ison1=0;ison2=0;ison3=0;ison4=1;ison0=0;ic4.src=sic;aud=document.getElementById('demo4'); 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'; if(ic3){aic3.style.display='none';ic3.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/memphis_blues_2pno_pn1'; } if(pltype==2){baseUrl=ss+'piano_duet/memphis_blues_2pno_pn2'; } if(pltype==3){baseUrl=ss+''; } if(pltype==4){baseUrl=ss+''; } switchScore("score", `${baseUrl}01.svg`); partopen=1; switchScore("score2", `${baseUrl}02.svg`); if(baseUrl==''){baseUrl=ss+score;} checkIfShouldShowTwoPages(); } else { pb.style.display='none';document.getElementById('metandtemp').style.visibiliy='hidden';pico.style.display='none'; ison1=0;ison2=0;ison3=0;ison4=0; } 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';}if(ic4){ic4.style.display='block';}ic0.style.display='block';aic1.style.display='inline-block';aic2.style.display='inline-block';if(aic3){aic3.style.display='inline-block';}if(aic4){aic4.style.display='inline-block';}aic0.style.display='inline-block';aisp=document.getElementById('aispacer');aisp.style.display='none';aisp.style.visibility='hidden';pico.src='/imc/pause.png';document.getElementById('icon0').src = '/imc/play.png';document.getElementById('progress').style.width = "0%";ic1.src = '/imc/player1.png';ic2.src = '/imc/player2.png';currpage=1;document.getElementById('demo0').pause();document.getElementById('demo1').pause();document.getElementById('demo2').pause(); if(ison1==1||ison2==1||ison3==1||ison4==1){ switchScore("score", `${baseUrl}01.svg`); partopen=1; switchScore("score2", `${baseUrl}02.svg`); }else{ switchScore('score', ss+score+'01.svg'); if(no_pages>1){ switchScore('score2',ss+score+'02.svg'); } } 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 = '/imc/play.png';ic1.src = '/imc/player1.png';ic2.src = '/imc/player2.png'; 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. Subscribe for unlimited plays.'; pleft.style.dispaly='block';pleft.style.visibility='visible';}var pt = []; pt[1] = { e:31, p:1 }; pt[2] = { e:53, p:2 }; pt[3] = { e:74, p:3 }; pt[4] = { e:94, p:4 }; pt[5] = { e:115, p:3 }; pt[6] = { e:134, p:4 }; pt[7] = { e:151, p:1 }; pt[8] = { e:174, p:2 }; pt[9] = { e:195, p:3 }; pt[10] = { e:215, p:4 }; var ppt = []; ppt[1] = { e:0, p:0 };ppt[2] = { e:0, p:0 };ppt[3] = { e:0, p:0 };ppt[4] = { e:0, p:0 }; var bt = []; bt[1]={e:6,b:1};bt[2]={e:23,b:2};bt[3]={e:40,b:3};bt[4]={e:56,b:4};bt[5]={e:69,b:5};bt[6]={e:73,b:6};bt[7]={e:90,b:7};bt[8]={e:106,b:8};bt[9]={e:123,b:9};bt[10]={e:140,b:10};bt[11]={e:156,b:7};bt[12]={e:173,b:8};bt[13]={e:190,b:9};bt[14]={e:206,b:10};bt[15]={e:223,b:11};bt[16]={e:240,b:12};bt[17]={e:256,b:13};bt[18]={e:273,b:14};bt[19]={e:290,b:15};bt[20]={e:306,b:16};bt[21]={e:323,b:17};bt[22]={e:340,b:18};bt[23]={e:356,b:19};bt[24]={e:373,b:20};bt[25]={e:390,b:21};bt[26]={e:406,b:22};bt[27]={e:423,b:23};bt[28]={e:440,b:24};bt[29]={e:456,b:25};bt[30]={e:473,b:26};bt[31]={e:490,b:27};bt[32]={e:506,b:28};bt[33]={e:523,b:29};bt[34]={e:533,b:30};bt[35]={e:541,b:31};bt[36]={e:560,b:32};bt[37]={e:577,b:33};bt[38]={e:594,b:34};bt[39]={e:610,b:35};bt[40]={e:627,b:36};bt[41]={e:644,b:37};bt[42]={e:660,b:38};bt[43]={e:677,b:39};bt[44]={e:694,b:40};bt[45]={e:710,b:41};bt[46]={e:727,b:42};bt[47]={e:744,b:43};bt[48]={e:760,b:44};bt[49]={e:777,b:45};bt[50]={e:794,b:46};bt[51]={e:810,b:47};bt[52]={e:827,b:48};bt[53]={e:844,b:49};bt[54]={e:860,b:50};bt[55]={e:877,b:51};bt[56]={e:894,b:52};bt[57]={e:910,b:53};bt[58]={e:927,b:54};bt[59]={e:944,b:55};bt[60]={e:964,b:32};bt[61]={e:980,b:33};bt[62]={e:997,b:34};bt[63]={e:1014,b:35};bt[64]={e:1030,b:36};bt[65]={e:1047,b:37};bt[66]={e:1064,b:38};bt[67]={e:1080,b:39};bt[68]={e:1097,b:40};bt[69]={e:1114,b:41};bt[70]={e:1130,b:42};bt[71]={e:1147,b:43};bt[72]={e:1164,b:44};bt[73]={e:1180,b:45};bt[74]={e:1197,b:46};bt[75]={e:1214,b:47};bt[76]={e:1230,b:48};bt[77]={e:1247,b:49};bt[78]={e:1264,b:50};bt[79]={e:1280,b:51};bt[80]={e:1297,b:52};bt[81]={e:1314,b:53};bt[82]={e:1330,b:54};bt[83]={e:1343,b:56};bt[84]={e:1347,b:6};bt[85]={e:1364,b:7};bt[86]={e:1380,b:8};bt[87]={e:1397,b:9};bt[88]={e:1414,b:10};bt[89]={e:1430,b:11};bt[90]={e:1447,b:12};bt[91]={e:1464,b:13};bt[92]={e:1480,b:14};bt[93]={e:1497,b:15};bt[94]={e:1514,b:16};bt[95]={e:1530,b:17};bt[96]={e:1547,b:18};bt[97]={e:1564,b:19};bt[98]={e:1580,b:20};bt[99]={e:1597,b:21};bt[100]={e:1614,b:22};bt[101]={e:1630,b:23};bt[102]={e:1647,b:24};bt[103]={e:1664,b:25};bt[104]={e:1680,b:26};bt[105]={e:1697,b:27};bt[106]={e:1714,b:28};bt[107]={e:1730,b:29};bt[108]={e:1741,b:30};bt[109]={e:1748,b:31};bt[110]={e:1768,b:32};bt[111]={e:1784,b:33};bt[112]={e:1801,b:34};bt[113]={e:1818,b:35};bt[114]={e:1834,b:36};bt[115]={e:1851,b:37};bt[116]={e:1868,b:38};bt[117]={e:1884,b:39};bt[118]={e:1901,b:40};bt[119]={e:1918,b:41};bt[120]={e:1934,b:42};bt[121]={e:1951,b:43};bt[122]={e:1968,b:44};bt[123]={e:1984,b:45};bt[124]={e:2001,b:46};bt[125]={e:2018,b:47};bt[126]={e:2034,b:48};bt[127]={e:2051,b:49};bt[128]={e:2068,b:50};bt[129]={e:2084,b:51};bt[130]={e:2101,b:52};bt[131]={e:2118,b:53};bt[132]={e:2134,b:54};bt[133]={e:2147,b:56}; var bp = []; bp[1]={t:154,l:83,w:83,h:179 };bp[2]={t:154,l:165,w:119,h:179 };bp[3]={t:154,l:284,w:117,h:179 };bp[4]={t:154,l:401,w:107,h:179 };bp[5]={t:154,l:508,w:70,h:179 };bp[6]={t:154,l:578,w:31,h:179 };bp[7]={t:381,l:51,w:173,h:179 };bp[8]={t:381,l:224,w:145,h:179 };bp[9]={t:381,l:369,w:120,h:179 };bp[10]={t:381,l:489,w:116,h:179 };bp[11]={t:607,l:51,w:109,h:179 };bp[12]={t:607,l:160,w:89,h:179 };bp[13]={t:607,l:249,w:89,h:179 };bp[14]={t:607,l:338,w:93,h:179 };bp[15]={t:607,l:432,w:89,h:179 };bp[16]={t:607,l:521,w:88,h:179 };bp[17]={t:92,l:51,w:126,h:184 };bp[18]={t:92,l:177,w:105,h:184 };bp[19]={t:92,l:282,w:109,h:184 };bp[20]={t:92,l:392,w:108,h:184 };bp[21]={t:92,l:499,w:110,h:184 };bp[22]={t:347,l:51,w:167,h:185 };bp[23]={t:347,l:218,w:134,h:185 };bp[24]={t:347,l:351,w:134,h:185 };bp[25]={t:347,l:485,w:124,h:185 };bp[26]={t:602,l:51,w:143,h:185 };bp[27]={t:602,l:194,w:117,h:185 };bp[28]={t:602,l:312,w:117,h:185 };bp[29]={t:602,l:429,w:112,h:185 };bp[30]={t:602,l:542,w:54,h:185 };bp[31]={t:92,l:51,w:82,h:184 };bp[32]={t:92,l:133,w:130,h:184 };bp[33]={t:92,l:264,w:133,h:184 };bp[34]={t:92,l:397,w:100,h:184 };bp[35]={t:92,l:497,w:112,h:184 };bp[36]={t:347,l:51,w:139,h:185 };bp[37]={t:347,l:190,w:126,h:185 };bp[38]={t:347,l:316,w:147,h:185 };bp[39]={t:347,l:463,w:146,h:185 };bp[40]={t:602,l:51,w:149,h:185 };bp[41]={t:602,l:200,w:131,h:185 };bp[42]={t:602,l:331,w:139,h:185 };bp[43]={t:602,l:470,w:139,h:185 };bp[44]={t:92,l:51,w:142,h:184 };bp[45]={t:92,l:193,w:116,h:184 };bp[46]={t:92,l:309,w:96,h:184 };bp[47]={t:92,l:405,w:115,h:184 };bp[48]={t:92,l:520,w:89,h:184 };bp[49]={t:347,l:51,w:154,h:185 };bp[50]={t:347,l:205,w:144,h:185 };bp[51]={t:347,l:349,w:144,h:185 };bp[52]={t:347,l:494,w:115,h:185 };bp[53]={t:602,l:51,w:178,h:185 };bp[54]={t:602,l:229,w:144,h:185 };bp[55]={t:602,l:373,w:152,h:185 };bp[56]={t:602,l:525,w:80,h:185 }; var bpp = []; bpp[1]={t:147,l:57,w:76,h:74 };bpp[2]={t:147,l:133,w:97,h:74 };bpp[3]={t:147,l:230,w:94,h:74 };bpp[4]={t:147,l:323,w:85,h:74 };bpp[5]={t:147,l:408,w:58,h:74 };bpp[6]={t:147,l:466,w:23,h:74 };bpp[7]={t:147,l:490,w:114,h:74 };bpp[8]={t:293,l:57,w:119,h:69 };bpp[9]={t:293,l:176,w:77,h:69 };bpp[10]={t:293,l:252,w:80,h:69 };bpp[11]={t:293,l:333,w:94,h:69 };bpp[12]={t:293,l:427,w:90,h:69 };bpp[13]={t:293,l:517,w:86,h:69 };bpp[14]={t:433,l:57,w:126,h:68 };bpp[15]={t:433,l:183,w:104,h:68 };bpp[16]={t:433,l:287,w:104,h:68 };bpp[17]={t:433,l:391,w:106,h:68 };bpp[18]={t:433,l:497,w:106,h:68 };bpp[19]={t:574,l:57,w:128,h:68 };bpp[20]={t:574,l:185,w:106,h:68 };bpp[21]={t:574,l:291,w:107,h:68 };bpp[22]={t:574,l:398,w:106,h:68 };bpp[23]={t:574,l:503,w:100,h:68 };bpp[24]={t:714,l:57,w:110,h:69 };bpp[25]={t:714,l:167,w:86,h:69 };bpp[26]={t:714,l:253,w:97,h:69 };bpp[27]={t:714,l:350,w:83,h:69 };bpp[28]={t:714,l:433,w:84,h:69 };bpp[29]={t:714,l:517,w:86,h:69 };bpp[30]={t:104,l:57,w:70,h:71 };bpp[31]={t:104,l:127,w:67,h:71 };bpp[32]={t:104,l:194,w:96,h:71 };bpp[33]={t:104,l:290,w:97,h:71 };bpp[34]={t:104,l:387,w:73,h:71 };bpp[35]={t:104,l:460,w:71,h:71 };bpp[36]={t:104,l:531,w:72,h:71 };bpp[37]={t:258,l:57,w:103,h:69 };bpp[38]={t:258,l:160,w:98,h:69 };bpp[39]={t:258,l:258,w:95,h:69 };bpp[40]={t:258,l:353,w:81,h:69 };bpp[41]={t:258,l:434,w:78,h:69 };bpp[42]={t:258,l:512,w:91,h:69 };bpp[43]={t:410,l:57,w:132,h:69 };bpp[44]={t:410,l:189,w:102,h:69 };bpp[45]={t:410,l:291,w:111,h:69 };bpp[46]={t:410,l:402,w:85,h:69 };bpp[47]={t:410,l:487,w:116,h:69 };bpp[48]={t:562,l:57,w:137,h:69 };bpp[49]={t:562,l:194,w:120,h:69 };bpp[50]={t:562,l:314,w:145,h:69 };bpp[51]={t:562,l:459,w:144,h:69 };bpp[52]={t:714,l:57,w:136,h:69 };bpp[53]={t:714,l:193,w:115,h:69 };bpp[54]={t:714,l:307,w:115,h:69 };bpp[55]={t:714,l:423,w:110,h:69 };bpp[56]={t:714,l:533,w:66,h:69 }; var delaytime=0;var pageBeforeChanging;function changepage1(e) { let base; let playTimes; let maxPages; let playingpart; let readytogo; document.getElementById('layer1').style.visibility = 'hidden'; if (lb == null) { initiatestuff(); } if (ison1 ||ison2 ||ison3||ison4) { if(typeof bpp !== 'undefined' && typeof ppt !== 'undefined') { playTimes = ppt; } else { playTimes = pt; } base = baseUrl; maxPages = max_playalong_page; playingpart=true; } else { playingpart=false; 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; cp = formatPageNumber(currpage,playingpart); if (!playingpart&&curtransp!=0) { switchScore("score", thissc+'_'+curtranspdir+curtransp+cp+'.gif'); } else { switchScore("score", base+cp+'.svg');} if (showTwoPages) { if (currpage + 1 <= maxPages ) { var currpageplus1 = currpage+1; cp2 = formatPageNumber(currpageplus1,playingpart); if (!playingpart&&curtransp!=0){ switchScore("score2", thissc+'_'+curtranspdir+curtransp+cp2+'.gif'); } else { switchScore("score2", base+cp2+'.svg'); } } else { switchScore("score2", ''); score2.style.width='11542px'; } } 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; cp = formatPageNumber(currpage,playingpart); if (!playingpart&&curtransp!=0) { switchScore("score", thissc+'_'+curtranspdir+curtransp+cp+'.gif'); } else { switchScore("score", base+cp+'.svg'); } if (showTwoPages) { if (currpage + 1 <= maxPages) { var currpageplus1 = currpage+1; cp2 = formatPageNumber(currpageplus1,playingpart); if (!playingpart&&curtransp!=0) { switchScore("score2", thissc+'_'+curtranspdir+curtransp+cp2+'.gif'); } else { switchScore("score2", base+cp2+'.svg'); } } else { switchScore("score2", ''); score2.style.width='11542px'; } } rb.classList.remove("pagenav_disabled") if (1 == currpage) { lb.classList.add("pagenav_disabled") } }}function formatPageNumber(page, isPlayingPart=false) { if (isPlayingPart || curtransp == 0) { return page < 10 ? '0' + page : page; } else { return page < 10 ? '00' + page : (page < 100 ? '0' + page : page); }}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||ison4==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+'.svg'); 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+'.svg'); rb.classList.remove("pagenav_disabled"); if (currpage==1){lb.classList.add("pagenav_disabled");} } } }}var pauseamount=0;var pppa=0;var stimer; function playmain(stype){ baseUrl=''; temp_IS_HIGHLIGHT_ON=IS_HIGHLIGHT_ON; manual_scroll=0;if(g){ clearTimeout(g);} 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+'01.svg', imageCache); getCachedImageFromMap(ss+score+'02.svg', imageCache); getCachedImageFromMap(ss+score+'03.svg', imageCache); getCachedImageFromMap(ss+score+'04.svg', imageCache); function playmain2(stype, keepPlayState, wasOn) { partopen=0; 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'; } if (ic4){ ic4.style.display='none'; aic4.style.display='none'; } aisp=document.getElementById('aispacer'); aisp.style.display='inline-flex';aisp.style.visibiliy='visible'; checkIfShouldShowTwoPages(); aud.addEventListener('timeframe',function(){ if (aud.currentTime< 31) { if(currpage!=1&&changedpage==0){ currpage=1 switchScore('score', ss+score+'0'+(currpage)+'.svg'); 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)} else if (ison4==1){playalongacc(4)}}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(2, "0"); let newSrc; newSrc = ss+score+cp+'.svg'; switchScore("score", newSrc); if (showTwoPages && currpage + 1 <= no_pages) { var currpageplus1 = currpage + 1; let cp2 = currpageplus1.toString().padStart(2, "0"); if (curtransp != 0) { cp2 = currpageplus1.toString().padStart(3, "0"); newSrc = thissc + "_" + curtranspdir+curtransp + cp2 + ".gif"; } else { newSrc = ss + score + cp2 + ".svg"; } } else { newSrc = ""; } if ( sco2.src !== sco.src ) { switchScore("score2", newSrc); if(newSrc.length==0 &&curtransp == 0){ score2.style.width='11542px'; } } 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(2, "0"); let newSrc; if (baseUrl !== '') { newSrc = baseUrl + cp + '.svg'; } else { newSrc = ss+score+cp+'.svg'; } switchScore("score", newSrc); if (showTwoPages && currpage + 1 <= no_part_pages) { var currpageplus1 = currpage + 1; var cp2 = currpageplus1.toString().padStart(2, "0"); if (baseUrl !== '') { newSrc = baseUrl + cp2 + '.svg'; } else { newSrc = ss+score+cp2+'.svg'; } } 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) Download Score PDF (8notes Premium) PrimoSecondo Request New Transposition Arrangements of this piece also available for: Artist: W C Handy ( Born: November 16, 1873,March 28, 1958 The Artist: An American blues composer and musician, widely known as the Father of the Blues. Info: Score Key: C major (Sounding Pitch) ( Tempo Marking: Duration: 4:35 Time Signature: 2/4 ( Number of Pages: 4 Difficulty: Advanced Level: Recommended for Advanced Players Instrument: ( Style: Jazz( Tags: Copyright: © Copyright 2000-2024 Red Balloon Technology Ltd (8notes.com) Info In the Hall of the Mountain King (Peer Gynt) by Edvard Grieg Close X You have reached your limit for today. Individual Subscriptions: Click here for more info on 8notes PREMIUM © 2000-2024 8notes.com
Standard Parts
Request Additional Parts Request Large Note Part Request Part with Chords
Request New Versionbiography)
View more C major Music for Piano Duet )
= 72 Moderato
View more 2/4 Music)
View more Advanced Piano Duet Music)
View more Jazz Piano Duet Music)
Rock and pop(View more Rock and pop Piano Duet Music)
You might also like:
Tarantella Napoletana (Traditional Italian) by Trad.
Aria from Suite in D by J.S.Bach
Jingle Bells by Trad.
Pirates of the Aegean by David Bruce
Hark the Herald Angels Sing by Felix Mendelssohn
Join 8notes PREMIUM for unlimited playback & transpositions
W C Handy - The Memphis Blues Sheet music for Piano Duet (2024)
Top Articles
Larry's Handyman Construction · 56 Mchenry Lane, Smithville, WV 26178-0000
Lauschen unsere Handys wirklich Gespräche mit?
Charley Walters: Twins fans left waiting for Bally bankruptcy court
Smartsheet Pivot App
Center for Regenerative Medicine Easley SC | Stem Cell Therapy
Best Chiropractors Near Me in Easley, SC | WebMD
Papaskwrt
Albany Times Union Obituaries Today's Date
The News and Observer from Raleigh, North Carolina
Durham Funeral Homes, funeral services & flowers in North Carolina
Cosplayasian
Where To Find Red Dead 2's Gruesome Serial Killer Side Mission
Latest Posts
Article information
Author: Greg Kuvalis
Last Updated:
Views: 6015
Rating: 4.4 / 5 (75 voted)
Reviews: 90% of readers found this page helpful
Author information
Name: Greg Kuvalis
Birthday: 1996-12-20
Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267
Phone: +68218650356656
Job: IT Representative
Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics
Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.