# MinaCoding2025_Random

# FlickeredForms

For ***MinaCoding2025*** Prompt 4: **Random**, ***FlickeredForms*** is coded with various random elements in **LiveCodeLab & SonicPi**. Using additional filters to smoothen out the animation.

## Poetry

```ocaml
Flickering into new forms
Flickering as they transform
Shapes and Twists
Assisting into Flips
That manifests more List
```

## Video

%[https://youtu.be/sPcurxc6xRo] 

## Code

### LiveCodeLab

```javascript
y =random(1,5)

ballDetail time % 13
animationStyle motionBlur
rotate time % 5, time / 5 , time % 12
simpleGradient blue,color(time % 200, wave(0.003),10)
scale 0.7 + time % 3 + sin(wave(0.003))


5 times
	rotate 0, 1, time / wave(y)/1000
	move 0.2, wave(y)/100, 0
	wave(y*3)/150 times
		rotate 1
		ball -1, abs(1 - cos(time)), sin(time % 3)
```

### SonicPi

```ruby

n = ring(:c5,:d6,:e4,:a5,:b3) #12
percs = [:drum_cowbell,:perc_snap,:elec_blip, :perc_swash] #11
beeps = [:chipbass, :prophet,:piano,:blade] # 10
sounds = [:ambi_haunted_hum,:loop_mika] #9
use_random_seed Time.now.to_i  #8


live_loop :bassyflowing do  # 7
  
  with_fx :whammy do
    sample sounds.choose, pitch: 5 #6
    use_synth beeps.tick #5
    sample percs.choose #4
  end
  
  with_fx :ixi_techno do
    with_fx :ping_pong do
      play n.tick #3
    end
  end
  
  
  sleep 2 # 2
end  # 1
```
