Вы находитесь на странице: 1из 5

# MACHINE 1 on Sonic Pi for MEJIKUHIBINIU

# by Rangga Purnama Aji - 2019

live_loop :generative12tones do
with_fx :reverb, room: 1 do
use_real_time
sync "/osc/a"
use_synth [:fm, :square, :saw, :beep].choose
12.times do
play scale(:c4, :chromatic, num_octaves: [2,3].choose).shuffle.tick, amp:
[0.8, 0.5, 0.8, 0.8, 0.5, 0.5].choose, pan: rrand_i(0.6, -0.6)
sleep [0.0625,0.125, 0.25, 0.375, 0.5, 0.75, 1].choose
end
end
end

live_loop :microtonaldrone do
with_fx :reverb, room: 1 do
use_bpm 52
use_real_time
sync "/osc/b"
use_synth [:pretty_bell, :fm].choose
2.times do
play rrand(58,82), attack: 3, release: 4, amp: [0.8, 0.5, 0.8, 0.8, 0.5,
0.5].choose, pan: rrand_i(-0.5, 0.5)
sleep [2,3,4,5].choose
end
2.times do
play rrand(58,82), attack: 3, release: 4, amp: [0.8, 0.5, 0.8, 0.8, 0.5,
0.5].choose, pan: rrand_i(0.5, -0.5)
sleep [2,3,4,5].choose
end
end
end

live_loop :noises do
with_fx :reverb, room: 1 do
use_real_time
sync "/osc/c"
use_synth [:noise,:gnoise,:bnoise,:pnoise].choose
play 60, attack: 2, release: 6, amp: [0.8, 0.5, 0.8, 0.8, 0.5, 0.5].choose,
pan: rrand_i(-0.6, 0.6)
end
end

live_loop :choral do
with_fx :reverb, room: 1 do
use_real_time
sync "/osc/d"
use_synth :fm
play chord((ring [:b3,:b4].choose, [:c3,:c4].choose, [:e3,:e4].choose,
[:a3,:a4].choose, [:d3,:d4].choose).shuffle.tick, [:augmented, :M, :m11, :m7,
:dim7, :m9].choose), attack: 3, release: 4, amp: [0.8, 0.5, 0.8, 0.8, 0.5,
0.5].choose, pan: rrand_i(0.6, -0.6)
end
end
live_loop :kutipanpelangiATMuhtar1 do
with_fx :reverb, room: 1 do
with_fx :eq, amp: 0.6 do
use_bpm 90
use_real_time
sync "/osc/e"
use_synth [:chipbass, :fm].choose
play :g
sleep 1
play :e5
sleep 0.5
play :e5
sleep 0.5
play :e5
sleep 0.5
play :e5
sleep 0.5
play :e5
sleep 1.5
play :e5
sleep 0.5
play :d5
sleep 0.5
play :c5
sleep 0.5
play :b
sleep 0.5
play :c5
sleep 0.5
play :d5
sleep 0.5
end
end
end

live_loop :kutipanpelangiATMuhtar3 do
with_fx :reverb, room: 1 do
with_fx :eq, amp: 0.6 do
use_bpm 90
use_real_time
sync "/osc/f"
use_synth [:beep, :fm].choose
play :e5, pan: rrand_i(0.6, -0.6)
sleep 0.5
play :g5, pan: rrand_i(-0.6, 0.6)
sleep 0.5
play :g5
sleep 0.5
play :g5
sleep 0.5
play :e5, pan: rrand_i(0.6, -0.6)
sleep 0.5
play :f5
sleep 1.5
play :f5, pan: rrand_i(-0.6, 0.6)
sleep 0.5
play :e5
sleep 0.5
play :e5, pan: rrand_i(0.6, -0.6)
sleep 0.5
play :e5
sleep 0.5
play :c5, pan: rrand_i(-0.6, 0.6)
sleep 0.5
play :d5
sleep 0.5
end
end
end

