Perfect Pitch Ear Training

I do not perceive notes in different octaves as same, this makes Toned Ear pitch training guesswork. So I've created a tool where one can select individual notes:

B♯/C
C♯/D♭
D
D♯/E♭
E/F♭
F
F♯/G♭
G
G♯/A♭
A
A♯/B♭
B/C♭

Now run , it randomly selects note and plays it. Select answer , , , , , , , , , , , , if wrong it plays note second time so you can make another try. Or you can selected note again.

Correct answer increases counter 0, incorrect resets it to zero. Buttons has keyboard shortcuts, corresponding key marked by underline. For example type t to run "Test", c to answer "C", Shift+c for "C♯" and Alt+c for "C♭" (not sure how it would work in Safari).

I think the way to go is making strong connections between sound and its name. Knowing not guessing. I've started with just two notes — G3 and C4. I close my eyes and go through hundreds of tests. Once I felt confident I've added G4, than C5.

TODO:

UPDATES:

Implementation: