# SciArtSeptember2023_Threads

# ThreadingThreads

For the 26th prompt of SciArtSeptember2023: "***Threads***", ThreadingThreads that hold the realm  **LiveCodeLab & Sonicpi**

## Poem

```ocaml
Threads Threading the Fabric
Fabric of Time
From the Joys to Happy Aspects
Aspects that may Include Rragic
But the Fabric can Withstand
As if it is Metallic
As if it is Magic
Making Memories that are Grand
Fabric of Time Between These Lines
```

## Video

<iframe width="560" height="315" src="https://www.youtube.com/embed/g7QAszpuw40?si=hOuBpB8ZqUxj88kv"></iframe>

## Code

### LiveCodeLab

```javascript
if time % 30 < 14
	background black
else
	background white

scale 4.5
animationStyle motionBlur

if time % 30 > 20
	stroke blue
else if time % 30 < 10
	stroke brown

noFill

time % 14 times
	rotate 0, 1, 1
	peg Math.sqrt(time % 16),Math.cbrt(sin(time))
```

### SonicPi

```ruby
#With added effects

with_fx :reverb do
  live_loop :blips do
    use_bpm 120
    sample :elec_blip, pan: rrand(-0.9,0.9), rate: rrand(-1.5, 1.5)
    sleep [0.5,1,2].choose
  end
end

with_fx :ixi_techno do
  live_loop :blips1, sync: :blips do
    use_bpm 60
    sample :elec_blip, pitch: 4, pitch_stretch: 0.4, rate: rrand(-2.5, 2.5)
    sleep [0.5,1,2].choose
  end
end

with_fx :echo do
  live_loop :blips2, sync: :blips do
    use_bpm 120
    sample :elec_blip,amp: dice(5), rate: rrand(0,4)
    sleep [0.5,1,2].choose
  end
end
```
