Oh Chanukah (Jewish Traditional)
Free Sheet music for Trombone

Play (or use space bar on your keyboard) Pause Music Playalong - Piano Accompaniment Playalong Band Accompaniment not yet available transpose tempo print settings full screen
100%
Oh Chanukah (Jewish Traditional) by Trad. Sheet Music arranged by 8notes.com for Trombone - 1 of 2 pages
Oh Chanukah (Jewish Traditional) by Trad. Sheet Music arranged by 8notes.com for Trombone - 2 of 2 pages


Keyboard Shortcuts:
←
Previous page
→
Next page
space
Play & Pause
Click & Drag to select the bars you want to practice, creating a 'Practice Loop'

'); } 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('
'); 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=4 var introdelay=2000,iipage=1,no_pages=2; ss='https://media.8notes.com/school/svg/'; var images = new Array(); var blankImage = new Image(); blankImage.src ="/school/svg/blank4.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='trombone/chanukahtbne'; 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 scorePlaybackPartBaseUrl(pltype) { var soloPart=pltype===5 && window.scorePlaybackSoloParts && window.scorePlaybackSoloParts[String(window.scorePlaybackSelectedPart)]; if (soloPart) return ss + soloPart.base; var selectedPartBaseUrl=''; selectedPartBaseUrl=ss+'trombone/chanukahtbne_tb'; return selectedPartBaseUrl; } var scorePlaybackImageRequests={}; function revealScorePlaybackImage(image,id) { if (!image) return; if (id==='score') { image.classList.remove('hidden'); image.style.display='block'; } image.style.top='0'; image.style.opacity='1'; image.style.visibility='visible'; } function showScorePlaybackImage(id,path) { if (!path) return; path=String(path); scorePlaybackImageRequests[id]=path; // Keep the current page visible while an uncached part page loads. The // old implementation replaced it immediately with a zero-size Image; the // first dropdown click could therefore leave an empty player until that // image had loaded and the option was selected a second time. var existingImage=document.getElementById(id); revealScorePlaybackImage(existingImage,id); function finishScorePlaybackImageSwap() { if (scorePlaybackImageRequests[id]!==path) return; if (typeof switchScore === 'function' && !ext_traditional) { switchScore(id,path); } else { var currentImage=document.getElementById(id); if (!currentImage) return; currentImage.setAttribute('src',path); } revealScorePlaybackImage(document.getElementById(id),id); window.setTimeout(function () { if (scorePlaybackImageRequests[id]!==path) return; if (typeof checkIfShouldShowTwoPages === 'function') checkIfShouldShowTwoPages(); if (typeof setScoreSvgZoom === 'function') setScoreSvgZoom(scoreSvgZoom); if (typeof resizeStage === 'function') resizeStage(); },0); } if (typeof switchScore !== 'function' || ext_traditional || typeof getCachedImageFromMap !== 'function') { finishScorePlaybackImageSwap(); return; } var pendingImage=getCachedImageFromMap(path,imageCache); if (pendingImage.complete && pendingImage.naturalWidth>0) { finishScorePlaybackImageSwap(); return; } var imageLoadFinished=false; function removePendingImageListeners() { pendingImage.removeEventListener('load',handlePendingImageLoad); pendingImage.removeEventListener('error',handlePendingImageError); } function handlePendingImageLoad() { if (imageLoadFinished) return; imageLoadFinished=true; removePendingImageListeners(); finishScorePlaybackImageSwap(); } function handlePendingImageError() { if (imageLoadFinished) return; imageLoadFinished=true; removePendingImageListeners(); if (window.console && typeof window.console.warn === 'function') { window.console.warn('[8notes] Unable to load selected score part: '+path); } } pendingImage.addEventListener('load',handlePendingImageLoad); pendingImage.addEventListener('error',handlePendingImageError); // Cover the small race where the image completes between the first check // and the event listeners being attached. if (pendingImage.complete) { if (pendingImage.naturalWidth>0) handlePendingImageLoad(); else handlePendingImageError(); } } function resetScorePlaybackSelectionState() { if (typeof stop !== 'undefined') stop=true; if (typeof pauseon !== 'undefined') pauseon=0; if (typeof carryon !== 'undefined') carryon=true; if (typeof manual_scroll !== 'undefined') manual_scroll=0; if (typeof currpage !== 'undefined') currpage=1; if (typeof currpagearryno !== 'undefined') currpagearryno=1; if (typeof changedpage !== 'undefined') changedpage=0; if (typeof pageBeforeChanging !== 'undefined') pageBeforeChanging=1; if (typeof oldpage !== 'undefined') oldpage=null; if (typeof changingpage !== 'undefined') changingpage=false; if (typeof followAlongPageTurnExpectedSrc !== 'undefined') followAlongPageTurnExpectedSrc=''; if (typeof pageTurnLayer2Visibility !== 'undefined') pageTurnLayer2Visibility=null; if (typeof stopFollowAlongPageTurnObserver === 'function') stopFollowAlongPageTurnObserver(); if (typeof scoreFocusScrollTimer !== 'undefined' && scoreFocusScrollTimer) { window.clearTimeout(scoreFocusScrollTimer); scoreFocusScrollTimer=null; } if (typeof scoreFocusScrollTarget !== 'undefined') scoreFocusScrollTarget=null; var mainScore=document.getElementById('mainscore'); if (mainScore) mainScore.style.height='100%'; var currentScore=document.getElementById('score'); if (currentScore) currentScore.style.top='0'; var progress=document.getElementById('progress'); if (progress) progress.style.width='0%'; var progressBar=document.getElementById('progressBar'); if (progressBar) progressBar.setAttribute('aria-valuenow','0'); } window.scorePlaybackRestoreSelection = function (pltype) { if (typeof pltype === 'undefined') pltype=Number(window.scorePlaybackSelectedType)||0; pltype=Number(pltype)||0; window.scorePlaybackSelectedType=pltype; if (!pltype) { baseUrl=''; partopen=0; showScorePlaybackImage('score', ss+score+'01.svg'); showScorePlaybackImage('score2', ss+score+'02.svg'); } else { var selectedPartBaseUrl=scorePlaybackPartBaseUrl(pltype); if (!selectedPartBaseUrl) { // Some accompaniment tracks do not have a separate part SVG. In that // case explicitly return to page one of the full score rather than // leaving the previously selected part on screen. baseUrl=''; partopen=0; showScorePlaybackImage('score', ss+score+'01.svg'); showScorePlaybackImage('score2', ss+score+'02.svg'); } else { baseUrl=selectedPartBaseUrl; partopen=1; showScorePlaybackImage('score', baseUrl+'01.svg'); var previewScore2=document.getElementById('score2'); var previewMainScore=document.getElementById('mainscore'); if (previewScore2) previewScore2.classList.add('hidden'); if (previewMainScore) previewMainScore.classList.remove('twopages'); if (typeof showTwoPages !== 'undefined') showTwoPages=false; } } if (typeof checkIfShouldShowTwoPages === 'function') checkIfShouldShowTwoPages(); if (typeof setScoreSvgZoom === 'function') setScoreSvgZoom(scoreSvgZoom); if (typeof resizeStage === 'function') resizeStage(); }; window.scorePlaybackShowSelection = function (pltype) { if (typeof stimer !== 'undefined' && stimer) { window.clearTimeout(stimer); stimer=null; } if (typeof timer !== 'undefined' && timer) { window.clearTimeout(timer); timer=null; } var countIn=document.getElementById('countin'); if (countIn) { countIn.style.visibility='hidden'; countIn.setAttribute('aria-hidden','true'); } if (typeof counter !== 'undefined') counter=5; if (typeof pauseamount !== 'undefined') pauseamount=0; if (typeof pppa !== 'undefined') pppa=0; try { if (typeof stopplayalongreturntostandardview === 'function') { stopplayalongreturntostandardview(); } } catch (selectionResetError) { if (window.console && typeof window.console.warn === 'function') { window.console.warn('[8notes] Playback reset failed while changing score part.', selectionResetError); } } var followAlongCurrent=document.getElementById('layer1'); var followAlongNext=document.getElementById('layer2'); if (followAlongCurrent) followAlongCurrent.style.visibility='hidden'; if (followAlongNext) followAlongNext.style.visibility='hidden'; if (typeof clearCanvas === 'function') clearCanvas(); if (typeof ison0 !== 'undefined') ison0=0; if (typeof ison1 !== 'undefined') ison1=0; if (typeof ison2 !== 'undefined') ison2=0; if (typeof ison3 !== 'undefined') ison3=0; if (typeof ison4 !== 'undefined') ison4=0; if (typeof ison5 !== 'undefined') ison5=0; resetScorePlaybackSelectionState(); window.scorePlaybackRestoreSelection(pltype); if (typeof uptr === 'function') { var selectedPageCount=pltype>0 && typeof no_part_pages !== 'undefined' ? no_part_pages : no_pages; uptr(selectedPageCount,1); } }; function playalongacc(pltype) { unlockAllAudioOnce(); if(ison0) { hideLoopGuide(); } if(lb==null){initiatestuff()} switch (pltype){ case 1: if (ison1==0&&!window.scorePlaybackSelectedSolo&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; case 2: if (ison2==0&&!window.scorePlaybackSelectedSolo&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; case 3: if (ison3==0&&!window.scorePlaybackSelectedSolo&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; case 4: if (ison4==0&&!window.scorePlaybackSelectedSolo&&document.getElementById('pausebefore').checked==true){ pauseamount=5;updatecountin(); pppa=pauseamount+1; } else{ pauseamount=0;pppa=0;stopplayalongreturntostandardview() } break; case 5: pauseamount=0;pppa=0; if (ison5!=0) stopplayalongreturntostandardview(); break; } stimer = window.setTimeout( "playalongacc2("+pltype+")", (pppa*1000)); checkIfShouldShowTwoPages(); } var baseUrl = 'https://media.8notes.com/'; function playalongacc2(pltype, keepPlayState, wasOn){ if(!SCORE_HAS_FOLLOW_ALONG){hideUnsupportedFollowAlongLayers();} var partFollowAlongAvailable=SCORE_HAS_FOLLOW_ALONG && scoreHasPartFollowAlongData(); let wasStoped = pauseon || !wasOn; if(partFollowAlongAvailable) { temp_IS_HIGHLIGHT_ON=IS_HIGHLIGHT_ON; } else{ temp_IS_HIGHLIGHT_ON=false;hidePartFollowAlongLayers(); } var bon=0; stopplayalongreturntostandardview() if (ison1||ison2||ison3||ison4||ison5) { playalongstop() } else { if (!keepPlayState || !wasStoped) { startTimeframe(DESIRED_FPS); } if(partFollowAlongAvailable && l1){l1.style.visibility=temp_IS_HIGHLIGHT_ON ? 'visible' : 'hidden';} else if(!SCORE_HAS_FOLLOW_ALONG){hideUnsupportedFollowAlongLayers();} else{hidePartFollowAlongLayers();} } 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 } switch (pltype){ case 1: if (ison1==0){ bon=1;ison1=1;ison2=0;ison3=0;ison4=0;ison5=0;ison0=0;setGlobalPlaybackButtonState(true);aud=document.getElementById('demo1'); pico.style.display='inline-block!important';ic2.style.display='none';aic0.style.display='inline-flex';aic2.style.display='none'; 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;ison5=0;ison0=0;setGlobalPlaybackButtonState(true);aud=document.getElementById('demo2'); pico.style.display='inline-block!important';ic1.style.display='none';aic0.style.display='inline-flex';aic1.style.display='none'; 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;ison5=0;ison0=0;setGlobalPlaybackButtonState(true);aud=document.getElementById('demo3'); pico.style.display='inline-block!important';ic1.style.display='none';aic0.style.display='inline-flex';aic1.style.display='none'; 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;ison5=0;ison0=0;setGlobalPlaybackButtonState(true);aud=document.getElementById('demo4'); pico.style.display='inline-block!important';ic1.style.display='none';aic0.style.display='inline-flex';aic1.style.display='none'; aic2.style.display='none';ic2.style.display='none'; if(ic3){aic3.style.display='none';ic3.style.display='none';} } break; case 5: if(ison5==0){bon=1;ison0=0;ison1=0;ison2=0;ison3=0;ison4=0;ison5=1;setGlobalPlaybackButtonState(true);aud=document.getElementById('demo5'); pico.style.display='inline-block!important'; } break; } aud.addEventListener('timeframe',checkbartimeupdate); aud.addEventListener('timeframe',checktimeupdateparts); aud.addEventListener('timeframe',function(){ if (aud.currentTime< 99) { if(currpage!=1&&changedpage==0){ currpage=1 lb.classList.remove("pagenav_disabled");rb.classList.remove("pagenav_disabled"); } if (currpage==max_playalong_page||showTwoPages&&(currpage+1 == max_playalong_page)){rb.classList.add("pagenav_disabled");} lb.classList.add("pagenav_disabled"); } },false); 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 if (typeof window.scoreV21PlayAudioFromSelectedPosition === 'function') { window.scoreV21PlayAudioFromSelectedPosition(aud); } else { aud.currentTime = 0; aud.play(); } if (window.scorePlaybackSelectedPart && window.scorePlaybackSelectedSolo) { baseUrl=scorePlaybackPartBaseUrl(pltype); partopen=1; } else { baseUrl=ss+'trombone/chanukahtbne_tb'; switchScore("score", `${baseUrl}01.svg`); partopen=1; } if(baseUrl==''){baseUrl=ss.toLowerCase()+score.toLowerCase();} checkIfShouldShowTwoPages(); } else { pb.style.display='none';document.getElementById('metandtemp').style.visibiliy='hidden';pico.style.display='none';setGlobalPlaybackButtonState(false); ison1=0;ison2=0;ison3=0;ison4=0;ison5=0; } if(keepPlayState) { if (wasStoped) { pauseon=0; callpause(); setTimeout(() => { if(SCORE_HAS_FOLLOW_ALONG && typeof bt!=='undefined' && bt && bt.length>1){checkbartimeupdate();} updateProgress(); }, 100) } } } var no_part_pages=1; 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'; pico.src='https://media.8notes.com/imc/pause.png'; setGlobalPlaybackButtonState(false); document.getElementById('progress').style.width = "0%"; ic1.src = 'https://media.8notes.com/imc/playalong.png';if(ic3){ic3.src = 'https://media.8notes.com/imc/.png';} currpage=1; document.getElementById('demo0').pause(); document.getElementById('demo1').pause();document.getElementById('demo3').pause();if(document.getElementById('demo5')) document.getElementById('demo5').pause(); if(curtransp!=0){ switchTransposedScore('score', thissc+'_'+curtranspdir+Math.abs(Number(curtransp))+'001.gif'); switchTransposedScore('score2', thissc+'_'+curtranspdir+Math.abs(Number(curtransp))+'002.gif'); } else{ sco.style = {}; sco2.style ={}; } if (!ext_traditional){ lb.classList.add("pagenav_disabled"); if (no_pages>2||!showTwoPages&&no_pages>1){rb.classList.remove("pagenav_disabled");} } if (Number(window.scorePlaybackSelectedType)>0 && typeof window.scorePlaybackRestoreSelection === 'function') { window.scorePlaybackRestoreSelection(); } } function playalongstop() { resizeStage(); stop=true; l1.style.visibility = 'hidden'; sco.style.top='0'; document.getElementById('mainscore').style.height='100%'; setGlobalPlaybackButtonState(false);ic1.src = 'https://media.8notes.com/imc/playalong.png';if(ic3){ic3.src = 'https://media.8notes.com/imc/.png';} document.getElementById('demo0').pause(); document.getElementById('demo1').pause();if(ic3){document.getElementById('demo3').pause();}if(document.getElementById('demo5')) document.getElementById('demo5').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 scoreData={"v":1,"pt":[{"e":24,"p":1},{"e":47,"p":2},{"e":68,"p":1},{"e":99,"p":2}],"ppt":[{"e":99,"p":1}],"bt":[{"e":19,"b":1},{"e":38,"b":2},{"e":56,"b":3},{"e":75,"b":4},{"e":94,"b":5},{"e":112,"b":6},{"e":131,"b":7},{"e":150,"b":8},{"e":169,"b":9},{"e":188,"b":10},{"e":206,"b":11},{"e":225,"b":12},{"e":244,"b":13},{"e":262,"b":14},{"e":281,"b":15},{"e":300,"b":16},{"e":319,"b":17},{"e":338,"b":18},{"e":356,"b":19},{"e":375,"b":20},{"e":394,"b":21},{"e":412,"b":22},{"e":431,"b":23},{"e":450,"b":24},{"e":469,"b":25},{"e":488,"b":3},{"e":506,"b":4},{"e":525,"b":5},{"e":544,"b":6},{"e":562,"b":7},{"e":581,"b":8},{"e":600,"b":9},{"e":619,"b":10},{"e":638,"b":11},{"e":656,"b":12},{"e":675,"b":13},{"e":694,"b":14},{"e":712,"b":15},{"e":731,"b":16},{"e":750,"b":17},{"e":769,"b":18},{"e":788,"b":19},{"e":806,"b":20},{"e":825,"b":21},{"e":844,"b":22},{"e":862,"b":23},{"e":881,"b":26},{"e":900,"b":27},{"e":919,"b":28},{"e":940,"b":29},{"e":962,"b":30},{"e":986,"b":31}],"bp":[[170586,161836,227657,169303],[170586,389493,180556,169303],[170586,570048,195048,169303],[170586,765097,171498,169303],[452758,76691,206522,169303],[452758,283213,165459,169303],[452758,448671,163043,169303],[452758,611715,162440,169303],[452758,774155,162440,169303],[734502,76691,249396,156477],[734502,326087,214372,156477],[734502,540459,204710,156477],[734502,745169,191425,156477],[109448,76691,226449,145361],[109448,303140,160024,145361],[109448,463164,160628,145361],[109448,623792,156401,145361],[109448,780193,156401,145361],[315519,76691,249396,145361],[315519,326087,192633,145361],[315519,518720,193237,145361],[315519,711957,224638,145361],[522018,76691,271739,150919],[522018,348430,187802,150919],[522018,536232,210749,150919],[522018,746981,189614,150919],[733647,76691,258454,157332],[733647,335145,200483,157332],[733647,535628,200483,157332],[733647,736111,94203,157332],[733647,830314,99638,157332]],"bpp":[[144506,89372,151570,23942],[144506,240942,146135,23942],[144506,387077,213164,23942],[144506,600242,155797,23942],[144506,756039,169686,23942],[226593,89372,207729,24369],[226593,297101,173309,24369],[226593,470411,136473,24369],[226593,606884,173309,24369],[226593,780193,145531,24369],[309106,89372,157005,23942],[309106,246377,93599,23942],[309106,339976,94807,23942],[309106,434783,93599,23942],[309106,528382,147947,23942],[309106,676329,102053,23942],[309106,778382,147343,23942],[391620,89372,226449,23942],[391620,315821,164251,23942],[391620,480072,117150,23942],[391620,597222,164251,23942],[391620,761473,164251,23942],[474134,89372,232488,23942],[474134,321860,88164,23942],[474134,410024,161836,23942],[474134,571860,95411,23942],[474134,667271,89372,23942],[474134,756643,161836,23942]],"png":{"w":650,"h":920},"ppng":{"w":650,"h":920}}; function sdMap(a){var o=[];(a||[]).forEach(function(v,i){if(v)o[i+1]=v;});return o;} function sdScale(raw,d){d=d||{};var w=Number(d.w)||0,h=Number(d.h)||0;if(!w){w=700;h=1000;}var x=h*650/w,y=650,o=[],z=0;(raw||[]).forEach(function(q){z++;o[z]={t:Math.round(q[0]/1e6*x),l:Math.round(q[1]/1e6*y),w:Math.round(q[2]/1e6*y),h:Math.round(q[3]/1e6*x)};});return o;} var pt = sdMap(scoreData.pt); var ppt = sdMap(scoreData.ppt); var bt = sdMap(scoreData.bt); var bp = sdScale(scoreData.bp, scoreData.png); var bpp = sdScale(scoreData.bpp, scoreData.ppng); var delaytime=0; var pageBeforeChanging; function changepage1(e) { console.log(currpage) 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||ison5 || partopen===1) { 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) { switchTransposedScore("score", thissc+'_'+curtranspdir+Math.abs(Number(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){ switchTransposedScore("score2", thissc+'_'+curtranspdir+Math.abs(Number(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) { switchTransposedScore("score", thissc+'_'+curtranspdir+Math.abs(Number(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) { switchTransposedScore("score2", thissc+'_'+curtranspdir+Math.abs(Number(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<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'); 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.toLowerCase()+cp2.toLowerCase()+'.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){ unlockAllAudioOnce(); baseUrl=''; temp_IS_HIGHLIGHT_ON=IS_HIGHLIGHT_ON; manual_scroll=0; if(g){ clearTimeout(g);} if(ison1||ison5) { 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); 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); } if(SCORE_HAS_FOLLOW_ALONG && l1){ l1.style.visibility=temp_IS_HIGHLIGHT_ON ? 'visible' : 'hidden'; } else{ hideUnsupportedFollowAlongLayers(); } } 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;ison5=0; setGlobalPlaybackButtonState(true); if(Number(curtransp)!==0){holdFollowAlongForPageTurn();} 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'; } checkIfShouldShowTwoPages(); aud.addEventListener('timeframe',function(){ if (aud.currentTime< 24) { if(currpage!=1&&changedpage==0){ currpage=1 switchScore('score', ss.toLowerCase()+score.toLowerCase()+'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) setSelectedTranspositionAudio(0,false); if (typeof window.scoreV21PlayAudioFromSelectedPosition === 'function') { window.scoreV21PlayAudioFromSelectedPosition(aud); } else { aud.currentTime = 0; aud.play(); } if (stype==0) { if(curtransp!=0){ switchTransposedScore('score', thissc+'_'+curtranspdir+Math.abs(Number(curtransp))+'001.gif'); switchTransposedScore('score2', thissc+'_'+curtranspdir+Math.abs(Number(curtransp))+'002.gif'); } else { 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'; if(curtransp!=0){ switchTransposedScore('score', thissc+'_'+curtranspdir+Math.abs(Number(curtransp))+'001.gif'); switchTransposedScore('score2', thissc+'_'+curtranspdir+Math.abs(Number(curtransp))+'002.gif'); } else { switchScore('score', scfile); switchScore('score2', scfile2); } document.getElementById('metandtemp').style.visibility='hidden'; if (stype==0){ stopplayalongreturntostandardview(); if(l1){l1.style.visibility='hidden';} stopLoop(); } } if(keepPlayState) { if (wasStoped) { pauseon=0; callpause(); setTimeout(() => { if(SCORE_HAS_FOLLOW_ALONG && typeof bt!=='undefined' && bt && bt.length>1){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)} else if (ison5==1){playalongacc(5)} } var changingpage = false; var oldpage; var pageTurnLayer2Visibility = null; var followAlongPageTurnExpectedSrc = ''; var followAlongPageTurnObserver = null; function normalizeFollowAlongScoreSrc(path){ if(!path){return '';} var normalizer=document.createElement('a'); normalizer.href=path; return normalizer.href; } function followAlongScoreHasTurned(){ if(!followAlongPageTurnExpectedSrc){return true;} var displayedScore=document.getElementById('score'); return Boolean(displayedScore && normalizeFollowAlongScoreSrc(displayedScore.src)===followAlongPageTurnExpectedSrc); } function preserveOutgoingHighlightUntilPageTurns(){ // Keep the current-bar layer on the old SVG. The predictive next-bar // layer may already point at the following page, so hide only that layer. if(l2){ if(pageTurnLayer2Visibility===null){pageTurnLayer2Visibility=l2.style.visibility;} l2.style.visibility='hidden'; } } function stopFollowAlongPageTurnObserver(){ if(followAlongPageTurnObserver){ followAlongPageTurnObserver.disconnect(); followAlongPageTurnObserver=null; } } function watchForDisplayedFollowAlongPage(){ stopFollowAlongPageTurnObserver(); var scoreContainer=document.getElementsByClassName('img-container')[0]; if(!scoreContainer || typeof MutationObserver==='undefined'){return;} followAlongPageTurnObserver=new MutationObserver(function(){ if(!followAlongPageTurnExpectedSrc || !followAlongScoreHasTurned()){return;} followAlongPageTurnExpectedSrc=''; stopFollowAlongPageTurnObserver(); holdFollowAlongForPageTurn(); }); followAlongPageTurnObserver.observe(scoreContainer,{childList:true,subtree:true,attributes:true,attributeFilter:['src']}); } function beginFollowAlongPageTurn(expectedScoreSrc){ stopFollowAlongPageTurnObserver(); followAlongPageTurnExpectedSrc=normalizeFollowAlongScoreSrc(expectedScoreSrc); if(!followAlongPageTurnExpectedSrc || followAlongScoreHasTurned()){ followAlongPageTurnExpectedSrc=''; holdFollowAlongForPageTurn(); return; } preserveOutgoingHighlightUntilPageTurns(); watchForDisplayedFollowAlongPage(); } function updateFollowAlongPageTurnDisplay(){ if(!followAlongPageTurnExpectedSrc){return false;} if(followAlongScoreHasTurned()){ followAlongPageTurnExpectedSrc=''; stopFollowAlongPageTurnObserver(); holdFollowAlongForPageTurn(); return false; } preserveOutgoingHighlightUntilPageTurns(); return true; } function holdFollowAlongForPageTurn(){ if(l1){l1.style.visibility='hidden';} if(l2){ if(pageTurnLayer2Visibility===null){pageTurnLayer2Visibility=l2.style.visibility;} l2.style.visibility='hidden'; } } function releaseFollowAlongAfterPageTurn(){ if(l2 && pageTurnLayer2Visibility!==null){ l2.style.visibility=pageTurnLayer2Visibility; pageTurnLayer2Visibility=null; } } function getExactFollowAlongPageEnd(playTimes,pageIndex){ var page=(playTimes || [])[pageIndex]; if(!page){return 0;} var roundedEnd=Number(page.e)||0; if(pageIndex<=0 || typeof bt==='undefined' || !bt){return roundedEnd;} var roundedBegin=Number((playTimes[pageIndex-1] || {e:0}).e)||0; var exactEnd=roundedEnd; for(var barI=1;barI=roundedBegin && pageTestTimeroundedEnd){break;} } return exactEnd; } function getFollowAlongSpreadTimingIndex(playTimes,pageIndex,pageNumber){ if(!showTwoPages || pageNumber%2!==0){return pageIndex;} var previousPage=Number(((playTimes || [])[pageIndex-1] || {}).p)||0; return previousPage===pageNumber-1 ? pageIndex-1 : pageIndex; } function getFollowAlongBarTimingInfo(playTimes,barEndTenths){ var pages=playTimes || []; var barPageTime=(Number(barEndTenths)-6)/10; for(var pageIndex=1;pageIndex=pageBegin && barPageTime { var pageEnd=getExactFollowAlongPageEnd(pt,pageIndex); return pageEnd - pageTurningLead>= 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); currpagearryno = getFollowAlongSpreadTimingIndex(pt,pageI,page); var automaticPageChanged=currpage!==oldpage; var cp = currpage.toString().padStart(2, "0"); let newSrc; if (curtransp!=0) { cp = currpage.toString().padStart(3, "0"); newSrc = thissc+'_'+curtranspdir+Math.abs(Number(curtransp))+cp+'.gif' } else { newSrc = ss+score+cp+'.svg'; } var primaryScoreSrc=newSrc; switchTransposedScore("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+Math.abs(Number(curtransp)) + cp2 + ".gif"; } else { newSrc = ss + score + cp2 + ".svg"; } } else { newSrc = ""; } if ( sco2.src !== sco.src ) { switchTransposedScore("score2", newSrc); if(newSrc.length==0 &&curtransp == 0){ score2.style.width='11542px'; } } if(automaticPageChanged){beginFollowAlongPageTurn(primaryScoreSrc);} uptr(no_pages, currpage); } } function checktimeupdateparts() { if(!SCORE_HAS_FOLLOW_ALONG || typeof ppt==='undefined' || !ppt || ppt.length<2){ if(!SCORE_HAS_FOLLOW_ALONG){hideUnsupportedFollowAlongLayers();} else{hidePartFollowAlongLayers();} return; } var delaytime=0; if (ison5==1 || window.scorePlaybackSelectedSolo) delaytime=0; if (showTwoPages) { if (ppt.length % 2 === 0) { ppt.push({ e: ppt[ppt.length - 1].e }); } } let pageTurningLead = (typeof looping !== 'undefined' && looping) ? 0 : PAGE_TURNING_TIME; let pageI = ppt.findIndex((page,pageIndex) => { var pageEnd=getExactFollowAlongPageEnd(ppt,pageIndex); return pageEnd + p(delaytime/1000) - pageTurningLead >= aud.currentTime; }); if (pageI <= -1) pageI = 1; let curPage = ppt[pageI] || {e:0}; if ((ison1 == 1 || ison5 == 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 = getFollowAlongSpreadTimingIndex(ppt,pageI,page); } else { currpage = page; currpagearryno = pageI; } var automaticPartPageChanged=currpage!==oldpage; var cp = currpage.toString().padStart(2, "0"); let newSrc; if (baseUrl !== '') { newSrc = baseUrl + cp + '.svg'; } else { newSrc = ss+score+cp+'.svg'; } var primaryPartScoreSrc=newSrc; 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); } if(automaticPartPageChanged){beginFollowAlongPageTurn(primaryPartScoreSrc);} 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() */ ); } var scoreFocusScrollTimer=null; var scoreFocusScrollTarget=null; function scrollScoreFocusIntoView(target) { if (manual_scroll!=0 || !target) return; scoreFocusScrollTarget=target; if (scoreFocusScrollTimer) return; scoreFocusScrollTimer=window.setTimeout(function () { var latestTarget=scoreFocusScrollTarget; scoreFocusScrollTimer=null; scoreFocusScrollTarget=null; if (latestTarget) latestTarget.scrollIntoView({behavior:'smooth',inline:'center',block:'center'}); },500); } function checkbartimeupdate() { var partPlaybackActive=Boolean(ison1 || ison2 || ison3 || ison4 || ison5); if(!SCORE_HAS_FOLLOW_ALONG || (partPlaybackActive && !scoreHasPartFollowAlongData()) || typeof bt==='undefined' || !bt || bt.length<2){ if(!SCORE_HAS_FOLLOW_ALONG){hideUnsupportedFollowAlongLayers();} else{hidePartFollowAlongLayers();} return; } 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||ison5==1||window.scorePlaybackSelectedSolo){delaytime=0;} if (((aud.currentTime+chrome_delay)*1000)delaytime||delaytime==0){ // Rewind before choosing the focus bar so the frame after the loop end // cannot briefly highlight or scroll to a bar outside the selection. if (typeof looping !== 'undefined' && looping && typeof loopEnd !== 'undefined') { var activeLoopEndTime=(bt[loopEnd].e + delaytime / 100) / 10; if (aud.currentTime >= activeLoopEndTime) { if (loopStart === 1) { aud.currentTime = 0; } else { aud.currentTime = ((bt[loopStart - 1] || {e: 0}).e + delaytime / 100) / 10; } chrome_delay=isChrome ? aud.currentTime/500 : 0; } } var focusPageTimes=((ison1 || ison5) && typeof ppt !== 'undefined') ? ppt : pt; var focusPageEndIndex=showTwoPages ? currpagearryno+1 : currpagearryno; var focusPageBeginTenths=p(getExactFollowAlongPageEnd(focusPageTimes,currpagearryno-1)*10); var focusPageEndTenths=p(getExactFollowAlongPageEnd(focusPageTimes,focusPageEndIndex)*10); var lastVisiblePageBarIndex=-1; for(var focusBarI=1;focusBarIfocusPageBeginTenths && bt[focusBarI].e<=focusPageEndTenths){ lastVisiblePageBarIndex=focusBarI; } if(bt[focusBarI].e>focusPageEndTenths){break;} } for(var aaa=1;aaa=Math.max(1,loopEnd-1)); var exactPageBoundaryBar=aaa===lastVisiblePageBarIndex; var barFollowLeadMs=(exactFinalLoopBar || exactPageBoundaryBar) ? 0 : (2*100); if((((bt[aaa].e*100)-barFollowLeadMs)<((aud.currentTime+chrome_delay)*1000)-p(delaytime))){} else{ changingpage=false; var cbn=bt[aaa].b,zthispage=false,zthisbar=bt[aaa].b; var multirests='28-4'; var dcbn=cbn; if (ison1==1||ison5==1){ if (cbn>28){ if (cbn<32){ dcbn=28;} else{ dcbn=cbn-3; } } } cbn=dcbn; let playTimes; if ((ison1 || ison5) && typeof ppt !== 'undefined') { playTimes = ppt; } else { playTimes = pt; } let zthisbartiming = bt[aaa].e; var zthispage = false; var barTimingInfo=getFollowAlongBarTimingInfo(playTimes,zthisbartiming); var barTimingIndex=barTimingInfo ? barTimingInfo.index : currpagearryno; var barTimingPage=barTimingInfo ? barTimingInfo.page : currpage; let pageEndTime = p(getExactFollowAlongPageEnd(playTimes,barTimingIndex) * 10); let pageBeginTime = p(getExactFollowAlongPageEnd(playTimes,barTimingIndex-1) * 10); let barPageIsDisplayed = barTimingPage===currpage || (showTwoPages && barTimingPage===currpage+1); if ( zthisbartiming <= pageEndTime && (barTimingIndex <= 1 || zthisbartiming > pageBeginTime) && barPageIsDisplayed ) { zthispage = true; } let pageOffset = 0; if (showTwoPages && barTimingPage===currpage+1) { pageOffset = document.getElementById('score2').offsetLeft; } else { pageOffset = document.getElementById('score').offsetLeft; } var hideFollowAlongForTransposition=Number(curtransp)!==0; var waitingForDisplayedPage=updateFollowAlongPageTurnDisplay(); if(hideFollowAlongForTransposition || !temp_IS_HIGHLIGHT_ON) { holdFollowAlongForPageTurn(); } else if(waitingForDisplayedPage){ // The timing state has advanced, but the old SVG is still the one // the user can see. Leave its current-bar highlight in place. } else if(!zthispage || (changedpage && currpage !== pageBeforeChanging)) { holdFollowAlongForPageTurn(); } else { releaseFollowAlongAfterPageTurn(); l1.style.visibility= temp_IS_HIGHLIGHT_ON ? 'visible' : 'hidden'; if(l2){l2.style.visibility=temp_IS_HIGHLIGHT_ON ? 'visible' : 'hidden';} changedpage=0; if (ison0==1||ison1==1||ison1==2||ison3==1||ison4==1||ison5==1){ } var u,v,toppercwidth,leftpercwidth if (ison0==1 || ((ison1 || ison5) && 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=920/p(leftpercwidth); if (document.getElementById('scrollview').checked==true) { l1.style.top=(p(bp[cbn].t))/leftpercwidth+'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))/leftpercwidth)+'px'; if (cbn+10 && isFinite(scoreAudio.duration)){ try{scoreAudio.currentTime=Math.min(resumeAt,Math.max(0,scoreAudio.duration-0.05));}catch(ignoreSeekError){} } if(resumePlayback){ var playPromise=scoreAudio.play(); if(playPromise && typeof playPromise.catch==='function') playPromise.catch(function(){}); } }; if(scoreAudio.readyState>=1){finishTransposedAudioSwitch();} else{scoreAudio.addEventListener('loadedmetadata',finishTransposedAudioSwitch,{once:true});} } function transp(dir,numb,typeofaddition,kno){ if(lb==null){ initiatestuff() } rb.classList.remove("pagenav_disabled"); lb.classList.add("pagenav_disabled"); var actime=aud.currentTime; var resumeScoreAudio=ison0===1 && aud===document.getElementById('demo0') && !aud.paused; notransps=notransps+1; if(notransps>2) { overlay(); } else { if (typeofaddition==1){ switchTransposedScore('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; switchTransposedScore('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; switchTransposedScore('score', thissc+'_d'+negtransp+'001.gif'); cleartransps(); document.getElementById('d'+negtransp).classList.add("alphselected"); if (pt.length > 1) { switchTransposedScore('score2', thissc+'_d'+negtransp+'002.gif'); } trd=bg2; } else { pdfadd='u'+curtransp; cleartransps(); switchTransposedScore('score', thissc+'_u'+curtransp+'001.gif'); document.getElementById('u'+curtransp).classList.add("alphselected"); if (pt.length > 1) { switchTransposedScore('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(); switchTransposedScore('score', thissc+'_d'+negtransp+'001.gif'); document.getElementById('d'+negtransp).classList.add("alphselected"); if (pt.length > 1) { switchTransposedScore('score2', thissc+'_d'+negtransp+'002.gif'); } if (curtransp==-6) { trd=bg1; } else { tru=bg2; } } else { pdfadd='u'+curtransp; cleartransps(); switchTransposedScore('score', thissc+'_u'+curtransp+'001.gif'); document.getElementById('u'+curtransp).classList.add("alphselected"); if (pt.length > 1) { switchTransposedScore('score2', thissc+'_u'+curtransp+'002.gif'); } tru=bg2; } } } } if(typeofaddition!==1){curtranspdir=Number(curtransp)<0?'d':'u';} if(Number(curtransp)!==0){holdFollowAlongForPageTurn();} setSelectedTranspositionAudio(ison0===1 ? actime : 0,resumeScoreAudio); } if (typeof closeTransposeModal === 'function') closeTransposeModal(); else transp_modal.style.display = "none"; }



