Debian Codegraph @

README

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 Bongo is a flexible and usable media player for GNU Emacs. If you
2 store your music collection locally and use structured file names,
3 then Bongo is a great way for you to play music from within Emacs.
4
5 Bongo can be installed through MELPA using `M-x package-install'.
6
7 Getting Started
8 ===============
9
10 Though Bongo has certain preferences about how you name the files in
11 your music collection (see below), you should be able to get started
12 right away by runing `M-x bongo RET' and following the instructions.
13
14 Before getting your hands dirty, you might want to skim through the
15 customization group for Bongo (`M-x customize-group RET bongo RET').
16 It might be fun to browse through all of it, but at the moment the
17 most important option is `bongo-enabled-backends', which determines
18 what external programs Bongo will use to play media.
19
20 Bongo will try to find a reasonable set of default backends by looking
21 for the programs `vlc', `mpg123', `ogg123', `speexdec', `timidity',
22 `mikmod' and `afplay'. (If you install one of these programs now, you
23 will have to restart Emacs for Bongo to pick it up automatically.)
24
25 If you want to use another program for media playback, you can easily
26 define your own backend. Basic play/pause functionality works with
27 any backend, whereas other features like seeking require custom code.
28 (The default pause functionality is implemented using `SIGSTOP'.)
29
30 Your Music Collection
31 =====================
32
33 For the best Bongo user experience, your music collection should have
34 hierarchical file names. That is, they should be named according to
35 one of the following templates:
36
37 Artist - 2014 - Album - 01 - Title.mp3
38 Artist - 2014 - Album - Title.mp3
39 Artist - Album - 01 - Title.mp3
40 Artist - Album - Title.mp3
41 Artist - Title.mp3
42 Title.mp3
43
44 So any reasonable combination of artist, year, album, index and title
45 in the right order (less specific to more specific) should be okay.
46 Embedding the metadata in the file name is simple and robust and also
47 speeds up the process of fetching it.
48
49 You don't have to use ` - ' as the separator, but you can't use `/'
50 and have your files in nested directories. The information actually
51 needs to be stored in the basename of each file.
52
53 Many people use tags (e.g., ID3v2 tags or Ogg tags) for their metadata and don't
54 care about file names. Luckily, Bongo comes with a tool called
55 `tree-from-tags.rb`, which can be used to create a hierarchy of nicely-named
56 symlinks into your tagged media collection. The tool depends
57 on [ruby-taglib](https://robinst.github.io/taglib-ruby/) for extracting tag data
58 from files make sure you have it installed before running the tool. Run
59
60 ``` shell
61 ruby tree-from-tags.rb --help
62 ```
63
64 for more details.
65
66 Basic Commands
67 ==============
68
69 To start Bongo, run `M-x bongo RET'. To insert a file or a whole
70 directory of files, type `i'. Then hit `RET' to play one of them.
71 To see a list of available commands, run `M-x describe-mode RET'.
72 Here are some common ones for your convenience:
73
74 `i' Insert a track (or a directory tree full of tracks).
75 `RET' Start playing the track at point (and then continue).
76 `SPC' Pause playback (if supported by the backend).
77 `C-c C-s' Stop playback (or start, if already stopped).
78 `C-c C-n' Start playing the next track.
79 `C-c C-r' Start playing a random track.
80 `s' Seek backward or forward (if supported by the backend).
81 `l' Move point to the current track and recenter.
82 `q' Quit Bongo (bury Bongo buffers and delete windows).
83
84 `c' Copy the track or section under point.
85 `k' Kill the track or section under point.
86 `C-w' Kill all tracks and sections in the region.
87 `y' Reinsert the last copied or killed stuff.
88 `I u' Insert a URI (can be used to play podcasts and radio).
89 `I TAB' List other kinds of tracks that can be inserted.
90
91 `2 C-c C-n' Skip the next track and start playing the one after that.
92 `3 C-c C-s' Stop playback after the next three tracks finish playing.
93 `3 RET' Start playing the track under point, and continue playing
94 tracks, but stop after playing the third track.
95 `C-u C-c C-s'
96 Stop playback after each track finishes playing (this is
97 good when playing movies, for example).
98 `C-u C-u C-c C-s'
99 Stop playback after the track at point finishes playing.
100 `C-u C-c C-n'
101 Play the next track after each track finishes playing
102 (this undoes the effect of `C-u C-c C-s').
103 `C-u C-c C-r'
104 Play tracks in random order.
105
106 Here are some commands that are nice if you use library buffers:
107
108 `h' Switch from playlist to library (or vice versa).
109 `C-u h' Switch from playlist to library (or vice versa), leaving
110 the original buffer visible in another window.
111 `e' Append the track under point or the region (if active)
112 to the end of the playlist buffer.
113 `3 e' Append the track at point and the two after that to the
114 end of the playlist buffer.
115 `E' Insert the track under point or the region (if active)
116 into the playlist buffer, directly below the track
117 that's currently playing.
118 `C-x C-s' Save the current buffer (library buffers are stored
119 using the `.bongo-library' file extension).
120
121 Finally, since you've read this far, here are a few bonus commands:
122
123 `d' Open a Dired buffer containing the track under point.
124 `r' Rename the file corresponding to the track under point.
125 `v' Change audio volume (requires the `volume-el' package).