# Genuary2024_AnHour

# **Weird Tales of 1928 Transport**

The **"Weird Tales of 1928 Transport ''** reimagines **Crazy Plane (1928)** and **Steamboat Willie (1928)** from different angles through modern society, technology and perspectives for the **2024 Public Domain Day Remix**.

The Coding aspect of this piece took around an hour which makes it a good entry for **Genuary 27: Code for an Hour.**

Taking live coding languages to remix the original content such as **SonicPi(musically), Hydra** and **LivecodingYoutube (Visually)** with filters and effects added.

## Poem

```ocaml
Steamboats and Planes
Transporting in different realms
Multiple ways
From airflow to waves
Sometimes simple, otherwise an overwhelm
```

## Video

<iframe src="https://archive.org/embed/wei-weird-tales-of-1928-transport" width="640" height="480"></iframe>

### Youtube Link: [https://youtu.be/VfW5fHPSFHs](https://youtu.be/VfW5fHPSFHs)

## Code

### Hydra

```javascript

//part 1
s0.initScreen()

src(s0)
.pixelate([1000,5000,10000,20000],[2000,4000,50000,100000])
.repeat(100,100)
.diff(src(s0)
.scale(2))
.out()


//part 2

s0.initScreen()

src(s0)
.pixelate([1000,5000,10000,20000],[2000,4000,50000,100000])
.repeat(100,100)
.diff(src(s0)
.scale([0.5,0.75,1,1.25].smooth()))
.out()

//part 3

s0.initScreen()

src(s0).pixelate([15,30,100,500,1000,10000].smooth(),[15,30,45,100,1000,10000].smooth()).out()

speed = 2
```

### SonicPi

```ruby
live_loop :rollback2 do
  #making true random as it goes with the actual time
  #then using the Math.cbrt to make it a different seed ratio then the above function
  use_random_seed Math.cbrt(Time.now.to_i)
  use_bpm 25
  puts Time.now.to_i
  with_fx [:echo,:whammy,:ixi_techno].choose, mix: rrand(0.1,0.6) do
    with_fx :ping_pong, mix: rrand(0.1,0.9) do
      sample "E:/Public Domain Day 2024/Sound/Steamboat_Willie_(1928)_by_Walt_Disney.webm.720p.vp9.wav",beat_stretch: 12, rate: Math.sqrt(dice(25) + 1)/3
      sleep [128,64,96].choose
    end
  end
  sleep [0.5,1,2].choose
end

Spread5  = (spread 11,14).tick


with_fx [:flanger,:ixi_techno].choose, mix: rrand_i(0.1,0.9) do
  with_fx :gverb, mix: [0.1,0.2,0.3,0.2,0.1].tick do
    live_loop :drumming2 do
      use_bpm 24
      sample "E:/Public Domain Day 2024/Sound/Steamboat_Willie_(1928)_by_Walt_Disney.webm.720p.vp9.wav", beat_stretch: 10, rate: 1.25 if Spread5
      sleep [8,16,32,64].choose
    end
  end
end


with_fx :hpf, mix: 0.2 do
  with_fx :hpf, mix: 0.4 do
    with_fx :ping_pong,mix: 0.25 do
      with_fx [:ixi_techno,:gverb,:vowel].choose, mix: [0.26,0.4,0.6].choose do
        with_fx :autotuner, mix: 0.75 do
          use_bpm 15
          live_loop :dance do
            sample "E:/Public Domain Day 2024/Sound/Steamboat_Willie_(1928)_by_Walt_Disney.webm.720p.vp9.wav",rate: Math.sqrt(dice(25) + 1/4)
            sleep [1,2,4,8,16,24,32,64].choose
          end
        end
      end
    end
  end
end


live_loop :rollback3 do
  #making true random as it goes with the actual time
  #then using the Math.cbrt to make it a different seed ratio then the above function
  use_random_seed Math.cbrt(Time.now.to_i) - 2
  puts Time.now.to_i
  with_fx [:echo,:whammy,:ixi_techno].choose, mix: rrand(0.4,0.8) do
    with_fx :ping_pong, mix: rrand(0.1,0.9) do
      sample [:bass_drop_c,:ambi_choir,:ambi_glass_hum,:ambi_dark_woosh,:ambi_glass_rub].choose,rate: Math.sqrt(dice(25) + 1), sustain: dice(4), decay: dice(5)
      sleep [0.5,1,2,3,4].choose
    end
  end
  sleep [0.5,1,2,4].choose
end
```

### LIveCodingYoutube

```javascript
v1 = 'Rh_BbOhLhxg'
v2 = 'aGKj8_Aewks'
v3 = '_7x3oGWK1nk'
v4 = 'pZrgdNdcUW0'

create(2,2,v1)
cue(0,v2)
cue(1, v3)
cue(2,v4)


play(all)
```
