Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
momentollogy committed Apr 18, 2023
1 parent 5783517 commit 1d4c997
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ <h1>Arduino Piano Buzzer Song Creator V1 <br> <small>by momentollogy</small><br>
<div class="key black" data-note="80" data-key="P">P</div>
<div class="key white" data-note="59">;</div>
<div class="key white" data-note="222">'</div>
<div class="key black" data-note="219" data-key="[">[</div>
<div class="key white" data-note="220">\</div>

</div>


Expand Down Expand Up @@ -181,6 +184,9 @@ <h1>Arduino Piano Buzzer Song Creator V1 <br> <small>by momentollogy</small><br>
80: 622.25, // P
59: 659.26, // ;
222: 698.26, // ;
219: 739.99, // [
220: 783.99, // \

};

const noteNames = {
Expand All @@ -205,6 +211,9 @@ <h1>Arduino Piano Buzzer Song Creator V1 <br> <small>by momentollogy</small><br>
622.25: "NOTE_Ds5",
659.26: "NOTE_E5",
698.26: "NOTE_F5",
739.99: "NOTE_Fs5",
783.99: "NOTE_G5",

};

//THIS IS TO map the note names to the key codes for load button.
Expand All @@ -230,6 +239,9 @@ <h1>Arduino Piano Buzzer Song Creator V1 <br> <small>by momentollogy</small><br>
'NOTE_Ds5': 80,
'NOTE_E5': 59,
'NOTE_F5': 222,
'NOTE_Fs5': 219,
'NOTE_G5': 220,

};

//Makes blackkeynames work
Expand All @@ -243,6 +255,7 @@ <h1>Arduino Piano Buzzer Song Creator V1 <br> <small>by momentollogy</small><br>
85: 'U',
79: 'O',
80: 'P',
219: '[',
};

document.querySelectorAll('.key.black').forEach((key) => {
Expand Down

0 comments on commit 1d4c997

Please sign in to comment.