This is the FTAP source. I've cleaned up the comments somewhat so that they
should at least describe the current source. Some code under #ifdef DEBUG
has been left in the source, although it is not compiled in.

This code had been run and compiled on RedHat 6.1 and 6.2 GNU/Linux
distributions. Ideally, the system #include files would also be included here
so you could check for differences on your system. 

Let me know of any problems you have compiling this, and how you worked
around them.

FTAP is self contained in the resulting 'ftap' binary, which is copied
to "../bin". There are no auxiliary files. Install it where you want; for 
actual data collection, I recommend running as setuid root, but you can 
evaluate and test FTAP with just normal permissions.

If you do change the source (bug fixes or enhancements) please let me
know, and let me incorporate them into the master source if it seems
appropriate.  In addition, if you are considering porting FTAP to
a different OS, let me know. I don't have expertise in MacOS or Windows
but would certainly help localize OS dependencies so that there could 
be a single "linux.c" module (as well as "windows.c", "OS_360.c", 
"dynix.c", and "mp_m.c" modules), with all other code shared.

FTAP is covered by the GNU license agreement; a copy should be provided in
the parent directory. 

sf (Steve Finney)

finney.17@osu.edu or sf@joplin.psy.ohio-state.edu
"http://dactyl.som.ohio-state.edu/~sf/ftap"


---------------------------------------------------------------------------
CODE FILES

ftap.c: the main (and big) file of FTAP, including the main loop, 
	startup stuff, and data file output.

linux_midi.c: fairly low-level MIDI processing code; mostly Linux specific.

linux_utils.c: Linux-specific utility routines.

lists.c: routines maintaining lists of the MIDI event structures.

map.c: routines for actually doing the pitch and delay mappings. Add
	routines here to add new mappings.

metron.c: routines for generating the structured pacing signals, also
	metronome triggers, masking noise, ACTIVE_SENSE, and click files.

output.c: routines for scheduling and writing MIDI output.

params.c: processing and printing experiment parameters.

triggers.c: routines for trigger events.

---------------------------------------------------------------------------
INCLUDE FILES

tapmidi.h: the main include file.

ftaplimits.h: where some (not all) limits of FTAP are defined. Many of
	these could be changed without ill effect.

linux.h: a few declaratioins of linux-related functions.

params.h: declarations related to parameters. Adding parameters will
	require a change to this file.

