2.times do play 60 sleep 1 play 62 sleep 1 play 64 sleep 1 play 65 sleep 1 play 67 sleep 1 play 67 sleep 1 play 67 sleep 2 end alg=67 2.times do play alg+0 sleep 1 play alg+2 sleep 1 play alg+4 sleep 1 play alg+5 sleep 1 play alg+7 sleep 1 play alg+7 sleep 1 play alg+7 sleep 2 end alg=67 aeg=0.5 2.times do play alg+0 sleep aeg play alg+2 sleep aeg play alg+4 sleep aeg play alg+5 sleep aeg play alg+7 sleep aeg play alg+7 sleep aeg play alg+7 sleep aeg*2 end ##### alg=67 aeg=0.5 in_thread do 2.times do play alg+0 sleep aeg play alg+2 sleep aeg play alg+4 sleep aeg play alg+5 sleep aeg play alg+7 sleep aeg play alg+7 sleep aeg play alg+7 sleep aeg*2 end end in_thread do 4.times do play alg+0 sleep aeg play alg+4 sleep aeg play alg+7 sleep aeg play alg+4 sleep aeg end end in_thread do 8.times do play alg-12 sleep aeg*2 end end ############### alg=67 aeg=0.5 in_thread do 2.times do play alg+0 sleep aeg play alg+2 sleep aeg play alg+4 sleep aeg play alg+5 sleep aeg play alg+7 sleep aeg play alg+7 sleep aeg play alg+7 sleep aeg*2 end end srand(Time.now.to_i) #juhuslikud kolmkõla noodid in_thread do 4.times do #juhuslik=[0, 4, 7].sample(1, random: Random.new_seed) juhuslik=[0, 4, 7][(Time.now.to_f*1000).to_int % 3] #juhuslik=[0, 4, 7].choose #juhuslik=[0, 4, 7].sample(4) #puts (Time.now.to_f*1000).to_int play alg+juhuslik sleep aeg play alg+juhuslik sleep aeg play alg+juhuslik sleep aeg play alg+juhuslik sleep aeg end end #kolmkõla noodid in_thread do 4.times do play alg+0 sleep aeg play alg+4 sleep aeg play alg+7 sleep aeg play alg+4 sleep aeg end end #bass in_thread do 8.times do play alg-12 sleep aeg*2 end end ########## use_synth :kalimba play 60 sleep 1 use_synth :bass_foundation play 48 sleep 1