****************************************************
 powerTunes - MPD control interface for powermate **
****************************************************

**********
 changes *
**********

2004/11/20	version 0.10	first release

*********************
 about this program *
*********************

 powerTunes is a piece of software allowing user to control 
 MPD - Music Player Daemon with powermate. 

***************
 how it works *
***************

 powerTunes uses libmpdclient to get playback information and
 control playback of MPD.
 You can get the latest version of libmpdclient here:
 http://www.musicpd.org/wiki/moin.cgi/libmpdclient
 
 powerTunes is designed to work as a back ground service to keep track of
 MPD and powermate input.
 powerTunes has a following event loop:
 
 while(1){
  get_playback_status_from_mpd()
  get_powermate_input()
  
  if(playback_status_changed){
   change_LED_status()
  }
  
  if(input_from_powermate){
   send_command_to_mpd()
   set_LED_to_wait_status()
  }
  sleep(1)
 }

********
 setup *
********

 Edit powerTunes.c and modify following definition to fit your environment.

 - MPD_TARGET_HOST	: target host running MPD.
 - MPD_TARGET_PORT	: port number of MPD at target host.
 - POWER_MATE		: device name of powermate at local machine.
 
 You can change following definitions if you wish.
 
 - TRACK_MOVE_SENSITIVITY:	sensitivity for next/previous track move.
 - PULSE_PLAYBACK_SPEED:	LED pulse speed at playback time.
 - PULSE_PAUSE_SPEED:		LED pulse speed at pause.
 - PULSE_PROCESSING_COMMAND_SPEED:	LED pulse speed when processing command.
 - LED_BRIGHTNESS: LED brightness when playback is stopped.

 Now compile program by typing "make" and powerTunes binary should be ready.

 Optionally, if you are unsure about functionality of powerTunes,
 you can turn on debug message by uncommenting "POWERTUNE_DEBUG_MODE"

********
 credit*
********

 powerTunes is released under the revised BSD license.
 For the full license, see COPYING.

