GithubHelp home page GithubHelp logo

allardquek / hit-the-right-note Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 116 KB

Effortless piano playing.

Home Page: https://hit-the-right-note.glitch.me/

License: Other

JavaScript 53.03% HTML 25.14% CSS 21.83%

hit-the-right-note's Introduction

hit the right note

hit (or strike) the right (or wrong) note: to say or do something in exactly the right (or wrong) way.

Always wanted to play the piano but never know what notes to hit? It's simple ๐Ÿ˜Œ

1. Use the 8 s to l keys on your keyboard โŒจ๏ธ to play the piano.

2. Hold the space bar ๐ŸŒŒ to sustain the notes (It's your sustain pedal!)

3. Play any note, in any order, and enjoy the music ๐ŸŽถ

Inspiration

I've always wanted to play the piano (well), but never had the time or talent to do it ๐Ÿ˜” At the same time, I wanted this project to also have a deeper meaning behind it, which I'll explain below.

What it does

Generates piano notes according to the keys the user presses.

How I built it

This project is a remix of Piano Genie. The music generation is implemented using a pre-trained Magenta model that was trained on a set of ~1400 virtuosic performances from the International Piano-e-Competition.

Specifically, I worked on redesigning the colour scheme and adding my own (simplified) image of a 'piano':

  1. Colours: The colours chosen represent 8 of the colours of the new Pride Flag
  2. Symbol: The choice of symbol as the unicorn stems from unicorns being a symbol of LGBT culture.

Challenges I ran into

  1. Learning / doing everything on my own as I wasn't able to find teammates who were able to commit to this project.
  2. Managing time constraints. Only started working on the project really late (around 10pm) due to other commitments.
  3. CSS! It was difficult trying to align the elements and getting the effect I really wanted, and had to come up with some workarounds at some points.
  4. Understanding code. As this project builds on a previous implementation, I had to read and understand what the previous author had written and remove any unnecessary or irrelevant parts to my project.
  5. Version control with Glitch. It was my first time developing in Glitch and I only realised later on that there was no branching feature like in Git. When things went wrong, this resulted in me 'rewinding' (i.e. resetting) my code a few times and having to redo some parts of the project.

Accomplishments that I'm proud of

  1. Completing some MVP despite the limited time and resources I had :)
  2. Getting some sleep..?

What I learned

  1. CSS! Picked up a couple of cool CSS tricks along the way
  2. Developing in Glitch
  3. Some understanding on how Music Generation works

What's next for Hit The Right Note

  1. Providing support for different instruments.
  2. Implementing Tone Transfer for output generated
  3. Providing UI support for more piano notes (Unicorns) so that users can see the notes rising even higher and even lower.

hit-the-right-note's People

Contributors

allardquek avatar

Stargazers

 avatar

Watchers

 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.