th.fibonacci
You may download this patch for free, but if you enjoy my patches I really appreciate a donation for my efforts! Please consider supporting me by becoming a patron: http://www.patreon.com/timohoogland
Install Instructions
- Unzip the file and place the entire folder under ~/Documents/Max8/Packages
- Restart Max
- File > Package Manager > Installed Packages > th.integersequences > Launch
About
This package contains objects to generate integer sequences. Integer sequences are very useful for algorithmic composition techniques, to generate rhythms, melodies, harmonies and more. The objects currently included are:
-
th.fibonacci: . An abstraction that generates the fibonacci sequence F(n) = F(n-1) + F(n-2). The ratio between consecutive numbers in the fibonacci sequence tends towards the Golden Ratio (1+√5)/2.
-
th.pell: . An abstraction that generates the pell sequence F(n) = 2*F(n-1) + F(n-2). The ratio between consecutive numbers in the pell sequence tends towards the Silver Ratio 1 + √2.
-
th.3bonacci: . An abstraction that generates the 3-bonacci sequence F(n) = 3*F(n-1) + F(n-2). The ratio between consecutive numbers in the 3-bonacci sequence tends towards the Bronze Ratio (3 + √13) / 2.
The package uses the bignumber.js library to handle large integer numbers in javascript. The output is a list of strings to make sure the integers remain intact. When setting the second inlet to perform modulo operation on the sequence the output will switch to list of integers and will give you the so called Pisano periods. Second outlet gives an integer for the length of the pisano period, this length is -1 when the total list length is not long enough to find the length of the period.
References:
https://www.youtube.com/watch?v=7lRgeTmxnlg&t=3s&frags=pl%2Cwn
https://www.youtube.com/watch?v=Nu-lW-Ifyec&frags=pl%2Cwn
If you have any questions, comments, bug-reports or suggestions. Please feel free to contact me via info@timohoogland.com.
License:
This software is licensed under the GNU Lesser General Public License.
includes