Awesome Open Source
Awesome Open Source

ğŸŽ¹ 1Keys

A 1 Kilobyte JavaScript Piano By Frank Force 2020

LIVE DEMO - Enhanced Version

LIVE DEMO - 1k Version

POSTMORTEM - Code Explanation

ğŸŽ¹ğŸŽ·ğŸŽ»âˆ¿

This tiny three instrument piano supports play with both keyboard and mouse!

Features

  • Four different instrument sounds
  • Keyboard and mouse support
  • Multiple notes can be played independently
  • Notes can be held for any length of time
  • Sounds ramp on and off to eliminate pops
  • Keys light up red when played
  • Sounds stop if focus is lost

Screenshot

The enhanced version sounds the same but has a few small bonus features...

  • Octave and Key control
  • Keyboard keys displyed on piano

Thanks to Rodrigo Siqueira for helping prototype.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,997) 
music (610) 
audio-player (70) 
instrument (16)