This thesis introduces an innovative algorithm to obtain all meaningful nontrivial repeating patterns in music objects. This algorithm extracts so-called significant nontrivial repeating patterns from a melody music object. In addition, the proposed approach also discovers all nontrivial repeating patterns using a “gap-recognized" string-join algorithm during searching. By recognizing the gaps between the consecutive patterns, this algorithm reduces the number of the comparing the position of the repeating patterns. This paper discovers that there exists error for finding the longest repeating patterns of an existing baseline algorithm, which is called H.L.C. algorithm. Computing the results of the complexity illustrate a significant performance improvement using the proposed algorithm in comparison of the H.L.C. algorithm.