live_loop :heterophonytexture do
with_fx :reverb, room: 1 do
use_bpm 78
use_real_time
use_random_seed 23
sync "/osc/g"
32.times do
use_synth :pretty_bell
play scale(:b, :pelog, num_octaves: 1).tick(:opo), release: 0.25, amp: 0.6 if
(spread (ring 7,9,5).tick(:o),16).tick
use_synth :square
play scale(:e, :pelog, num_octaves: 1).tick(:ooso), release: 0.25, amp: 0.6
if (spread (ring 7,9,5).tick(:oo),16).tick(:ee)
sleep 0.125
end
end
end

live_loop :kutipanpelangiATMuhtar2 do
with_fx :reverb, room: 1 do
with_fx :eq, amp: 0.6 do
use_bpm 90
use_real_time
sync "/osc/h"
use_synth [:beep, :fm].choose
play :g
sleep 0.5
play :f5
sleep 0.5
play :f5
sleep 0.5
play :f5, pan: rrand_i(-0.6, 0.6)
sleep 0.5
play :e5
sleep 0.5
play :d5, pan: rrand_i(0.6, -0.6)
sleep 1.5
play :f5
sleep 0.5
play :e5
sleep 0.5
play :d5
sleep 0.5
play :c5
sleep 0.5
play :d5, pan: rrand_i(0.6, -0.6)
sleep 0.5
play :e5, pan: rrand_i(-0.6, 0.6)
sleep 0.5
end
end
end

live_loop :kutipanpelangiATMuhtar4 do
with_fx :reverb, room: 1 do
with_fx :eq, amp: 0.6 do
use_bpm 90
use_real_time
sync "/osc/i"
use_synth [:beep, :fm].choose
play :g
sleep 0.5
play :c5
sleep 1
play :e5
sleep 0.5
play :e5
sleep 0.5
play :d5
sleep 1
play :f5
sleep 1
play :e5
sleep 0.5
play :e5
sleep 0.5
play :d5
sleep 0.5
play :d5
sleep 0.5
play :c5
end
end
end

live_loop :patterntabla1 do
with_fx :reverb, room: 1 do
with_fx :eq, amp: 1.8 do
use_real_time
sync "/osc/j"
16.times do
if one_in(2)
sample [:tabla_tas1,:tabla_dhec, :tabla_ghe4, :tabla_na, :tabla_te1,
:tabla_te_ne, :tabla_na_o].choose, pan: 0.3
sleep [0.25, 0.125].choose
else
sample [:tabla_ke2, :tabla_na, :tabla_ghe1, :tabla_ghe7, :tabla_tas2,
:tabla_ghe4, :tabla_re, :tabla_na_s].choose, pan: -0.3
end
sleep [0.125].choose
end
end
end
end

live_loop :ropletabla do
with_fx :reverb, room: 0.7 do
with_fx :eq, amp: 1.8 do
use_real_time
sync "/osc/k"
8.times do
sample [:tabla_ke2, :tabla_na, :tabla_dhec, :tabla_tas2, :tabla_re,
:tabla_na_s].choose, pan: -0.3
sleep 0.0625
sample :tabla_te_ne, pan: 0.3
sleep 0.0625
sample [:tabla_ke2, :tabla_na, :tabla_ghe1, :tabla_dhec, :tabla_tas2,
:tabla_re, :tabla_na_s].choose, pan: -0.3
sleep 0.0625
sample :tabla_dhec, pan: 0.3
sample :tabla_tas1, pan: -0.3
sleep 0.0625
end
end
end
end

live_loop :patterntabla2 do
with_fx :reverb, room: 1 do
with_fx :eq, amp: 1.8 do
use_real_time
sync "/osc/l"
4.times do
sample :tabla_tas1, pan: 0.3
sample :bd_boom, rate: rrand_i(2, 6)
sleep (ring 0.25, 0.125, 0.5).choose
sample :tabla_na, pan: -0.3
sleep (ring 0.25, 0.125, 0.5).choose
sample :tabla_ke2, pan: 0.3
sleep (ring 0.25, 0.125, 0.5).choose
end
end
end
end

Вам также может понравиться