NAKAMURA Toshikazu | 7 Apr 2007 16:02
Favicon

a couple of problems (mp3info and tags)

Hello,

I have been configuring EMMS for a few weeks and have got it to work
just fine, except a couple of problems.

1. mp3info (win32) accepts the filename only after all the other
   arguments. I noticed a similar problem was reported in the mailing
   list and a patch was applied to emms-tag-editor.el but
   emms-info-mp3info.el also needs a change.

2. When I change the filename while editing a mp3 tag and submit the
   change, emms-tag-editor.el causes an error when it calls
   emms-cache-set-function. The order of arguments passed to
   emms-cache-set-function is wrong.

3. When I delete some info items reducing them to null strings and
   submit these changes, emms-tag-editor.el fails to set changed
   values to the tag. In order to make these changes effective, it
   seems different parts of emms-info-mp3info.el and
   emms-tag-editor.el need to be rewritten.

For 1 and 2, I have written a simple patch, which seems to work fine.
The last one is a little tough for me, though I have dealt with it
somehow for the moment. Since I am just a beginner in emacs lisp, I
send the patch for 1 and 2 and would like you to look into the last
one if you can.

Regards,
--

-- 
NAKAMURA Toshikazu
(Continue reading)

Michael Olson | 9 Apr 2007 01:10
Face
Picon
Picon

Now-playing message

I came up with this today, while putting off more-important and
more-boring work.  Let me know what you think.

The idea is to message the description of the currently-playing track
when it changes, checking every `np-interval' (default: 3) seconds.
This is especially useful for Internet radio feeds.

If you're using something other than MusicPD, you'll have to modify
`np-maybe'.  I wasn't sure if any backends were capable of getting the
currently-playing song for radio feeds besides emms-player-mpd and
emms-lastfm, so I didn't bother making this more general.

;;; Every time the song changes, show me its description

(defvar np-interval 3
  "How often (in seconds) to check whether the current song has changed.")

;; Internal
(defvar np-last nil
  "Description for most recently-played track.")
(defvar np-timer nil
  "Timer used by `np-maybe'.")

(defun np-maybe ()
  (emms-player-mpd-show
   nil
   (lambda (buffer desc)
     (when (stringp desc)
       (unless (and (stringp np-last)
                    (string= np-last desc))
(Continue reading)

Michael Olson | 9 Apr 2007 03:34
Face
Picon
Picon

Re: Now-playing message

Michael Olson <mwolson <at> gnu.org> writes:

> (defun np-maybe ()
>   (emms-player-mpd-show
>    nil
>    (lambda (buffer desc)
>      (when (stringp desc)
>        (unless (and (stringp np-last)
>                     (string= np-last desc))
>          (setq np-last desc)
>          (message desc))))))

Oops, that should be:

(defun np-maybe ()
  (emms-player-mpd-show
   nil
   (lambda (buffer desc)
     (when (and (stringp desc)
                (not (string= desc "")))
       (unless (and (stringp np-last)
                    (string= np-last desc))
         (setq np-last desc)
         (message "%s" desc))))))

--

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC
 |_] | \| |_| Reclaim your digital rights by eliminating DRM.
(Continue reading)

Daniel Dehennin | 22 Apr 2007 14:15

Tag Editor

Hello,

I try to use the tag editor and figure some difficulties with the
emms-tag-editor-replace-in-tag.

Is it possible to describe the functionning of this feature please ?

Regards.
--

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x2A408F69


Gmane