1
@title cmus-tutorial 7 14/02/2010 cmus
2
3
4
@h1 NAME
5
6
cmus - C\* Music Player tutorial
7
8
9
@h1 CONTENTS
10
11
Step 1: Starting Cmus
12
13
Step 2: Adding Music
14
15
Step 3: Playing Tracks From The Library
16
17
Step 4: Managing The Queue
18
19
Step 5: The Playlist
20
21
Step 6: Find that track
22
23
Step 7: Customization
24
25
Step 8: Quit
26
27
Step 9: Further Reading
28
29
30
@h1 Step 1: Starting Cmus
31
32
When you first launch cmus (just type `cmus` in a terminal and press Enter) it
33
will open to the album/artist view, which looks something like this:
34
35
@pre
36
+---------------------------------------------------------------------+
37
| Artist / Album             Track                            Library |
38
|                          |                                          |
39
|                          |                                          |
40
|                          |                                          |
41
|                          |                                          |
42
|                          |                                          |
43
|                          |                                          |
44
|                          |                                          |
45
|                                                                     |
46
| . 00:00 - 00:00 vol: 100                     all from library | C   |
47
|                                                                     |
48
+---------------------------------------------------------------------+
49
@endpre
50
51
This is the view where your artists and albums will be displayed.
52
53
54
@h1 Step 2: Adding Music
55
56
Press *5* to switch to the file-browser view so we can add some music. You
57
should see something like this:
58
59
@pre
60
+---------------------------------------------------------------------+
61
| Browser - /home/jasonwoof                                           |
62
| ../                                                                 |
63
| Desktop/                                                            |
64
| MySqueak/                                                           |
65
| audio-projects/                                                     |
66
| audio/                                                              |
67
| bin/                                                                |
68
| config/                                                             |
69
|                                                                     |
70
| . 00:00 - 00:00 vol: 100                     all from library | C   |
71
|                                                                     |
72
+---------------------------------------------------------------------+
73
@endpre
74
75
Now, use the arrow keys, Enter and Backspace to navigate to where you have
76
audio files stored. To add music to your cmus library, use the arrow keys to
77
hilight a file or folder, and press *a*. When you press *a* cmus will move you
78
to the next line down (so that it is easy to add a bunch of files/folders in a
79
row) and start adding the file/folder you pressed *a* on to your library. This
80
can take a while if you added a folder with a lot in it. As files are added,
81
you will see the second time in the bottom right go up. This is the total
82
duration of all the music in the cmus library.
83
84
Note: cmus does not move, duplicate or change your files. It just remembers
85
where they are and caches the metadata (duration, artist, etc.)
86
87
Just to be on the safe side, lets save. Type *:save* and press Enter.
88
89
Note: Cmus automatically saves your settings and library and everything when
90
you quit, so you probably won't use the save command much.
91
92
93
@h1 Step 3: Playing Tracks From The Library
94
95
Press *2* to go to the simple library view. You should see something like
96
this:
97
98
@pre
99
+---------------------------------------------------------------------+
100
| Library ~/.cmus/lib.pl - 31 tracks sorted by artist album discnumbe |
101
| Flying Lizards         . Money (That's What I Want)           02:31 |
102
| Jason Woofenden        . VoR Theme                       2009 01:20 |
103
| Keali'i Reichel      06. Wanting Memories                1994 04:28 |
104
| Molly Lewis            . Tom Cruise Crazy                     03:13 |
105
| NonMemory              . pista1                          2009 03:18 |
106
| NonMemory            01. pista1                    2009-04-21 04:13 |
107
| Ray Charles          06. Halleluja I Love Her So              02:33 |
108
|                                                                     |
109
| . 00:00 - 2:16:25 vol: 100                   all from library | C   |
110
|                                                                     |
111
+---------------------------------------------------------------------+
112
@endpre
113
114
Use the up and down arrow keys to select a track you'd like to hear, and press
115
Enter to play it. Here's some keys to control play:
116
117
Press *c* to pause/unpause
118
Press right/left to seek by 10 seconds
119
Press *<*/*>* seek by one minute
120
121
cmus has some great options to control what plays next (if anything) when the
122
track ends. The state of these settings are shown in the bottom right corner.
123
The first of these shows what collection of tracks (currently "all from
124
library") we are playing. Press *m* to cycle through the different options for
125
this setting. To the right of that (past the "|") cmus shows the state of three
126
toggles. Only toggles which are "on" are shown, so now we only see the *C*.
127
Here are the toggles:
128
129
[C]ontinue
130
131
    When this is off, cmus will always stop at the end of the track. You can
132
toggle this setting by pressing *shift-C*.
133
134
[R]epeat
135
136
    If this is on (and continue is on), when cmus reaches the end of the group
137
of tracks you're playing (selected with the *m* key) it will start again from
138
the beginning. Press *r* to toggle this setting.
139
140
[S]huffle
141
142
    When this is on, cmus will choose a random order to play all the tracks
143
once. Press *s* to toggle this option.
144
145
146
@h1 Step 4: Managing The Queue
147
148
Lets say you're listening to a song, and you want to select which song will
149
play next, without interrupting the currently playing song. No problem! Just go
150
to the song you want to hear next (in any of the views) and press *e*. The
151
queue is FIFO, meaning if you queue up another track, it will play after the
152
one you already had queued up.
153
154
Note: The queue is not effected by the "shuffle" option described above.
155
156
Press *4* to view/edit the queue. This view works and looks a lot like the
157
simple library view. The main difference is that you can change the order of
158
the tracks with the *p* and *P* keys. You can press *shift-D* to remove a track
159
from the queue.
160
161
When cmus is ready to play another track (it's reached the end of a track and
162
the "continue" setting is on) it will remove the top entry from the queue and
163
start playing it.
164
165
166
@h1 Step 5: The Playlist
167
168
The playlist works like another library (like view *2*) except that (like
169
the queue) you manually set the order of the tracks. This can be quite useful
170
if you want to create a mix of specific tracks or if you want to listen to an
171
audio book without having the chapters play when you're playing "all from
172
library".
173
174
The playlist is on view *3*. But before we go there, lets add some tracks.
175
Press *2* to go to the simple library view, go to a track you want and press
176
*y* to add it to the playlist. The only visual feedback you'll get that
177
anything happened is that the hilight will move down one row. Add a few more so
178
you have something to work with.
179
180
Now press *3* to go to the playlist.
181
182
Just like the queue, you can use the *p*, *P* and *D* keys to move and delete
183
tracks from the playlist.
184
185
Note: Changing the view (e.g. by pressing *3*) does not affect what cmus will
186
play next. To put cmus into "play from the playlist" mode, press Enter on one
187
of the tracks in the playlist. To switch modes without interrupting the
188
currently-playing song, you can press *shift-M*.
189
190
191
@h1 Step 6: Find that track
192
193
This step shows various ways you can find track(s) you're looking for.
194
195
Search: Press *2* to be sure you're on the simple library view, then press */*
196
to start a search. Type a word or two from the track you're looking for. cmus
197
will search for tracks that have all those words in them. Press enter to get
198
the keyboard out of the search command, and *n* to find the next match.
199
200
Tree View: Press *1* to select the tree view. Scroll to the artist, press
201
*space* to show their albums, scroll to the album you want, then press tab so
202
the keyboard controls the right column. Press tab again to get back to the left
203
column.
204
205
Filters: See the reference manual (see Further Reading below) for a detailed
206
description on how to quickly (and temporarily) hide most of your music.
207
208
209
@h1 Step 7: Customization
210
211
Cmus has some very cool settings you can tweak, like changing the way tracks
212
are displayed (e.g. to display disk numbers), enabling replaygain support or
213
changing the keybindings.
214
215
Press *7* for a quick overview of the current keybindings and settings.
216
217
To change a setting or keybind, just select it (up/down keys) and press enter.
218
This will put the command for the current setting in the command now (bottom
219
left of your screen), which you can edit to put in a new value/key.
220
221
Please see the reference manual (see Further Reading below) for a detailed
222
description of all the commands and settings available.
223
224
225
@h1 Step 8: Quit
226
227
When you're done, type *:q* and press Enter to quit. This will save your
228
settings, library, playlist and queue.
229
230
231
@h1 Step 9: Further Reading
232
233
Cmus comes with a great reference manual. Now that you've got the basics down
234
it should be intelligible. Try *man cmus* in a terminal. If that's not
235
installed, try opening up `cmus.txt` from the `Doc` directory, or read the latest
236
version online:
237
238
`http://gitorious.org/cmus/cmus/blobs/master/Doc/cmus.txt`
239
240
There are more commands and features not covered hear like loading and saving
241
playlists, controlling cmus remotely with `cmus-remote`, etc.