emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding lisp functions to the playlist


From: Yoni Rabkin
Subject: Re: Adding lisp functions to the playlist
Date: Wed, 08 Jun 2022 15:15:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

I pushed a simple implementation of the idea to the "actions" branch on
the git repo. It is a few functions added to emms.el. Please check it
out.

It operates on the track at point. So once you are over a playlist
track you can eval something like:

(emms-actions-add #'(lambda (track)
                      (ignore track)
                      (emms-volume-raise))
                      'before-action)

...and then also:

(emms-actions-add #'(lambda (track)
                      (ignore track)
                      (emms-volume-lower))
                      'after-action)

Then, when you play the track as part of the playlist, the volume should
be raised before the tracks starts, and lowered after it completes.

Tell me what you think.

-- 
   "Cut your own wood and it will warm you twice"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]