ScratchData LogoScratchData
Back to crkcity's profile

Irrational Music (π, Phi, e spirals)

CRcrkcity•Created May 29, 2024
Irrational Music (π, Phi, e spirals)
11
7
106 views
View on Scratch

Instructions

Try different note thresholds. Dots crossing that line play note. Note's pitch is dot's x position. Listen to tones Pi generates. Try also "e" or φ (golden ratio phi). Those are irrational #s generating spirals. Step size also affects the spirals and music.

Description

Builds on my earlier pi versus phi turn angle project. A turn of "1" is just a full 360 degree turn, 0.25 is 90 degrees, etc. Buttons select irrational numbers π, φ or e (pi, golden ratio, or e). With the colors, notice the interesting spiral patterns you can find with Phi. Count of clockwise and counterclockwise spirals both are Fibonacci numbers and their ratio approximates phi. But what patterns can you find with pi (none). Yet even pi spirals around filling space a bit (easier to see in turbowarp, allowing infinite clones, needed with smaller step). With pi, seven colors work with the seven spiral arms, because the closest denominator is 22/7. Clones move out from center, each new clone turns the amount you specified, relative to the previous clone. If you set it to 0.2 (1/4 a turn) or 0.75 (3/4) and four arms result. Pick 1/8 or 5/8 of a turn, eight arms result. Those are rational numbers. Irrational numbers, like pi or the golden ratio, have no whole number denominator, so you don't get straight arms. However, pi is closely approximated by 22/7, so 7 arms result, albeit curved. But the golden ratio isn't so closely approximated by any one or two small whole number fractions. This comparison of π vs φ shows that that φ (golden ratio) is more irrational. Clones making golden ratio turns always find a new place in between others clones, just as the golden ratio falls in between ratios of successive Fibonacci numbers. More irrational than π but less irrational than φ is the number e, also called Euler's number. We compare also 22/7 because it is often used as a rough approximation to π. Notice it results in 7 perfectly straight arms rather than the 7 curved arms resulting from π.

Project Details

Project ID1029250705
CreatedMay 29, 2024
Last ModifiedMay 31, 2024
SharedMay 29, 2024
Visibilityvisible
CommentsAllowed