# Genuary2024_Tunes&Flow

# Tunes&Flow

The prompt for **Genuary 2024 Day17 is Inspired by Islamic Art** and decided to use 3 euclidean rhythms seen in Arabic culture

Coded in **SonicPi**

## Poem

```ocaml
The flow
The tunes
The rhythm
As it reaches the rooms
Hidden
To find its glow
```

## Audio

<iframe src="https://audiomack.com/embed/illestpreacha/song/tunes-flow" width="100%" height="252"></iframe>

## SonicPi Code

```ruby
#E(5,6)=[x . x x x x] yields the York-Samai pattern, a popular Arab rhythm, when started on the second

live_loop :do do
  
  use_random_seed Time.now.to_i * 1.5
  
  use_bpm 120
  with_fx :whammy, mix: 0.125 do
    sample :tabla_ghe2 if spread(5,6).reverse.tick #reverse to follow the inspiration
    sleep [0.25,0.5,1,2].choose
  end
end

#E(5,7)=[x . x x . x x] is the Nawakhat pattern, another popular Arab rhythm [30]

live_loop :do1 do
  
  use_random_seed Time.now.to_i / 2
  
  use_bpm 90
  with_fx :ixi_techno do
    sample :tabla_ghe4 if spread(5,7).reverse.tick #reverse to follow the inspiration
    sleep [0.25,0.5,1,2].choose
  end
end


#E(5,9)=[x . x . x . x . x] is a popular Arab rhythm called Agsag-Samai [30]. W

live_loop :do2 do
  
  use_random_seed Time.now.to_i
  
  use_bpm 60
  with_fx :ping_pong do
    sample :tabla_ghe5 if spread(5,9).tick
    sleep [0.25,0.5,1,2].choose
  end
end


```
