th.fibonacci

€0+
3 ratings

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:

http://oeis.org/A000045

http://oeis.org/A000129

http://oeis.org/A006190

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.

I want this!

includes

th.fibonacci.maxpat
th.fibonacci.maxhelp
th.pell.maxpat
th.pell.maxhelp
th.3bonacci.maxpat
th.3bonacci.maxhelp
Copy product URL

Ratings

5.0
(3 ratings)
5 stars
100%
4 stars
0%
3 stars
0%
2 stars
0%
1 star
0%
€0+

th.fibonacci

3 ratings
I want this!