# MinaCoding2025_Nearby

# PianoPitchInspecting

For ***MinaCoding2025* Prompt 14: Nearby, PianoPitchInspection** is coded in **SonicPi** and exploring the how a nearby piano, may be pitchy & glitched out.

## Poem

```ocaml
What Pitch
Fits this scenario?
When inspecting this audio,
Does it mirror what we think
Does aspects have an ability to mimic,
Or does it propose a switch?
```

## Audio

<iframe width="100%" height="300" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/2113919433&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>

[IllestPreacha](https://soundcloud.com/llestreacha) · [PianoPitchInspection](https://soundcloud.com/llestreacha/pianopitchinspection)

## SonicPi Code

```ruby

def pianosounds (loop,timer,speed,effect,sound,sust)
  live_loop loop do
    
    use_random_seed Time.now.to_i / timer
    use_bpm speed
    with_fx :slicer, phase: rrand(0,16) do
      with_fx effect do
        use_synth :piano
        play sound.choose, sustain: dice(sust)
      end
    end    
    
    sleep [0.5,1,2].choose
  end
end


pianosounds(:play1,4,[140,70,35,19,23].tick,[:ixi_techno,:gverb].tick,[14,175,220,54,48],5)
pianosounds(:play2,5,[140,70,35,19].choose,[:whammy,:echo].choose,[175,75,210,154,13,98],3)
pianosounds(:play3,6,[140,70,35,19].tick,[:ixi_techno,:gverb,:whammy,:vowel].tick,[15,20,45,75,125,189,210],1)
pianosounds(:play4,7,[140,70,220,19,8].choose,[:flanger,:vowel].choose,[113,7,190],2)
```
