top of page
  • Writer's pictureKJ Ha

Lyrics Replaced

For this week's assignment, I decided to work with Musixmatch API, the world’s largest lyrics database (Documentation). I specifically used matcher.lyrics.get method, which allows the user to find the lyrics of a song based on the name of the artist and the title of the song.

There are a total of four input fields in the sketch: the above two are for finding the lyrics of the song and the below two are for Find/Replace purpose. After the users have found the lyrics, they can alter any text in the lyrics using Find/Replace input fields. To enable the Find/Replace function, I've used a replaceAll() method from the RiTa library.

Link to p5.js source code:

Demo Video

Click here to register at Musixmatch API in order to get an API key.

bottom of page