SIZ Education | Making a simple piano app | by @faizan2sheikh

in Steem Infinity Zone2 years ago (edited)

Assalam-o-Alaikum, hope you all are doing good! Ramzan is going on, everyone is busy in their lives and ibadah, my university vacations are also going on! I always want to spend my time doing productive things, so I am learning React these days! React is a JS library for making SPA web apps.

Project Description

I will use CodePen in this tutorial as coding environment, its a very useful tool for coding, specially for web development. I am doing a course on freecodecamp these days and I have been given these projects to be done for certification. So moving on to the project, it was a drum machine that produced drum sounds when buttons are pressed or clicked, but as I like piano as an instrument, I decided to tweak the project and made a very simple but cute looking piano app to share with my friends and steemians!

s1.png

image.png

Step by step walk-through

Here is a glimpse of code that we will cover today!

s2.png

First of all we imported sounds from the internet and map those sounds to some keys that will act as buttons to trigger those sounds and name to be displayed when they are played!

s3.png

Then I designed how each key should work as a drumpad and what sounds it play!

a4.png

After that I used all the keys together to design a drumset of different keys of piano!
Then I rendered those keys as a drumset in my application!

s5.png

I also designed a display component that will display the name of the key currently tapped!
Then after designing individual components I mapped all those components in a single element and attached them to the main DOM using ReactDOM functions.

s6.png

Here are some styles that I later added to make the app look better!

s7.png

image.png

Final Application

s1.png

You guys can also visit the piano player and have some fun playing it Piano Player

image.png

Conclusion

I hope now you all liked my project, let me know if you would like to see more!

Regards, @faizan2sheikh

Thanks to the mods and @siz-official for serving the community!

Thank you for reading my post!

image.png

Sort:  
 2 years ago 

Please read these guidelines..

https://steemit.com/hive-181430/@siz-official/siz-community-guidelines-on-daily-content-creation-categories

Now tutorials is not allowed in our community.

Oh okay, actually it also falls into education category so I changed the title.

Getting started on steem can be super hard on these social platforms 😪 but luckily there is some communities that help support the little guy 😊, you might like school of minnows, we join forces with lots of other small accounts to help each other grow!
Finally a good curation trail that helps its users achieve rapid growth, its fun on a bun! check it out. https://hive.blog/schoolofminnows/@schoolofminnows/someeznz9em3ap

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.031
BTC 68034.95
ETH 3846.82
USDT 1.00
SBD 3.66