The OP already had the data in memory, and wanted to pipe that data directorydirectly to the player without the use of a temporary file. They even replied that someone solved the problem. When you respond, you really should read all the replies given before adding your own.
UPDATE: corrected silly typo.
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)