Tutorial 2: Algorithmic Manipulation🔗
The code below plays the first four notes of the default scale on repeat:
It's possible to manipulate this by adding an array of numbers to the Player object This raises the 4th note played by 2 degrees
And this raises every third note by 2
These values can be laced and grouped together
This behaviour is particularly useful when using the follow method.
You can schedule players to do things This will tell p1 to reverse the notes every 4 beats
You can "chain" methods together by appending them to the end of the original line:
To stop calling "reverse", use never:
Here are a few other methods you can use:
Using stutter will play the same note n number of times with different attributes specified
Rotate will move all the values over by 1 in their order
To randomise the order of the notes, use shuffle