The algorithm can then compare between our musical phrases and that beautiful melody, and select only the phrases that are most similar to it.
O algoritmo pode, então, comparar nossas frases musicais e aquela bela melodia, e selecionar só as frases mais parecidas com ela.