Download Score PDF
(8notes Premium)
Arrangements of this piece also available for:
  • Bassoon
  • Cello
  • Clarinet
  • Clarinet Quartet
  • Flute
  • French Horn
  • Piano Quintet
  • Recorder Quartet
  • Saxophone (Alto)
  • Saxophone Quartet
  • String Quartet
  • Trumpet
  • Viola
  • Violin
     Request New Version


About 'Oh Chanukah (Jewish Traditional)'

Artist:
Composed:
unknown
Info:
Oh Chanukah (or Oj Chanukah) is a very popular modern English Chanukah song. This upbeat playful children's song has lines about dancing the Horah, Spinning Dreidels ( Shining Tops) eating latkes, lighting the candles and singing happy songs.
Duration:
2:40
Range:
C4-C5
Score Key:
C minor (Sounding Pitch) (ImageView more C minor Music for Trombone )
Score Type:
Arrangement for Trombone and Piano
Tempo Marking:
Allegro e cantabile Image = c. 128 (ImageView more music marked Allegro)
Time Signature:
4/4 (ImageView more 4/4 Music)
Number of Pages:
2
Difficulty:
Intermediate Level: Recommended for Intermediate Level players
Instrument:
Style:
Copyright:
© Copyright 2000-2026 Red Balloon Technology Ltd (8notes.com)
This file may be printed and performed freely, but should not be digitally copied, shared or reproduced without permission.  
External Links:
Wikipedia (Trad.)
 




Your Comment