# NaPoWriMo x NaPoGenMo 2024 - Day 3: Abecedarius & Alliteration

# AlliteratedGlitch

For the third day of NaPoWriMo/NaPoGenMo 2024, A spoken word poem will be performed through a coded audio modification via SonicPi & visuals coded through Hydra.

The Poem format today will be an **Alliterated Abecedarius**, which means the lines in the poem will start in Alphabetical order from A to F and each line will only contain a word starting with that letter.

The Output will be a glitchified spoken word performed numerous times with added filters.

## Poem

```ocaml
Additional  Astromerchants always advantageous
Basically beyond baffling basis
Contradicting controlling cases
Definitely defining dreams
Easily entering entries evoking ease
Foreshadowing framing, finally famous
```

## Video

<iframe width="560" height="315" src="https://www.youtube.com/embed/ItT7ASM2mIM?si=RZ5vYqcYe_l-dJEt"></iframe>

## Code

### SonicPi

```ruby
live_loop :blah do
  use_random_seed Time.now.to_i
  with_fx :wobble, seed: dice(49) + 1 do
    with_fx :flanger, decay: [7,15,15,3].choose, depth: [2,3,1].tick do
      with_fx :whammy, mix: [0.34,0.15,0.67].choose do
        with_fx :distortion, mix: [0.75,0.25,0.15,0.35].choose do
          live_audio :dynamic do
          end
          
        end
      end
      
    end
  end
  sleep 5
end
```

```ruby
live_loop :Vocalization do
  
  # Generate a random pitch
  pitch = rrand(60, 80)
  pitch2 = rrand(60, 80)
  
  # Play a sine wave at the specified pitch
  play pitch, wave: :sine
  play pitch2, pretty_bell: :chipnoise
  
  # Control the duration of the sound
  sleep [0.25,0.5,1,2].choose
end
```

### Hydra

```javascript

osc(0.3,[0.5,0.13,0.25].smooth(),()=> (time %10 +1)/8).
kaleid([4,3,2,1,2,3]).add(noise(1,2,3).pixelate(2500)).
modulateScale(voronoi(0.5,1,2),3).repeat(2,2).scrollX(0.5,-0.5).
modulateHue(osc(1,1,1),2).diff(shape(4,3,1)).scale([0.5,1,2].smooth()).out(o0)


speed = 0.125
```
