Live code music session using hex beats, event-rate oscillators, bitshifts, and modulus operations.
Live code session using left-shift patterns and double modulus constraints.
(First time using OBS on a new Mac, video is slightly behind the audio…)
Meditative live code music session using recent experimentations with modulating modulus values.
A meditative set using melodic bitshift and hexbeat patterns. Bitshift patterns use calculations such as:
(inum >> (inum & 7)) % 7
Practice session today using additive pitch hexbeat rhythms to generate melodic contours.
Each hexbeat() is generating sequences of 1’s and 0’s which are then multiplied to alternate between things like 7 and 0. So if I add one that alternates between 2 and 0, I get 9,7,2, and 0 as possibilities. Then with say 4 and 0, I get additional combinations. With the patterns of different lengths (I’ve been using mostly prime number lengths) it generates a nice long overall pitch pattern, which is then masked by the rhythmic hexplay() pattern. I then add a choose() to say “play 70% of the time” and I find all of that together is quick to write, generates good variety, but has an underlying structure that is stable. (It’s been on my mind how to mix randomness + stability in interesting ways and I’ve found these explorations have been leading to some interesting pattern generation.)
This desmos graph visualizes an example of a 3-part hex pitch rhythm added together:
(Click on the “Edit on Desmos” link in the graph to turn on/off visualization of the various individual hex pitch rhythms.)