The prompt for Genuary 2024 Day 6 is Screensaver and Day 10 is Hexagonal
To bring SavingScreen to life, I have coded it in #SonicPi and #Hydra
Hydra provides the animation for the Screensaver and SonicPi delivers a saving of the screen type of soundscape through the equations used in regular Hexagons
Poem
SavingScreensErasing the monotone
AspectofWaitingAs the Screen is saving
Not wanting our Eyesto be AloneTo see what goes next in the Scene
#area of regular hexagon#(3 * Math.sqrt(3) * s**2)/2defhexagonarea(s)
puts (3 * Math.sqrt(3) * s**2)/2return (3 * Math.sqrt(3) * s**2)/2enddefhexagonperimeter(sides)return sides * 6end
live_loop :hexasoundsdo
use_random_seed (Time.now.to_i)/2#looping the area of hexagons which sides are between 1 and 9
with_fx :distortion, mix: rrand(0.3,0.6) do
use_synth [:piano,:chipbass].choose
play hexagonarea([1,2,3,4,5,6,7,8,9].tick), pitch: hexagonperimeter([1,2,3].choose)
end
sleep [0.5,0.75,1,2].choose
end
live_loop :hexasounds2do
use_random_seed (Time.now.to_i)/3#looping the area of hexagons which sides are between 1 and 9
with_fx :echo, decay: dice(3) do
use_synth [:piano,:chipbass].choose
play hexagonarea([1,2,3,4,5,6,7,8,9].choose), pitch: hexagonperimeter([1,2,3].tick)
end
sleep (Time.now.to_i % 4 + 1)/1.5end