may as well post the patch i guess. actually it just gets the NEXT power of 2, not the nearest, but that is fine for my purpose - which is to decide how many slices to make in a sound file to cut it into individual beats.