README
1Written by Clayton Otey, Dec 2007
2
3Compilation Instructions:
4First you need libsndfile.
5Download the source from http://www.mega-nerd.com/libsndfile/ into a new directory.
6cd <directory>
7tar xzf *.tar.gz
8./configure
9make
10sudo make install
11This will install into /usr/local by default. See the README and INSTALL files in the libsndfile source distribution for instructions on how to install on non-unix platforms or how to change the install locations.
12If you're running linux and ld is not set up to look in /usr/local/lib, you may get an error like
13"error while loading shared libraries libsndfile.so.1: cannot open shared object file: No such file or directory."
14In this case you will need to add the following line to your /etc/ld.so.conf file (as root):
15/usr/local/lib
16and rebuild your ld.so cache by running 'sudo ldconfig'
17
18Now, cd into the piano src directory and type `make'
19
20Usage:
21Run ./piano to see usage
22When run, a mono .wav file called out.wav is created. If the -b option is used a file called wave.out is generated instead, which is a binary file of floating point numbers in the range [-1:1]. This can be converted to any mono audio format using 3rd party tools e.g. libsndfile.