can pass an output stream.
measure get ks uses the measure's start beat