# mvc

Minimal MPD music visualizer, based on curses. Works by reading the fifo output of an MPD instance.

## Requirements

**No external dependencies** other than **GCC** (or another C99 compatible compiler).

**Optional**: [libmpdclient](https://github.com/MusicPlayerDaemon/libmpdclient) to display current status (song / elapsed time / etc).

The fifo output of MPD needs to be enabled. To do so, simply place this in your *mpd.conf*:

```
audio_output {
    type                    "fifo"
	name                    "my_fifo"
	path                    "/tmp/mpd.fifo"
	format                  "44100:16:1"
}
```

## Building

**Clone the repo:**
```
git clone https://github.com/gallafrancesco/mvc.git
cd mvc/
```

**Build with status display (requires libmpdclient):**
```
make all
```
*Note: without libmpdclient installed, this is equivalent to 'make nostatus'*.

**Build without status display (no external dependencies):**
```
make nostatus
```

Install (to */usr/local/bin/*):
```
sudo make install
```

## Usage

An instance of MPD must be running for mvc to work.

From a console / terminal emulator:
```
mvc
```

**Quitting:** Press q.

