Today I want to program a karaoke in python. I have to show a text (the lyrics of the song) scroll down and play the music in the background. But I'm wondering if I have to do some code to move the lyrics and another code to play the music or I have to join both codes to do the parallel programming But I know that Python is a structured language and I can not do parallel programming.
Asked
Active
Viewed 1,075 times
-2
-
While paradigm (structured, OOP, functional and the likes) is not closely related to parallel programming/the lack of it anyway, in fact you will not need 'classic' parallel processing, as the caption has to stay in sync with the music. You may want to check if there is a music player API which produces you fine grained progress events and step your text/marking/whatever in the event handler. – tevemadar Jun 25 '17 at 19:09
2 Answers
1
Yes, check Parallel Processing, where you can find information for:
- Symmetric Multiprocessing
- Cluster Computing
- Cloud Computing
- Grid Computing
and pick what best fits your application.
Or, check How to do parallel programming in Python?

gsamaras
- 71,951
- 46
- 188
- 305
1
There are basically two simple ways to do concurrent programming in Python, using build-in libraries:
- Using the
threading
module (https://docs.python.org/3/library/threading.html) - Using the
multiprocessing
module (https://docs.python.org/3/library/multiprocessing.html)

havanagrawal
- 1,039
- 6
- 12