I'd like to write a function that places a mark (and or trims etc) at the position of the first beat in a song, i.e. the first kick drum most likely. What is the best way to detect (for example) the first "boom" in a typical 4/4 dance rhythm? Are more sophisticated beat sensing operations possible in snd, such as being able to locate a snare?