I am going waaaay out on limb here, but i would rather
spend my energy learning how to use
bioperl instead of debugging a
hand rolled parser. Check out their excellent
tutorial if have not already. We can still help you with this problem, but
please provide some sample data for us to work with.
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)