mutate()
Randomly change one note's pitch and one note's duration, in place.
Mod.mutate(phrase)
The new pitch is picked between the phrase's lowest and highest notes; the new duration is picked from those already in the phrase.
Parameters
Mod.mutate(phrase)
| Parameter | Type | Default | Description |
|---|---|---|---|
phrase |
Phrase |
required | The phrase to change. |