Skip to content

vovod/virtual-piano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Piano - 49 Keys

A web-based virtual piano with 49 keys (C4-B7) that allows users to play using keyboard or mouse, featuring multiple instruments and auto-play functionality.

Features

  • Full 49-key piano (4 octaves from C4 to B7)
  • 4 instruments: Piano, Organ, Acoustic Guitar, and EDM
  • Volume control
  • Mouse and keyboard support
  • Keypress history display
  • Auto-play with custom key sequences
  • Adjustable playback speed

Usage

Playing the Piano

  • Mouse: Click on piano keys
  • Keyboard: Use mapped keys (see keyboard guide on the interface)

Auto-Play Sequences

  1. Enter key sequence in the input box
  2. Adjust playback speed if needed
  3. Click "Play Music"

Keyboard Mapping

  • Octave 4:

    • White keys: A (C4), S (D4), D (E4), F (F4), G (G4), H (A4), J (B4)
    • Black keys: W (C#4), E (D#4), T (F#4), Y (G#4), U (A#4)
  • Octave 5-7:

    • See keyboard guide on interface

Installation

  1. Download all files
  2. Open index.html in a modern browser

Project Structure

  • index.html - HTML structure
  • css/style.css - Styling
  • js/audiosynth.js - Sound synthesis library
  • js/script.js - Interactive functionality

Browser Compatibility

Works best on modern browsers (Chrome, Firefox, Edge, Safari).

Credits

Thanks to Keith Whor for the AudioSynth library.

License

MIT License


© 2025 Virtual Piano Project

About

Virtual Piano: https://vovod.github.io/virtual-piano/

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors