Program a Piano Using Python!

preview_player
Показать описание
This video shows you how to program an entire piano using Python and the PyGame Module!!

Full Project Code and Assets Here:

Be Sure to Subscribe to the Channel for tons more great tutorials and showcases!

As a huge thank you for 1000 subscribers on YouTube, I wanted to make a special project showcase for everyone! This is a really cool and surprisingly simple project, and you can get the Python Code, as well as the full assets folder including the font and all 88 piano key wav files at the GitHub link above!

Love the content on this channel? Feel free to support me on Patreon!

If you want to check out the awesome drum kit project we did recently be sure to check that out here :)

This is an awesome Python project and using the PyGame module is a super friendly way to create awesome Graphical user interfaces. Programming a Piano is a lot of fun for anyone interested in music, but also all programmers who want to understand the relationship between software like garage band, and what the development of those types of projects look like on the back end with code!

If you have questions or comments or ideas for a future video, be sure to let me know in the comments below! And don't forget to leave a like on the video and subscribe to the channel to stay up to date with all our future projects!!
Timestamps:
00:00 Intro and Showcase
01:25 Planning and Setting Up Lists
04:10 Setting Up PyGame
07:30 Drawing the Piano Keys
13:40 Making Notes Play
17:15 Playing with the Keyboard Keys
20:55 Display Hand Controls and Change Octaves
24:52 Title Bar and Style Additions
Рекомендации по теме
Комментарии
Автор

The beat maker video was super-inspirational: I started tinkering around with pygame like crazy after watching it. Great to see you made another music-oriented video. Thanks a lot!

EnnioPalanca
Автор

Bruh you deserve so much more attention than you get, your content is so high quality for 1K subs!

illicitfungi
Автор

Nice audio, video, subject, pacing and thumbnail 😁 I’ll be rooting for you to 10k!

andfanilo
Автор

Made it to 1k, great job man, you’ll be at 5k before you know it! 😊

rethanon
Автор

I am checking each of your videos and u have crazy projects bruh, it's so underrated man, I hope u get more views and subs soon . This will be a good path for me

I_Unintentionally_Morph
Автор

Just popped at my recommendation, new sub, I just started python this will be a cool project to do myself

I_Unintentionally_Morph
Автор

Hey bro. Can you tell me how you became so knowledgeable? What was your learning journey like? How did you go about your education etc., and what kind of a job are you doing right now? Thanks a lot.

pranavnyavanandi
Автор

Another good vid, thanks for the work.

MichaelGarcia-cgon
Автор

Nice project ever! and very effective for practicing with buttons and sounds

WorldReciter
Автор

I just discovered this channel, and this is awesome. I just have one problem : I have a smaller pc (1920 x 1080) then the windows of pygame program is taller than my windows, then I had to modify 'WIDTH' to 24, but others function does not appear I think. So I will look at it but if you have recommandation I take it. Good evening

yohannthill
Автор

Would it be possible to modify this so that i can change how long the note is held down? such as press and hold a button to play quarter notes?

matthew
Автор

Thank you for this! Definitely subbed. Also, something that could be improved on is potentially more notes in the code to follow along easier. I am simultaneously looking at the pygame documentation, but for someone who is a novice it might help a lot.

elvedino
Автор

Is there a way to program the sound that come out of a physical keyboard?

bernienoma
Автор

if I hold the keyboard, it will play the sound multiple times

esperanzawright
Автор

I downliaded the zip file, but how can i open it and have all the sources in the project?

lunasstories
Автор

Also can I make a chat app with python

I_Unintentionally_Morph
Автор

That's so sick! Was very easy to follow, thanks for making this tutorial :D

natyacodes
Автор

hello thank you for the movie. i do not speak english well but i am following you i like your cours. and i would loke to know how to use this piano on a music application like fl studio, cubase or others ? ... thank you

MarckPivi
Автор

Thank you for the video and resources. This actually helped me with a class project. I wanted to add to the program to change things and was thinking of preprogramming a song. I was wondering if you think that would be too easy to do, and if there's any cool ideas that you think can add to the piano.

tattvamasi
welcome to shbcf.ru