# MinaCoding2024_Fluid

# HoneyMerlot

**For the 13th day of #MinaCoding2024 : "Fluid" ,  *HoneyMerlot*** takes the **Colorscape: \[**[https://colorscape.illestpreacha.com/dipincode-sonification](https://colorscape.illestpreacha.com/dipincode-sonification)\] of turning food into colour then into sound by turning the fluids of Honey & Merlot into a sonification. The sounds are supposed to take into the labour that is done to make these fluids.

## Audio - [https://soundcloud.com/llestreacha/honeymerlot](https://soundcloud.com/llestreacha/honeymerlot)

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

## SonicPi Code

```ruby
#reading of the DipInCodeFirstService
#for csvs larger than 10 mbs use the for reach


require 'csv'

#naming the Dataset DipInCode and going to read the file
Dip = CSV.parse(File.read("C:/Colorscape/DipInCode/SonicPi_CodeBase/Model/DipInCode_FirstService.csv"), headers: true)

#Getting the Ingredients
Honey = Dip[3]
Merlot = Dip[24]

#Dip[foodname][column].to_f , need to.f as it is to float

if Time.now.to_i % 2 == 0
  
  
  with_fx :vowel do
    live_loop :Merlot1 do
      use_random_seed Time.now.to_i / 2
      use_bpm Merlot["Red"].to_f
      sample :sn_dub, rate: dice(Merlot["Yellow"].to_f/Merlot["Key"].to_f)  if spread(Merlot["Blue%"].to_f,Merlot["Green%"].to_f).tick
      sample :ambi_dark_woosh,rate: rrand(Merlot["y2"].to_f,Merlot["Red"].to_f/Merlot["Blue"].to_f)  if spread(Merlot["H-Lab1"].to_f,Merlot["CIE-L"].to_f).reverse.mirror
      sleep [Merlot["x2"].to_f,Merlot["Yellow"].to_f/Merlot["Mangeta"].to_f,Merlot["Saturation2"].to_f/Merlot["Lightness"].to_f].choose
    end
  end
  
  with_fx :ixi_techno do
    live_loop :Honey do
      use_random_seed Time.now.to_i
      use_bpm Honey["Red"].to_f
      with_fx :reverb do
        sample [:perc_bell,:elec_bell,:loop_electric].choose, rate: rrand(Honey["y2"].to_f,Merlot["Red"].to_f/Merlot["Blue"].to_f) if spread(Merlot["H-Lab1"].to_f,Merlot["CIE-L"].to_f).reverse.mirror
        sleep [Honey["Red%"].to_f,Honey["Green%"].to_f/Honey["Red%"].to_f].choose
      end
    end
  end
end

if Time.now.to_i % 3 == 0
  
  with_fx :gverb do
    live_loop :Merlot3 do
      use_random_seed Time.now.to_i / 4
      use_bpm Merlot["Green"].to_f
      sample :elec_blip, rate: dice(Merlot["Yellow"].to_f/Merlot["Key"].to_f)  if spread(Merlot["Blue%"].to_f,Merlot["Green%"].to_f).tick
      sample :ambi_dark_woosh,rate: rrand(Honey["y2"].to_f,Merlot["Red"].to_f/Merlot["Blue"].to_f)  if spread(Merlot["H-Lab1"].to_f,Merlot["CIE-L"].to_f).reverse.mirror
      sleep [Merlot["x2"].to_f,Merlot["Yellow"].to_f/Merlot["Mangeta"].to_f,Merlot["Saturation2"].to_f/Merlot["Lightness"].to_f].choose
    end
  end
  
  with_fx :distortion do
    live_loop :Honey2 do
      use_random_seed Time.now.to_i / 5
      use_bpm Honey["Red"].to_f
      with_fx :reverb do
        sample [:drum_bass_soft,:elec_chime,:glitch_robot,:perc_snap2,:perc_till].choose, rate: rrand(Honey["y2"].to_f,Merlot["Red"].to_f/Merlot["Blue"].to_f) if spread(Merlot["H-Lab1"].to_f,Merlot["CIE-L"].to_f).reverse.mirror
        sleep [Merlot["x2"].to_f,Merlot["Green%"].to_f/Merlot["Blue%"].to_f].choose
      end
    end
  end
end
```
