Coder Social home page Coder Social logo

virtual-piano's Introduction

Virtual Piano

The Virtual Piano is a simple program that allows you to play piano keys using your computer keyboard. Each key on the keyboard corresponds to a specific piano key, and pressing the corresponding key will play the sound of that piano key.

Instructions

  1. Run the program.

  2. Press the corresponding keys on your keyboard to play the piano keys.

  3. The keys and their corresponding piano notes are as follows:

    Key Piano Note
    A C4
    W C#4
    S D4
    E D#4
    D E4
    F F4
    T F#4
    G G4
    Y G#4
    H A4
    U A#4
    J B4
  4. The piano keys will play sound for 300 milliseconds each time a key is pressed.

  5. Press the ESC key to exit the program.

Requirements

  • Windows operating system (Windows API is used for sound playback)
  • C++ compiler

Notes

  • The program uses the Beep function from the Windows API to generate sound. If you are using a different operating system, you may need to modify the sound playback mechanism.
  • You can customize the program by adding more piano keys or changing the frequencies and durations of the sounds.

Acknowledgments

  • The program was inspired by the need for a simple virtual piano for learning and experimentation purposes.

virtual-piano's People

Contributors

sabamadadi avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.