Skip to content

Python Pygame Piano using the computer keyboard with 127 different effects.

License

Notifications You must be signed in to change notification settings

JollyShmo/Python-Keyboard-Piano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Keyboard Piano

A simple virtual piano application implemented in Python using the Pygame library.

Introduction

This project implements a virtual piano application using the Pygame library in Python. It allows users to play musical notes using their computer keyboard and supports a variety of MIDI instruments.

The application features:

  • Mapping of computer keys to piano keys
  • (1, 2, 3...) to the '=' key
  • (q,w,e,r...) to the ']' key
  • (a,s,d,f...) to the ''' key
  • (z,x,c,v...) to the 'm' key
  • MIDI output for generating musical notes
  • Slider menu to select MIDI instrument
  • Interactive piano keys that light up when pressed (lights up a bar in red)

Keyboard Piano1

Installation

  1. Ensure you have Python 3.x installed on your system.

  2. Install the Pygame library by running the following command: pip install pygame

  3. Unzip Python-Keyboard-Piano-main.zip

  4. Run the application: python Piano.py or open the file Piano.py

Usage

  • Use the computer keyboard to play the piano keys. The mapping of keys to notes is defined in the code.
  • Use the left and right arrow keys to navigate through the instrument selection menu.
  • Click and drag the slider to choose the desired MIDI instrument.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Please feel free to open a pull request or submit an issue for any bugs, feature requests, or enhancements.

Acknowledgements

About

Python Pygame Piano using the computer keyboard with 127 different effects.

Topics

Resources

License

Stars

Watchers

Forks

Languages