Patent ID: 7378588

Claim:
A music search method comprising: (a) Extracting target difference sequences for each piece of music in the database, in which each element is a pair of adject pitch difference and adjacent span ratio from each piece of music in the database; (b) Extracting a query difference sequences in which each element is a pair of adjacent pitch difference and adjacent span ratio from the input melody; (c) Defining the misalignment penalty of each misaligned element between first and last aligned elements as a function in proportion to its relative span-ratio, or defining it as 0 if unlimited missing or extra notes are allowed; (d) Calculating the minimum distance among all possible alignments between the query sequence and the target sequence, where the distance of an alignment is defined as the sum of distances of aligned elements and misalignment penalties; (e) Retrieve information associated with the target sequences with a distance smaller than a threshold.