
JewelsFromZenith
For this week's Creative Code Challenge by @sableraph: "Jewels”, JewelsFromZenith coded with #LiveCodeLab #SonicPi is composed of Zenithian Made Jewels.
Poetry
Jewels From Zenith
What are the minerals from the soil beneath?
Is it the amber, emeralds or rubies used?
Which makes this jewellery infused?
Is it the craftsmanship
That allows it to speak
That showcases the peak
Video
Code
LiveCodeLab
turns = 19
detail = 400
speed = 0.5
ambientLight 255, 215, 0 //gold lighting
background black
rotate time % 30 / 5, time % 10 / 5, sin(time % 90) / 5
scale 0.4 + sin(time) / 4
//Jewel 1
detail times with i
if i % 2 == 0
if time % 10 > 5
stroke 255,199,0 // amber
fill 255, 199, 0 //amber
else
fill orange
if i % 6 == 0
if time % 10 > 5
stroke 80, 200,120
fill 80, 200, 120 //emerald
else
stroke 100,90,120
fill 206,90,120
if i % 15 == 0
if time % 10 > 5
stroke 224, 17, 95 // ruby
fill 224, 17, 95
else
stroke 15,82, 190 // other gems
fill 15, 82, 190
rotate 1 , 2, 3
move 2, 3, sin(time)
rotate 0, (turns * i * pi) / detail + (time * speed), 0
if i % 2 == 0
box 0.3, 0.04 + (1 / detail), 2
if i % 15 == 0
ball 0.5, 0.5, 0.5
pushMatrix()
rotate sin(time), sin(time), cos(time)
move 4
scale 0.95
//Jewel 2
detail times with i
if i % 2 == 0
if time % 10 > 5
stroke 255,199,0 // amber
fill 255, 199, 0 //amber
else
fill orange
if i % 6 == 0
if time % 10 > 5
stroke 80, 200,120
fill 80, 200, 120 //emerald
else
stroke 100,90,120
fill 206,90,120
if i % 15 == 0
if time % 10 > 5
stroke 224, 17, 95 // ruby
fill 224, 17, 95
else
stroke 15,82, 190 // other gems
fill 15, 82, 190
rotate 1 , 2, 3
move 1, 2, sin(time)
rotate 0, (turns * i * pi) / detail + (time * speed), 0
if i % 2 == 0
box 0.3, 0.04 + (1 / detail), 2
if i % 15 == 0
ball 0.5, 0.5, 0.5
popMatrix()
SonicPi
live_loop :emom do
use_random_seed Time.now.to_i/6
with_fx [:whammy, :ixi_techno].choose do
use_bpm [5,10,15].choose
sample [:glitch_bass_g,:ambi_piano,:glitch_bass_g ,:drum_bass_hard].choose, decay: dice(5), beat_stretch: 12, amp: dice(4)
sleep [1,2,4].choose
end
end
live_loop :emom2 do
use_random_seed Time.now.to_i/5
with_fx :flanger,mix: [0.3,0.6,0.7].choose do
use_bpm [3,10,20].choose
sample [:glitch_bass_g,:arovane_beat_a ,:glitch_robot2 ,:glitch_bass_g ,:drum_bass_hard].choose,rate: -2, decay: dice(5), beat_stretch: 12, amp: dice(4)
sleep [1,2,4].choose
end
end
live_loop :emom3 do
use_random_seed Time.now.to_i/6
with_fx [:whammy, :ixi_techno].choose do
use_bpm [25,30,45].choose
sample :ambi_choir, decay: dice(5), beat_stretch: 3, amp: dice(4)
sleep [1,2,4].choose
end
end



