<<Back/Retour

Movulation

Le 17 novembre 2021
9 visiteurs

Installation visuelle, sonore et fictionnelle. Conservatoire de Bourges

Oeuvre fictionnelle d’accompagnement :

Movulations

Réalisation sous Sonic Pi, Rapsberry pi3

Code Sonic pi associé :

sample_path = "C:/Users/jean/Desktop/"
#use_random_seed 552025
rndseed = Time.now.year*10+Time.now.day*30+Time.now.hour*24+Time.now.min*60+Time.now.sec
print rndseed
use_random_seed rndseed

# Chaque sample doit être d'environ 30s
live_loop :movulation do
 movulation_sample = [sample_path + "mix.wav"].choose
 movulation_begin = rand(0.90)
 movulation_ampli = rand(4)
 movulation_pitch = rand_i(24)
 with_fx :echo, amp: [(Time.now.hour / 23.1), (Time.now.min / 59.1)].choose, mix: (Time.now.min / 100.1), decay: (Time.now.min % Time.now.day + 0.1) do
   with_fx [:distortion, :krush, :reverb, :tanh, :whammy].choose do
     with_fx  :pitch_shift, pitch: movulation_pitch do
       sample movulation_sample, attack: 1, amp: movulation_ampli + 1, rate: [0.01, 0.025, 0.05, -0.05, -0.025, -0.5].choose, start: movulation_begin, finish: movulation_begin + [rand(0.09), 0.05, 0.05, 0.09].choose
     end
   end
 end
 sleepduration = [1,2,2,8,8,8,8,8,8,8,8,16,16,16,16,16,32,32,64,64,128].choose
 #sleepduration = [8].choose
 sleep sleepduration
end
<<Back/Retour