WCCC_PrideFlag
Kofi / Illestpreacha
1 min read
Table of contents
ColorsOnTheSonic
For this week's Creative Code challenge by @sableRaph:"Pride Flag", ColorsOnTheSonic coded in SonicPi remixes the following :
PieingTheSonic (https://blog.illestpreacha.com/minacoding2024freecoding)
by having several elements controlled by the values of the colors contained in the flag as well as layering different speeds to represent the amount of colors .
Poem
Humans aren't Monolith
for what is beneath the surface, sometimes hidden
Is what has a joyous rhythm
That is with in
Audio
SonicPi Code
#Colors in percentage
red = [228/255,3/255,3/255]
orange = [1,140/255,0]
yellow = [1, 237/255, 0]
green = [0,128/255,38/255]
indigo = [25/255,25/255,112/255]
violet = [115/255,41/255,130/255]
def sounds (bpm,color,loop,synth1,synth2,sample1,timer)
#array of notes
x = [[:D4,:Gs5, :D1],[:A4,:Cs5, :E1] ,[:B4,:Ds2, :B3], [:A3,:Cs2,:Cs4],[:F3,:Ds2,:Bs4],[:C4,:A3,:A2]]
use_bpm bpm
live_loop loop do
counter = x.choose #counter
use_random_seed (Time.now.to_i)/timer #random seed
with_fx [:level,:whammy,:vowel,:ping_pong].choose, mix: color.choose do #effects
use_synth [synth1,synth2,:piano].choose #synth
play color.tick * 128 # notes go by the color percentage
sample sample1, beat_stretch: color.tick + 0.1, rate: color.tick * rrand(-1,1) + 0.1 #to add in the 0s
sleep color.choose + 0.5
play choose(counter) ,amp: color.tick + 0.1 #
sleep color.tick + 0.1 #color affects here
end
end
end
sounds([15,60,120,240].tick,red,:burdy,:chiplead,:pretty_bell,:guit_e_slide,1)
sounds([15,30,60,240].tick,orange,:berdy,:prophet,:piano,:guit_e_slide,2)
sounds([15,60,120].tick,yellow,:birdy,:hollow,:piano,:ambi_piano,3)
sounds([60,30,240].tick,green,:bordy,:prophet,:pretty_bell,:elec_bong,4)
sounds([30,60,120,360].tick,indigo,:bardy,:hollow,:prophet,:ambi_piano,5)
sounds([30,60,120,240].tick,violet,:byrdy,:piano,:piano,:ambi_piano,5)
0
Subscribe to my newsletter
Read articles from Kofi / Illestpreacha directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by