Again with Jmusic, I have created drums and bass lines and I have played a little with saxo over those lines.
Bass melody:
For the bass line, there is no tonality defined, just probabilities of steps size and direction. So for each note:
- there is a probability of 25% to change the direction of the melody.
- for step size (number of semitones current and previus note), there is a 50% of probability to continue with the same step. And if we change, it can be either 1,2,3,4,5 or 7 semitones.
- there are maximum and minimum pitch boundaries
Bass ryhthm:
It can either play, quarter notes, swinged eighth notes, and ternary notes. It’s chosen randomly until the maximum number of beats is reached.
Drums:
We have similar rhythm patterns as the ones for bass. But in this case probabilites will be different depending on the drum instrument.
Saxophone:
Once the drums and bass MIDI accompaniment was generated I imported it to Cubase, and used basic VST instruments such as Virtual Bass Unit (vb1) and Drum Sample Unit (LM-7). And I recorded a saxophone solo trying to play somehow according with the virtual band (both drums and bass).
Result:
Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.
Although I am not very proud of the result, it’s been an interesting exercise, I can conclude a few things:
- When music is generated randomly it’s very hard to make something beautiful, the first goal is to prevent it from being bad
- I should try making melody lines with some tonality constraints
- I made a short loop for the bass so I, in order to play a solo, I was able to learn and memorize part of the melody.
- In all drums instruments there was I high probability for not playing. Silence was very important in order to sound better.
- I should improve my saxophone skills
Detailed information about probabilites and the whole process in the source code
