Making melodies with a computer joining musical phrases
Clicking on composer will generate a melody with the number of notes requested. To hear it select a midi out device on the list.
The process is:
1) Ramdonly get the first phrase from all the available phrases.
2) Get the phrase that would follow the previous one and get a subset of similar phrases using the
porcent requested on Phrase similarity.
3) Get one phrase randomly with the previous subset of phrases and repeat step 2.
Right now you can only hear the music but I will add a staff so you can play it and other styles of music
In the phrases comparison it look's for same notes and their similar times.
Also it extra values similar phrase length and it first and last notes.
In the phrases comparison it looks for:
Similar phrases timing.
Similar last note phrase timing.
Number of notes in the phrase prototype that appear in the other.
Number of notes in the other phrase thet does not appear in the original.
Note comparison does not use octaves(C3, F4) just C, D,...But later there are functions that
can modify the note octave and also the phrase order on some cases.