Gunter
Posts: 5
Joined: Sun Jul 05, 2020 7:56 am

Textbook to create a music player.

Wed Jul 08, 2020 12:26 pm

Hello all.

I am new to Raspberry Pi. In other words, I have never used this product before.

Windows Media Player is an example of a software program that can play music or songs to a person.

I have a few questions to ask:

a) Can a person create a music player software program and then use it on a Raspberry Pi product?

b) Is a textbook available to show a person how to create a music player software program? In other words, I would like to code or develop it by myself by following a textbook. A textbook will tell a person how to do it.

c) Where can I buy the above mentioned textbook? Any suggestions? This textbook must be for a beginner in software development.

If you explain something to me, please try to explain it in non-technical terms.

Please, let me know.
Thank you.
Regards.

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Textbook to create a music player.

Wed Jul 08, 2020 1:23 pm

I am new to Raspberry Pi. In other words, I have never used this product before.
Do you have other experiences with programming on other platforms ?
a) Can a person create a music player software program and then use it on a Raspberry Pi product?
Yes, but there are already existing a lot of programs capable of doing such a thing that can be installed.
b) Is a textbook available to show a person how to create a music player software program? In other words, I would like to code or develop it by myself by following a textbook. A textbook will tell a person how to do it.
It may exist, but its a bit unlikely that such a specialized task is getting a book written for it. It may be that in a much larger book, about for example the Python language, there is a chapter that talks about how to play sound.
c) Where can I buy the above mentioned textbook? Any suggestions? This textbook must be for a beginner in software development.
Almost all books for beginner focus on teaching generic programming techniques and and the correct way to write programs in a specific programming language.
Books that go deeper and talk about specific tasks ( like playing sound and creating a userinterface ) usually assume the reader already has the basic knowledge.

Books that would be relevant for your specific task would be books that teach you how to make simple games. Games usually have a some user interface and takes input and will usually play some sound. And there is a ton of books about how to make games, because many dream about making their own game.

bjtheone
Posts: 770
Joined: Mon May 20, 2019 11:28 pm
Location: The Frozen North (AKA Canada)

Re: Textbook to create a music player.

Wed Jul 08, 2020 1:59 pm

Also courses on game design that might be relevant. Though they tend to assume a reasonable base of programming knowledge.

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Textbook to create a music player.

Wed Jul 08, 2020 2:25 pm

And of course the Internet is full of guides on almost all subjects.

There is even a relevant tutorial on this site using the simple programming "language" Scratch.
https://projects.raspberrypi.org/en/pro ... mp3-player

Gunter
Posts: 5
Joined: Sun Jul 05, 2020 7:56 am

Re: Textbook to create a music player.

Wed Jul 08, 2020 2:30 pm

topguy wrote:
Wed Jul 08, 2020 2:25 pm
And of course the Internet is full of guides on almost all subjects.

There is even a relevant tutorial on this site using the simple programming "language" Scratch.
https://projects.raspberrypi.org/en/pro ... mp3-player
Hello.

Thank you for the feedback. Regards.

Moonmarch
Posts: 413
Joined: Thu Mar 07, 2019 1:34 am

Re: Textbook to create a music player.

Thu Jul 09, 2020 10:15 pm

Linux operating systems use open source software. All of the software on the Raspberry Pi computer is open source. Open source means the source code of a program can be downloaded from a website. Here are a list of open source media players for Linux:

Top Open Source Video Players for Linux
https://itsfoss.com/video-players-linux/

There is a media player called mpv. You can find the source code to the mpv media player program on the mpv GitHub web page. Here is a link to the mpv GitHub web page:

GitHub - mpv-player/mpv
https://github.com/mpv-player/mpv

You can install the mpv media player on the Raspberry Pi computer using the command in the terminal:

Code: Select all

sudo apt install mpv
Write a media player program for the Raspberry Pi computer? A number of media player programs do run on the Raspberry Pi computer. You need to choose your preferred media player. The VLC Media Player is the all purpose media player for the Raspberry Pi computer. There is a media player called mplayer, the mplayer media player is command line only. If you were searching for a media player with more advanced features. Use a command line media player.

Return to “General discussion”