You are not logged in.

#1 2010-06-12 15:01:31

Udyant
Member
Registered: 2009-03-27
Posts: 4

How do Archers play their music?

Just curious. Do you have your music collection organised by albums, by artist, by genre, by year? Or is it just one big directory full of songs/clips?

In my case, its the latter option. I have this one directory called 'moozik' in $HOME containing all my music files. I have hacked two methods of playing them: a shell script, and an elisp function. Both utilise mplayer.

#!/bin/sh

cd ~/moozik
ls | sort -R > plist
sed -i '/plist/d' plist
mplayer -playlist plist

For this shell script, I use mplayer's interface to: pause (space), skip to the next track (>), and to quit (q).

This elisp code uses cl.el, emms and a function of my own. (For those not knowing, emms is the Emacs Multi Media System. Yeah, Emacs plays audio and video, too!)

(setf songs (permute (directory-files "~/moozik" t nil t)))

(defun song-next ()
  (interactive)
  (emms-stop)
  (if (endp songs)
      (message "THIS! IS! SPARTA!")
    (emms-play-file (pop songs))))

(global-set-key "\C-cr" 'song-next)

where 'permute' is:

(defun permute (list)
  "Rearrange elements of LIST."
  (loop for i from (- (length list) 1) downto 0 do
       (let ((r (random* (1+ i))))
         (rotatef (nth r list) (nth i list)))
       (1- i))
  list)

which Archers who have read the emms sources will realise as being similar to 'emms-shuffle-vector'

So, how do you hear your music? I suppose most of you sane people would be using a dedicated music player/manager.

Last edited by Udyant (2010-06-12 15:02:35)

Offline

#2 2010-06-12 15:11:23

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,109
Website

Re: How do Archers play their music?

This is probably relevant.

Offline

#3 2010-06-12 15:15:30

Udyant
Member
Registered: 2009-03-27
Posts: 4

Re: How do Archers play their music?

falconindy wrote:

This is probably relevant.

I concur.

Offline

#4 2010-06-12 15:20:44

Square
Member
Registered: 2008-06-11
Posts: 434

Re: How do Archers play their music?

Might as well skip the poll and go directly to: http://wiki.archlinux.org/index.php/Mpd


 

Offline

#5 2010-06-12 15:24:50

Wintervenom
Member
From: /home/wintervenom
Registered: 2008-08-20
Posts: 1,011

Re: How do Archers play their music?

Post deleted.

Last edited by Wintervenom (2010-06-13 00:05:49)


Data is guaranteed to stay crunchy in milk.
Keep your _✍ hand strong.

Offline

#6 2010-06-12 16:28:25

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: How do Archers play their music?

Square wrote:

Might as well skip the poll and go directly to: http://wiki.archlinux.org/index.php/Mpd

Yup, it's going to be yet another 90% of Archers use MPD thread.

Offline

#7 2010-06-12 16:35:22

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: How do Archers play their music?

I consider mocp, mpd, and rhythmbox to be very nice.

Offline

#8 2010-06-12 16:47:04

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: How do Archers play their music?

I use ogg123 from the vorbis-tools package. (The latest version supports ReplayGain!)

I have this script in /usr/local/bin/jukebox:

#!/bin/bash
# vim:set filetype=sh: *

oggpid=$(pgrep -x -n ogg123)

if [[ ${#} -eq 0 ]] ; then
        if [[ -z "${oggpid}" ]] ; then
                setsid ogg123 -q -Z "${HOME}/music/vorbis" > /dev/null 2>&1 &
                exit
        fi

        if grep -q '^State:.*stopped' /proc/${oggpid}/status ; then
                kill -CONT "${oggpid}"
        else
                kill -STOP "${oggpid}"
        fi
else
        pkill -STOP -x ogg123

        setsid ogg123 -q "${@}" > /dev/null 2>&1 &
fi

And these keybindings in Openbox:

                <keybind key="W-z">
                        <action name="Execute">
                                <command>jukebox</command>
                        </action>
                </keybind>
                <keybind key="W-x">
                        <action name="Execute">
                                <command>pkill -INT -x -n ogg123</command>
                        </action>
                </keybind>

(INT signal to ogg123 makes it skip to the next song.)

And this bash alias to tell me what I'm listening to:

alias wm='ogginfo "/proc/$(pgrep -n -x ogg123)/fd/3"'

If you read the script, you can see it has rather a few features beyond just keybinding it: Give an argument to play something specific, and keep paused instances in a "stack" for returning to later. It's amazing how much functionality can be gotten for such a small amount of code, when you have good tools to work with.

Offline

#9 2010-06-12 17:13:53

Udyant
Member
Registered: 2009-03-27
Posts: 4

Re: How do Archers play their music?

ataraxia wrote:

I use ogg123 from the vorbis-tools package. (The latest version supports ReplayGain!)

I have this script in /usr/local/bin/jukebox:

#!/bin/bash
# vim:set filetype=sh: *

oggpid=$(pgrep -x -n ogg123)

if [[ ${#} -eq 0 ]] ; then
        if [[ -z "${oggpid}" ]] ; then
                setsid ogg123 -q -Z "${HOME}/music/vorbis" > /dev/null 2>&1 &
                exit
        fi

        if grep -q '^State:.*stopped' /proc/${oggpid}/status ; then
                kill -CONT "${oggpid}"
        else
                kill -STOP "${oggpid}"
        fi
else
        pkill -STOP -x ogg123

        setsid ogg123 -q "${@}" > /dev/null 2>&1 &
fi

And these keybindings in Openbox:

                <keybind key="W-z">
                        <action name="Execute">
                                <command>jukebox</command>
                        </action>
                </keybind>
                <keybind key="W-x">
                        <action name="Execute">
                                <command>pkill -INT -x -n ogg123</command>
                        </action>
                </keybind>

(INT signal to ogg123 makes it skip to the next song.)

And this bash alias to tell me what I'm listening to:

alias wm='ogginfo "/proc/$(pgrep -n -x ogg123)/fd/3"'

If you read the script, you can see it has rather a few features beyond just keybinding it: Give an argument to play something specific, and keep paused instances in a "stack" for returning to later. It's amazing how much functionality can be gotten for such a small amount of code, when you have good tools to work with.

Nice script. oggs only?

Offline

#10 2010-06-12 17:34:35

Labello
Member
From: Germany
Registered: 2010-01-21
Posts: 317
Website

Re: How do Archers play their music?

i just used:

clementine-git

"They say just hold onto your hope but you know if you swallow your pride you will choke"
Alexisonfire - Midnight Regulations

Offline

#11 2010-06-12 18:23:15

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: How do Archers play their music?

mpd with ncmpcpp and some OB binds for media keys using mpc

Last edited by JohannesSM64 (2010-06-12 18:23:27)

Offline

#12 2010-06-12 19:33:36

Tomone
Member
Registered: 2009-09-29
Posts: 18

Re: How do Archers play their music?

JohannesSM64 wrote:

mpd with ncmpcpp and some OB binds for media keys using mpc

Why don't you just use keybindings with ncmpcpp? Is there something you can't do with ncmpcpp?

Offline

#13 2010-06-12 20:00:45

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: How do Archers play their music?

Udyant wrote:

Nice script. oggs only?

Yes, all of my music is vorbis-encoded.

Offline

#14 2010-06-12 20:11:00

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: How do Archers play their music?

I play my music using my fancy Koss Porta Pro/Sennheise PX 100. The Sennheiser are better though.

…oh yeah, I use MPD.

Offline

#15 2010-06-12 22:56:25

oew
Member
From: Norway
Registered: 2006-11-08
Posts: 105

Re: How do Archers play their music?

I use Spotify.
Sadly no Linux client yet, but it runs great with Wine.

Last edited by oew (2010-06-12 22:56:43)


there's no place like ~/

Offline

#16 2010-06-13 00:04:56

Wintervenom
Member
From: /home/wintervenom
Registered: 2008-08-20
Posts: 1,011

Re: How do Archers play their music?

[DMPC] or Amarok, until I implement some of Amarok's random modes into DMPC.


Data is guaranteed to stay crunchy in milk.
Keep your _✍ hand strong.

Offline

#17 2010-06-13 03:45:59

upsidaisium
Member
From: Vietnam
Registered: 2006-09-16
Posts: 263
Website

Re: How do Archers play their music?

I sort my music by artist and then album. I'm not so fussy about individual file name formats anymore -- ie, "01 - Age of Consent.mp3" or "01 - Power, Corruption, Lies - Age of Consent.mp3", etc -- but directory names and structure/organization is important.

For a long time I used cmus. And then I decided I'd use a little home-made script as a command line front end to mpg123 (ogg123, or flac123). But then last week I defected to (ugh..) mpd and hacked out a little script to add/remove albums to/from mpd's playlist using dmenu.

Last edited by upsidaisium (2010-06-13 03:46:40)


I've seen young people waste their time reading books about sensitive vampires. It's kinda sad. But you say it's not the end of the world... Well, maybe it is!

Offline

#18 2010-06-13 04:13:25

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: How do Archers play their music?

mpd. There is also a similar thread Favorite .. and hope this thread being young get closed.. smile.

Offline

#19 2010-06-13 04:15:27

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 876
Website

Re: How do Archers play their music?

The music is sorted like /mnt/Music_1/0-9/1200_Micrograms...

I use MPD with pimpd for all the management (like adding some random tracks, saving a good song for later etc).
The daemon is running on my desktop which means I can control it when I'm the laptop.

I also use mplayer with Radio Playing Daemon when I just want some random chit chat. Like MPD, I control it from a distance.

Offline

#20 2010-06-13 04:52:04

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: How do Archers play their music?

I use Quod Libet to play my music which is all in one folder. Since they're mostly individual tracks it makes no sense to organize them in any special way.

Last edited by anonymous_user (2010-06-13 04:52:56)

Offline

#21 2010-06-13 07:28:10

Skyalmian
Member
Registered: 2009-06-28
Posts: 121
Website

Re: How do Archers play their music?

Everything pure (e.g. CD tracks) gets converted straight to highest quality FLAC.

No tags for absolutely anything, filenames only. Folder structure works like this: "/audio/artists/gorillaz/plastic beach/broken.flac". There's also "compilations" "playlists" "soundtracks" "unsorted" at the same level of "artists". I'm lazy and manually or randomly choose whatever in VideoLAN's playlist.

Last edited by Skyalmian (2010-06-13 07:33:33)

Offline

#22 2010-06-13 11:29:43

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: How do Archers play their music?

Tomone wrote:
JohannesSM64 wrote:

mpd with ncmpcpp and some OB binds for media keys using mpc

Why don't you just use keybindings with ncmpcpp? Is there something you can't do with ncmpcpp?

OB = Openbox, these binds are top level, so I can toggle mpd etc without bringing up ncmpcpp.

Offline

#23 2010-06-13 12:45:13

lswest
Member
From: Munich, Germany
Registered: 2008-06-14
Posts: 456
Website

Re: How do Archers play their music?

JohannesSM64 wrote:

OB = Openbox, these binds are top level, so I can toggle mpd etc without bringing up ncmpcpp.

I may be wrong, but I think he was asking why you don't use ncmpcpp instead of mpc in the keybindings.

i.e. ncmpcpp toggle/prev/next/stop instead of mpc toggle/prev/next/stop.  Don't see why it would really make much difference, save giving you the option of working without mpc installed.

As for me, I use ncmpcpp with mpd, and keybindings bound in whatever window manager I am using for toggling playback/skipping/stopping playback.


Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds

Offline

#24 2010-06-13 14:26:00

pokraka
Member
From: Brussels
Registered: 2009-01-15
Posts: 63

Re: How do Archers play their music?

Am I the only one here who listens mainly to real CDs, and even vinyls or the occasional demo tape?
I don't have any audio file on my computer, except the ones I ripped myself from my collection for sharing with friends.
I don't use my computer for listening music, on my system the only thing which can play music is mplayer.

However, since I have many CDs, I keep track of my collection in a text file organized like this :

ARTIST | ISO COUNTRY CODE | YEAR | ALBUM

And the CDs on the shelf are organized this way too (by artists, and then by year of release for albums of the same artist).

Last edited by pokraka (2010-06-13 14:27:37)

Offline

#25 2010-06-13 16:16:12

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: How do Archers play their music?

Thanks for the advice, now I don't need mpc anymore, and it really cleaned up my nowplaying script (ncmpcpp's --now-playing is better suited for scripts than nasty parsing of mpc output)

Offline

Board footer

Powered by FluxBB