What is segment of time within a piece of music defined by a given number of beats each measure is separated by a bar?​