tmhglnd / mercury

A minimal and human-readable language and environment for the live coding of algorithmic electronic music.
http://www.timohoogland.com/mercury-livecoding
GNU General Public License v3.0
291 stars 13 forks source link

Fibonacci ring method outputting characters #51

Closed oscarvanleest closed 3 years ago

oscarvanleest commented 4 years ago

It seems that when using the Fibonacci ring method the ring gets filled with characters instead of integers. A look into the variables shows this as well. the note function doesn't take these as valid data

tmhglnd commented 4 years ago

Correct, this is a bug that still needs fixing indeed.

tmhglnd commented 3 years ago

This is fixed in 651a73c605055f966b568e661095d2db635fe836. The fibonacci() function now outputs the values as Numbers, bare in mind that if the value exceeds the maximum 64-bit floating-point it will not return correct values anymore. This will occur after the 78th fibonacci number.