Skip to main content

Command Palette

Search for a command to run...

MinaCoding2026_Music

Morning Code VIbes

Updated
3 min read
MinaCoding2026_Music

MeshMashSounds

For MinaCoding2026  Prompt 2: Music, Prompt 21: Morning &  Prompt 27: Wabi Sabi, MeshMashSounds  is coded in SonicPi  explores/embraces the imperfections occurring in the sound(Wabi Sabi) while being coded in the morning.

Poem

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

IllestPreacha · MeshMashSounds

https://soundcloud.com/llestreacha/meshmashsounds?si=ec990febebbf4ce18e9a3f57d26a82f7&utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing

SonicPi Code

def shadowColor(hue,loop,synth,synth2,effect,bpmer,timer)
  
  with_fx effect.tick, mix: [0.45,0.6,0.7].choose do
    i = 0 #counter to iterate between the 3 values
    j = i + 1
    live_loop loop do
      use_bpm bpmer.tick
      use_random_seed Time.now.to_i / timer
      use_synth synth
      play (hue[i]/Math.tan(70)) / 3 ,attack: dice(2)
      play ((hue[i]/Math.tan(40)).abs)/3 ,decay: dice(2)
      use_synth synth2.choose
      play chord([hue[0]/(j*2),hue[1]/(j*2.5),hue[2]/(j)].choose, :minor).choose, sustain: 2,release: rrand(1, 2)
      sleep [0.5,1,2].choose
      if i < 2
        i+= 1
      else
        i = 0
      end
      
    end
  end
end


#colorpalette1
stromboli =  [44 + dice(20),70,66]
hampton = [230,209,169]
teak = [180,150,109]


shadowColor(stromboli,:stromboli,:piano,[:dark_ambience,:beep],:whammy,[120,90,60],4)
shadowColor(hampton,:hampton,:piano,[:dull_bell,:zawa],:ixi_techno,[360,120],5)
shadowColor(teak,:teak,:piano,[:winwood_lead,:supersaw],[:gverb,:ixi_techno,:echo],[60,240],6)
def shadowColor(hue,loop,synth,synth2,effect,bpmer,timer)
  
  with_fx effect.tick, mix: [0.45,0.6,0.7].choose do
    i = 0 #counter to iterate between the 3 values
    j = i + 1
    live_loop loop do
      use_bpm bpmer.tick
      use_random_seed Time.now.to_i / timer
      use_synth synth
      play (hue[i]/Math.tan(70)) / 3 ,attack: dice(2)
      play ((hue[i]/Math.tan(40)).abs)/3 ,decay: dice(2)
      use_synth synth2.choose
      play chord([hue[0]/(j*2),hue[1]/(j*2.5),hue[2]/(j)].choose, :minor).choose, sustain: 2,release: rrand(1, 2)
      sleep [1,2,4,8].choose
      if i < 2
        i+= 1
      else
        i = 0
      end
      
    end
  end
end


#colorpalette1
stromboli =  [44 + dice(20),70,66]
hampton = [230,209,169]
teak = [180,150,109]


shadowColor(stromboli,:stromboli,:piano,[:dark_ambience,:beep],:whammy,[120,90,60],4)
shadowColor(hampton,:hampton,:piano,[:dull_bell,:zawa],:ixi_techno,[360,120],5)
shadowColor(teak,:teak,:piano,[:winwood_lead,:supersaw],[:gverb,:ixi_techno,:echo],[60,240],6)
def shadowColor(hue,loop,synth,synth2,effect,bpmer,timer)
  
  with_fx effect.tick, mix: [0.45,0.6,0.7].choose do
    i = 0 #counter to iterate between the 3 values
    live_loop loop do
      use_bpm bpmer.tick
      use_random_seed Time.now.to_i / timer
      use_synth synth
      play (hue[i]/Math.tan(70)) / 3 ,attack: dice(2)
      play ((hue[i]/Math.tan(40)).abs)/3 ,decay: dice(2)
      use_synth synth2
      play chord([hue[0]/2,hue[1]/3,hue[2]/1.5].choose, :minor).choose, sustain: 2,release: rrand(1, 2)
      sleep [1,2,4,8].choose
      if i < 2
        i+= 1
      else
        i = 0
      end
      
    end
  end
end

#colorpalette1
stromboli =  [44 + dice(20),70,66]
hampton = [230,209,169]
teak = [180,150,109]


shadowColor(stromboli,:stromboli,:piano,:dark_ambience,:whammy,[120,90,60],4)
shadowColor(hampton,:hampton,:piano,:dull_bell,:ixi_techno,[360,120],5)
shadowColor(teak,:teak,:piano,:winwood_lead,[:gverb,:ixi_techno,:echo],[60,240],6)
def shadowColor(hue,loop,synth,synth2,effect,bpmer,timer)
  
  with_fx effect.tick, mix: [0.45,0.6,0.7].choose do
    i = 0 #counter to iterate between the 3 values
    live_loop loop do
      use_bpm bpmer.tick
      use_random_seed Time.now.to_i / timer
      use_synth synth
      play (hue[i]/Math.tan(70)) / 3 ,attack: dice(2)
      play ((hue[i]/Math.tan(40)).abs)/3 ,decay: dice(2)
      use_synth synth2.choose
      play chord([hue[0]/2,hue[1]/3,hue[2]/1.5].choose, :minor).choose, sustain: 2,release: rrand(1, 2)
      sleep [1,2,4,8].choose
      if i < 2
        i+= 1
      else
        i = 0
      end
      
    end
  end
end

use_synth 
#colorpalette1
stromboli =  [44 + dice(20),70,66]
hampton = [230,209,169]
teak = [180,150,109]


shadowColor(stromboli,:stromboli,:piano,[:dark_ambience,:beep],:whammy,[120,90,60],4)
shadowColor(hampton,:hampton,:piano,[:dull_bell,:zawa],:ixi_techno,[360,120],5)
shadowColor(teak,:teak,:piano,[:winwood_lead,:supersaw
],[:gverb,:ixi_techno,:echo],[60,240],6)