# Genuary2023_BlackWhite

### **The prompt for Genuary 2023 Day 19 is**

## Black and white

* For this prompt used a mixture of **SonicPi & Hydra** to make **DualityPuddling**
    
* Adding more emphasis to the sound from the previous days
    
* Simple use of a hydra function
    
    ***The Duality of the Puddling***  
    ***Had mentioned meddling***  
    ***but no concept of settling,***  
    ***No concept of idling,***  
    ***For it is not a mere Duality***  
    ***In this set of Personalities***
    

<iframe width="560" height="315" src="https://www.youtube.com/embed/b__tIjUfi24"></iframe>

### Hydra Code

```javascript
//Hydra Code

shape([4, 3, 5, 6, 7], () => Math.sin(time % 14) + 0.5, () => sin(mouse.y))
	.color(10)
	.repeat(() => Math.sin(time % 4) + 1)
	.scale(0.15)
	.modulateKaleid(noise(3, 1, 1))
	.out()

speed = 0.014
```

### SonicPi Code

```ruby
def pianos(bpm,looping,effects,notes1,notes2,samples)
  use_bpm bpm
  live_loop looping do
    with_fx :rbpf do
      with_fx effects, mix: [0.4,0.5,0.6].choose do
        use_synth :piano
        play notes1 ,delay: dice(3), decay: dice(4)
        play notes2,sustain: dice(3), attack: dice(5)
        sample samples, beat_stretch: 0.625, amp: dice(6)
        sleep [0.125,0.25,0.5,0.75,1,2].choose
      end
    end
  end
end

def pianoOverLoad(looping2)
  live_loop looping2 do
    
    pianos(20,:sound1,[:flanger,:whammy,:vowel].tick,[:A2,:C2,:C3,:E4,:G5].choose,[:A4,:C5,:E2,:E4,:G2].choose,:drum_bass_hard)
    pianos(10,:sound2,[:ixi_techno,:vowel].choose,[:A4,:C5,:E2,:E4,:G2].choose,[:A2,:C2,:C3,:E4,:G5,:C2].choose,:drum_bass_soft)
    pianos(20,:sound3,[:gverb,:ixi_techno,:wobble].choose,[:A2,:C2,:C3,:E4,:G5,:C2,:E4].choose,[:A4,:C5,:E2,:E4,:G2].choose,:tabla_ghe2)
    pianos(10,:sound4,[:flanger,:vowel,:ping_pong].choose,[:A4,:C5,:E2,:E4,:G2].choose,[:A2,:C2,:C3,:E4,:G5].choose,:tabla_ghe1)
    
    sleep [0.25,0.5,0.75,1].choose
    
  end
  
end

pianoOverLoad(:overload1)
pianoOverLoad(:overload2)
pianoOverLoad(:overload3)
```
