A framework to extract pattern from music files