@@ -432,8 +432,9 @@ function TemperamentWidget() {
432432 docById ( "noteInfo" ) . remove ( ) ;
433433 }
434434
435- docById ( "information" ) . innerHTML +=
436- `<div class="popup" id="noteInfo" style="left: ${ x } px; top: ${ y } px;">
435+ docById (
436+ "information"
437+ ) . innerHTML += `<div class="popup" id="noteInfo" style="left: ${ x } px; top: ${ y } px;">
437438 <span class="popuptext" id="myPopup"></span>
438439 </div>` ;
439440 if ( i !== 0 ) {
@@ -519,17 +520,19 @@ function TemperamentWidget() {
519520 docById ( "noteInfo" ) . style . height = "130px" ;
520521 docById ( "note" ) . innerHTML = "" ;
521522 docById ( "frequency" ) . innerHTML = "" ;
522- docById ( "noteInfo" ) . innerHTML +=
523- `<center><input type="range" class="sliders" id="frequencySlider1" style="width:170px; background:white; border:0;" min="${
524- this . frequencies [ i - 1 ]
525- } " max="${ this . frequencies [ i + 1 ] } "></center>`;
523+ docById (
524+ "noteInfo"
525+ ) . innerHTML += `<center><input type="range" class="sliders" id="frequencySlider1" style="width:170px; background:white; border:0;" min="${
526+ this . frequencies [ i - 1 ]
527+ } " max="${ this . frequencies [ i + 1 ] } "></center>`;
526528 docById ( "noteInfo" ) . innerHTML += `<br> ${ _ (
527529 "frequency"
528530 ) } <span class="rangeslidervalue" id="frequencydiv1">${ this . frequencies [ i ] } </span>`;
529- docById ( "noteInfo" ) . innerHTML +=
530- `<br><br><div id="done" style="background:rgb(196, 196, 196);"><center>${ _ (
531- "done"
532- ) } </center><div>`;
531+ docById (
532+ "noteInfo"
533+ ) . innerHTML += `<br><br><div id="done" style="background:rgb(196, 196, 196);"><center>${ _ (
534+ "done"
535+ ) } </center><div>`;
533536
534537 docById ( "frequencySlider1" ) . oninput = function ( ) {
535538 docById ( "frequencydiv1" ) . innerHTML = docById ( "frequencySlider1" ) . value ;
@@ -1453,17 +1456,19 @@ function TemperamentWidget() {
14531456 '" alt="' +
14541457 _ ( "Close" ) +
14551458 '" height=20px width=20px align="right">' ;
1456- docById ( "noteInfo1" ) . innerHTML +=
1457- `<br><center><input type="range" class="sliders" id = "frequencySlider" style="width:170px; background:white; border:0;" min="${
1458- frequencies [ i ]
1459- } " max="${ frequencies [ i + 1 ] } " value="30"></center>`;
1459+ docById (
1460+ "noteInfo1"
1461+ ) . innerHTML += `<br><center><input type="range" class="sliders" id = "frequencySlider" style="width:170px; background:white; border:0;" min="${
1462+ frequencies [ i ]
1463+ } " max="${ frequencies [ i + 1 ] } " value="30"></center>`;
14601464 docById ( "noteInfo1" ) . innerHTML += ` ${ _ (
14611465 "frequency"
14621466 ) } : <span class="rangeslidervalue" id="frequencydiv">${ frequencies [ i ] } </span>`;
1463- docById ( "noteInfo1" ) . innerHTML +=
1464- `<br><br><div id="done" style="background:rgb(196, 196, 196);"><center>${ _ (
1465- "done"
1466- ) } </center><div>`;
1467+ docById (
1468+ "noteInfo1"
1469+ ) . innerHTML += `<br><br><div id="done" style="background:rgb(196, 196, 196);"><center>${ _ (
1470+ "done"
1471+ ) } </center><div>`;
14671472
14681473 docById ( "noteInfo1" ) . style . top = "100px" ;
14691474 docById ( "noteInfo1" ) . style . left = "90px" ;
@@ -2140,12 +2145,9 @@ function TemperamentWidget() {
21402145 }
21412146
21422147 if ( i <= pitchNumber && i >= 0 && that . _playing && p < 2 ) {
2143- setTimeout (
2144- function ( ) {
2145- __playLoop ( i ) ;
2146- } ,
2147- Singer . defaultBPMFactor * 1000 * duration
2148- ) ;
2148+ setTimeout ( function ( ) {
2149+ __playLoop ( i ) ;
2150+ } , Singer . defaultBPMFactor * 1000 * duration ) ;
21492151 } else {
21502152 that . inbetween = true ;
21512153 }
@@ -2162,16 +2164,13 @@ function TemperamentWidget() {
21622164 that . _playing = false ;
21632165 that . playbackForward = true ;
21642166 this . inbetween = false ;
2165- setTimeout (
2166- function ( ) {
2167- that . notesCircle . navItems [ 0 ] . fillAttr = "#c8C8C8" ;
2168- that . notesCircle . navItems [ 0 ] . sliceHoverAttr . fill = "#c8C8C8" ;
2169- that . notesCircle . navItems [ 0 ] . slicePathAttr . fill = "#c8C8C8" ;
2170- that . notesCircle . navItems [ 0 ] . sliceSelectedAttr . fill = "#c8C8C8" ;
2171- that . notesCircle . refreshWheel ( ) ;
2172- } ,
2173- Singer . defaultBPMFactor * 1000 * duration
2174- ) ;
2167+ setTimeout ( function ( ) {
2168+ that . notesCircle . navItems [ 0 ] . fillAttr = "#c8C8C8" ;
2169+ that . notesCircle . navItems [ 0 ] . sliceHoverAttr . fill = "#c8C8C8" ;
2170+ that . notesCircle . navItems [ 0 ] . slicePathAttr . fill = "#c8C8C8" ;
2171+ that . notesCircle . navItems [ 0 ] . sliceSelectedAttr . fill = "#c8C8C8" ;
2172+ that . notesCircle . refreshWheel ( ) ;
2173+ } , Singer . defaultBPMFactor * 1000 * duration ) ;
21752174 }
21762175 } ;
21772176 if (
0 commit comments