oh i see sorry didnt realise it had gone to a second page, its for a guitar control pedal that is sending out midi signals over a usb interface.
the problem i have is with the sections that have "byte" in them (which is only a couple of lines) if you look back you can see the orignal and what i changed it to, to get a successful compile.