Mathober2023_Repeat

Mathober2023_Repeat

Time Repeats

LoopInTime

For the 13th Prompt Of Mathober: Repeating, LoopInTime shall have the time variable be repeated and put in a loop, for time is a repeat of itself.

Coded with Hydra & SonicPi

Poem

Looping Time
Time skipping
As it rewinds
As it fast forwards
As the lines
It serves , moves as a herd
For it repeats
Even when incomplete
For this is how it wakes and sleeps
And reawakes for a new beginning

Video

Code

Hydra

osc(4,1,1).colorama(()=> Math.sin(time) % 5 + (time % 10)/20).
kaleid(()=> Math.tan(Math.hypot(Math.cos(time),0.0001))).
repeat(()=> Math.sin(time)).out()

speed = 0.15

SonicPi

live_loop :dancing do
  use_bpm 120
  with_fx :flanger,decay: 4, amp: 3, feedback: 0.7, mix: 0.7 do
    sample :perc_snap if spread(9,12).tick
    sample :elec_blip2 if spread(7,15).tick
  end
  sleep [0.25,0.5,0.75,1].choose
end

live_loop :snapping do
  use_bpm 120
  with_fx :bitcrusher do
    sample :perc_snap2, beat_stretch: 2 if spread(6,12).tick
    sample :drum_bass_hard, beat_stretch: dice(2) if spread(5,12).tick
    sample :drum_bass_soft, beat_stretch: dice(4) if spread(8,13).tick
  end
  sleep [1,2,4].choose
end

live_loop :electronic do
  use_bpm 120
  with_fx [:whammy,:ixi_techno].choose do
    sample :ambi_sauna, amp: dice(4), beat_stretch: dice(2) if spread(2,5).tick
    sample :elec_blip, amp: dice(4), beat_stretch: dice(2) if spread(4,5).tick
    sample :elec_chime, amp: dice(4), beat_stretch: dice(5) if spread(3,7).tick
  end
  sleep [0.5,1].choose
end