Music
Question: Can play music on Terminal?
Answer: Absolutely Yes!
#
Package can run music on TerminalMPD "(music player daemon) is an audio player that has a server-client architecture. It plays audio files, organizes playlists and maintains a music database, all while using very few resources. In order to interface with it, a separate client is needed." Source Arch Wiki
Ncmpcpp "is an mpd client (compatible with mopidy with a UI very similar to ncmpc, but it provides new useful features such as support for regular expressions for library searches, extended song format, items filtering, the ability to sort playlists, and a local filesystem browser. To use it, a functional mpd must be present on the system since ncmpcpp/mpd work together in a client/server relationship." Source Arch Wiki
Mpc "is a command-line client for the Music Player Daemon (MPD). It connects to a MPD and controls it according to commands and arguments passed to it. If no command is given, the current status is printed (same as "mpc status")." Source
man mpc
#
Configuration File- MPD
bind_to_address "127.0.0.1"bind_to_address "~/.config/mpd/mpd.socket"port "8000"pid_file "~/.config/mpd/mpd.pid"log_file "~/.config/mpd/log"
music_directory "/sdcard/Music"playlist_directory "~/.config/mpd/playlists"db_file "~/.config/mpd/mpd.db"state_file "~/.config/mpd/state"sticker_file "~/.config/mpd/sticker.sql"
log_level "notice"metadata_to_use "artist,album,title,track,name,genre,date composer,performer,disc"metadata_to_use "+comment"follow_outside_symlinks "yes"follow_inside_symlinks "yes"
input {
plugin "curl"
}
audio_output {
type "pulse" name "Pulse Audio (Support Cava Visualizer)" mixer_type "software" enable "yes"
}
audio_output {
type "fifo" name "Fifo Visualizer (Press 8 to show Music Visualizer)" path "~/.config/mpd/mpd.fifo" format "44100:16:2" enabled "yes"
}
If you want change port MPD, you can change it on this text:
Note: Android has limited the use of ports below 1000, so you can only use ports above 1000
......port "8000"......
- Ncmpcpp
mpd_host = "~/.config/mpd/mpd.socket"mpd_port = "8000"
mpd_crossfade_time = 2
visualizer_in_stereo = "no"visualizer_fifo_path = "~/.config/mpd/mpd.fifo"visualizer_output_name = "Visualizer"visualizer_type = "wave"visualizer_look = "๎โ"visualizer_color = "red,magenta,cyan,green,yellow"
cyclic_scrolling = "yes"mouse_support = "yes"mouse_list_scroll_whole_page = "yes"lines_scrolled = "1"message_delay_time = "1"playlist_shorten_total_times = "yes"playlist_display_mode = "columns"browser_display_mode = "columns"search_engine_display_mode = "columns"playlist_editor_display_mode = "columns"autocenter_mode = "yes"centered_cursor = "yes"user_interface = "classic"follow_now_playing_lyrics = "yes"locked_screen_width_part = "50"ask_for_locked_screen_width_part = "yes"display_bitrate = "no"external_editor = "nano"main_window_color = "default"startup_screen = "playlist"
progressbar_look = "โโโ"#progressbar_look = "โโโ"progressbar_elapsed_color = 5progressbar_color = "black"
header_visibility = "no"statusbar_visibility = "yes"titles_visibility = "no"enable_window_title = "yes"
statusbar_color = "white"color1 = "white"color2 = "blue"
now_playing_prefix = "$b$2๏$7 "now_playing_suffix = " $/b$8"current_item_prefix = "$b$7๏$/b$3 "current_item_suffix = " $8"
song_columns_list_format = "(50)[]{t|fr:Title} (0)[magenta]{a}"
song_list_format = " {%t $R ๏ข $8%a$8}|{%f $R ๏ก $8%l$8} $8"
song_status_format = "$b$7[ $4๏ $1๏ ๏ ๏ $4๏ $7] $7๏{$8 %b }|{$8 %t }|{$8 %f }$2๏ $7๏ $8"
song_window_title_format = "Music - { %b }|{ %t }|{ %f }"
#
How to play Music?First you need run Music Player Daemon, with command:
mpd
After Music Player Daemon running, you can open the Ncmpcpp with command:
ncmpcpp