WCCChallenge: ShadowMath

·

2 min read

For this week's Creative Code challenge by @sableRalph : Shadow Math, I decided to have colors play with their shadow companion via SonicPi

For this to work I chose the following colors to experiment with and their RGB values:

• ForestGreen = [34,139, 34]
• Auburn = [165, 42, 42]
• LGRY ( Light Golden Roy Yellow) = [250, 250, 210]
``````
Colors & their Shadows
as they roam
as they glow
as they flow
to shine
to the rhythm of time
as they illuminate
to let the negativity escape
as their shadowy component
begin to start to elevate
even though the shadows roam
they strive for this moment
the inner core remains to glow
remains to be
remains to be a presence
on the intergalactic scene
as this is a gift, its own present
``````

: After getting the RGB Values, I used the Shadow Length Equation : Length = height / tan(angle) to get the sounds through

``````
#ForestGreen

ForestGreen = [34,139, 34]

with_fx :ixi_techno do
live_loop :forestGreen do
i = 0
use_synth :pretty_bell
play ForestGreen[i] ,release: 3
sleep [0.5,1,2].choose
if i < 4
i+= 1
end
end
end
``````
``````
#shadow length component
with_fx :ixi_techno do
live_loop :forestGreenShadow do
i = 0
use_synth :pretty_bell
play ForestGreen[i]/Math.tan(70) ,release: 3
sleep [0.25,0.5,1,2].choose
if i < 4
i+= 1
end
end
end
``````

``````
with_fx :vowel do
live_loop :Auburn do
i = 0
use_synth :dull_bell
play Auburn[i] ,release: 3
sleep [0.5,1,2].choose
if i < 4
i+= 1
end
end
end

#shadow length component

with_fx :whammy do
live_loop :AuburnShadow do
i = 0
use_synth :dull_bell
play Auburn[i]/Math.tan(70) ,release: 3
sleep [0.25,0.5,1,2].choose
if i < 4
i+= 1
end
end
end
``````