Table of contents
10 000 Noises
The prompt for Genuary 2024 Day16 is 10000 and the composition coded in SonicPi contains 10000 instances of sound to make 10000 Noises (with Filters)
Poem
10000 noises
10000 voices
10000 here
10000 there
10000 is that the spot,
To say this is a lot?
Audio
SonicPi Code
HeartBeatCounter = []
#Heartbeat variables
HB = 0
HB_2 = 0
HB_3 = 0
live_loop :heartbeat1 do
use_random_seed Time.now.to_i #different random seeds
with_fx :distortion, mix: 0.35 do
with_fx [:ixi_techno,:vowel,:whammy].choose do
use_bpm 25
play 4
play 15
play 7
end
end
HB = HB + 3 #counter
HeartBeatCounter.push(HB,HB,HB) #push the amount of beats in
sleep [0.1,0.2,0.15,0.4].choose
end
live_loop :heartbeat2 do
use_random_seed Math.sqrt(Time.now.to_i)
use_bpm 25
with_fx :ixi_techno, mix: rrand(0.45,0.67) do
with_fx :flanger, mix: rrand(0.05,0.25) do
with_fx :echo, decay: dice(5) do
use_synth :pretty_bell
play 12 #note
end
end
end
HB_2 = HB_2 + 1 #counter
HeartBeatCounter.push(HB_2)
sleep [0.2,0.3,0.25].choose
end
live_loop :heartbeat3 do
use_random_seed Math.cbrt(Time.now.to_i)
use_bpm 25
with_fx :ping_pong do
use_synth :pretty_bell
play [3,24,12].choose #note
play 17
play 10
end
HB_3 = HB_3 + 3 #counter is 3 since there are two beats in this heart beat
HeartBeatCounter.push(HB_3,HB_3,HB_3)
sleep [0.1,0.2,0.3,0.5].choose
end
HB_4 = 0
live_loop :heartbeatcounter do
with_fx :ixi_techno, mix: rrand(0.45,0.67) do
#playing based on the amount of heartbeats that previously were created
play HeartBeatCounter.length() % 45 + 1
play HeartBeatCounter.length() % 25 + 1
play HeartBeatCounter.length() % 35 + 1
end
#will have this counter till it reaches 10 000
HB_4 = HB_4 + 3 #counter
HeartBeatCounter.push(HB_4,HB_4,HB_4)
puts HeartBeatCounter.length()
sleep 0.1
end