
Spike-Ful Realms
For this week's Creative Code Challenge by @sableraph: "Spikes”, Spiteful Realm coded from LiveCodeLab & SonicPi allows Spikes to roam, feel and explore.
Poetry
Spikes Exploring The Edges
Spikes Soaring,
Spikes Ignoring
The boundaries of the sketches
Spikes moving as expression
Leaving pixelated impressions
As they explore
Beyond the fences
Video
Code
LiveCodeLab Visuals
simpleGradient black,black,grey
20 + (time % 10 * 3) times with i
scale Math.cbrt(Math.sqrt(Math.cbrt(time % 10 + 1)))/1.1
rotate Math.cbrt(sin(time) *i),Math.sqrt(cos(time) *i),Math.cbrt(wave(i) /1000)
ball 0.1 * i, Math.cbrt(0.1 / sin(time))/1000, 0.1
move 0, 0.1, 0.1
time % 7 times
rotate sin(time), Math.sqrt(time % 10 + 1), Math.cbrt(Math.cbrt(Math.cbrt(wave(0.01))))
box 0.01, 0.01, 1
time % 7 times
rotate sin(time), Math.sqrt(time % 10 + 1), Math.cbrt(Math.cbrt(Math.cbrt(wave(0.01))))
box 0.01, 0.01, 1
LiveCodeLab Audio
if time % 30 > 15
bpm 88
play "pianoLDChord" + int(random 2) ,'x--xxx-x--x---'
else
bpm 125
play "ride" ,'--x- -xx- --x- -x--xx'
play "pianoRHChord" + int(random 8) ,'x--x-x--x--'
if time % 40 < 20
play 'tranceKick' ,'-x-x ---x x-x- xx---xx'
play "pianoLHChord" + int(random 4) ,'x--x-------xx---'
else
play 'tranceKick' ,'-x-x -x-x---xx'
SonicPi
y = 'livecodelab code from above'
live_loop :remix do
use_random_seed Time.now.to_i/ 5
use_bpm 35
with_fx :ping_pong, mix: [0.1,0.3,0.25,0.45].choose do
sample y, beat_stretch: [0.7,1.2,1.4,1.25,2].tick
sleep [1,2,4,2,4,1,2,8,4].choose
end
end
live_loop :remix2 do
use_random_seed Time.now.to_i/ 6
use_bpm 24
with_fx :vowel, voice: (dice(18) + 1)%4, mix: [0.5,0.7,0.3,0.1].choose do
with_fx :gverb, mix: [0.1,0.3,0.25,0.45].choose do
sample y, pitch_dis: [0.002,0.005].tick, beat_stretch: [1.2,2.3,0.9].choose
sleep [1,2,4,2,4,6,8]
.choose
end
end
end



