Per Nørgård is a Danish composer with an interesting catalogue. Part of his compositional style is defined by what he called the infinity series, which is an integer sequence that he used on intervals, rhythms, etc.
Here is the code for its implementation in Antescofo within MaxMSP. The code is rather simple and could probably be optimized. I’ve created two different “modes”, or methods to use the integer sequence. One of the things I have added though is an implementation that uses the Bach external (check it out) which lets us visualize it better than with the default Max objects.
Another added element is the possibility to distort the series by a specific factor which creates interesting melodies.
With a few changes to the code it would be easy to adopt it to any other programming language as well as use it in many different ways. If you find any bugs just comment on here and I’ll try to fix them.
Download the patch here: infinity_V1