# Mathober2023_Kiss

# **DronifiedKiss**

For the 1st  Prompt Of Mathober: **Kissing,**  ***DronifiedKiss*** takes a former piece of ***SonicPi Code*** and sonifies the possible ranges of numbers and their kissed value via the ***beat\_stretch*** function

Kissing Numbers can be found: [https://en.wikipedia.org/wiki/Kissing\_number](https://en.wikipedia.org/wiki/Kissing_number)

## Poem

```ocaml
The numbers, they kiss
Each other they miss
For the numbers intertwine
Sometimes they combine
And These are Some Sounds, They Have Left Behind
```

Audio

<iframe width="100%" height="300" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1643624499&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) · [Mathober2023: DronifiedKiss](https://soundcloud.com/llestreacha/mathober2023-dronifiedkiss)

## SonicPi Code

```ruby
#kissingNumbers Dronified

#The arrays are based on kissing numbers and their lower and upperbounds

number = [1,2,3,4,5,6,7]
lower = [2,6,12,24,40,72,126]
upper = [2,6,12,24,44,78,134]

i = 0


#number

live_loop :dronify1 do
  with_fx :whammy, mix: 0.3 do
    use_bpm 180
    sample :ambi_drone , beat_stretch: number[i%7], amp: rrand_i(3,8)
    sleep number[i%7]
    i += 1
  end
end


#lower bound
live_loop :lowerbound do
  use_bpm 180
  sample [:perc_snap,:perc_swoosh].choose , beat_stretch: lower[i%7]
  sleep number[i%7]
  i += 1
end


#numbers between lower and upperbound
live_loop :upperbound do
  with_fx :ping_pong do
    use_bpm 180
    sample [:ambi_choir,:ambi_dark_woosh].choose , beat_stretch: rrand_i(lower[i%7],upper[i%7])
    sleep number[i%7]
    i += 1
  end
end
```
