write.sample function

Write a PTSample object to an audio file