jcg.sturdy | 18 Aug 13:58

lyric-mode.el

The following code implements a major mode for editing lyric (.lrc)
files, which are used by various music players to display lyrics in
synch with the playing of a song.

There are commands for starting and stopping an ogg123 process, and
the timing output from that process is captured, allowing you to enter
synchronization tags by pressing a key in time with the start of each
line of the song.

If the synchronization tags are already there, the mode uses a
highlighting overlay to show the timing as the song plays, allowing
you to check the tags.  There are also commands for nudging tags
slightly earlier or later.

There are a couple of "todo"s still in the code, but it generally
works OK (at least for me!)

__John

;;; lyric-mode.el --- Major mode for editing lyric (.lrc) files

;; Copyright (C) 2008  John Sturdy

;; Author: John Sturdy <john.sturdy <at> ul.ie>
;; Keywords: multimedia, hypermedia

;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published
by
;; the Free Software Foundation; either version 3, or (at your option)
(Continue reading)

jcg.sturdy | 18 Aug 16:09

Re: lyric-mode.el

Whoops, google groups wrapped lines.  Here's a version squidged to
make it unlikelier to provoke wraps:
;;; lyric-mode.el --- Major mode for editing lyric (.lrc) files

;; Copyright (C) 2008  John Sturdy

;; Author: John Sturdy <john.sturdy <at> ul.ie>
;; Keywords: multimedia, hypermedia

;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published
;; by the Free Software Foundation; either version 3, or (at your
;; option) any later version.

;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

;;; Commentary:

;; Edit lyric files, with playing of the music file at a controlled
;; speed and recording of the synchronization information.

;; This uses the external program `ogg123'.  Potentially, it could use
(Continue reading)


Gmane