This project is a simple terminal-based lyrics and music player. It allows you to select a song from a list, play the song, and display the lyrics in sync with the music.
- List available songs
- Play selected song
- Display lyrics with type-in animation, synchronized with the music
ffplay
(part offfmpeg
package) for audio playback- A C++ compiler (GCC recommended)
- Standard C++ library
- Clone the repository:
git clone https://github.com/sthaarwin/Lyrics-on-Terminal-LOT-.git cd Lyrics-on-Terminal-LOT-
- Compile the code:
g++ -o lyrics_player lyrics_player.cpp -std=c++17
-
Place your MP3 files in the
songs
folder. -
Place the corresponding LRC files in the
lyrics
folder. -
Run the compiled application:
./lyrics_player
-
Follow the prompts to select and play a song.
To contribute to the project, please follow these guidelines:
-
Add your MP3 file to the
songs
folder. The filename should follow the format:Artist - Songname.mp3
-
Add the corresponding LRC file to the
lyrics
folder. The filename should match the MP3 file name, but with an.lrc
extension. For example:Artist - Songname.lrc
-
Ensure that the song and lyrics files have the same base name, differing only in extension.
-
Fork the repository and clone your fork.
-
Make your changes (add your song and lyrics files).
-
Commit your changes and push them to your fork.
-
Create a pull request from your fork to the main repository.
- Follow the existing code style for consistency.
- Ensure your changes do not break existing functionality.