Using emms-tag-editor.el, emms can set tag informations of tracks and write them back to the file with the help of external programs, such as `mp3info', `vorbiscomment'.
Use the keybinding E to edit the tags of track under point in the
playlist or all marked tracks (see Markable Playlists for how to
mark tracks). The track's tag informations are listed in a special
buffer `*EMMS-TAGS*' in text format. Field names are marked in bold
face and are not editable. Any tag information is placed behind an
equal sign and is changable. A special field `name' is the track's file
name. If any change is made in this field, the track's file will be
renamed to the new name. When you finished editing the tag infos use
C-c C-c (which calls emms-tag-editor-submit-and-exit
) to
submit the changes and close the `*EMMS-TAGS*' buffer.
There are a few commands to perform changes on all tracks.
Set TAG to VALUE in all tracks.
If transient-mark-mode is turned on, you can apply the command to a selected region.
If `transient-mark-mode' is on and the mark is active, the changes will only take effect on the tracks in the region.
Query and replace text in selected TAG.
For example, if the info-title tag is selected, then only perform replacement in title tags.
If `transient-mark-mode' is on and the mark is active, the changes will only take effect on the tracks in the region.
Transpose value of TAG1 and TAG2.
If `transient-mark-mode' is on and the mark is active, the changes will only take effect on the tracks in the region.
Make modified tags take affect.
With prefix argument, bury the tag edit buffer.
If you want to extend the tag editor to work with file formats other than `mp3' and `ogg', have a look at these variables.
This variable determine how to insert track fields to `emms-tag-editor-edit-buffer'. Emms tag info editable fields is usually determined by the extension of track name. The variable `emms-tag-editor-tags' contains all tags that emms track may have. A single charactar is assigned to the tag to make the `emms-tag-editor-formats' easier to generate.
To write tags to track file, an extern program should specified in this variable.
If the external program has an interface like `mp3info', you don't have to write a function. Take `mp3' and `ogg' as example.
The tag editor is also capable to rename the file of the track at point or all files of the marked tracks according to the value this variable.
When `emms-tag-editor-rename' is invoked the track's file will be renamed according this format specification. The file extension will be added automatically.
It uses the format specs defined in
emms-tag-editor-tags
.The default value is "%a - %l - %n - %t", so that files are named
<Artist> - <Album> - <Tracknumber> - <Title>.<extension>
after renaming.
To perform the renaming put point on the track you want to rename or mark some tracks. Then hit R which calls this function: