Sonic Pi

We made some music in Sonic Pi this week

We first set up some Live Loops so we can play multiple sounds at once

We got introduced to Ticks. Ticks is a built in function that can step through a scale, chord or a sequence of both


Below we set up to arp melodies to play at the same time

live_loop :arp do
  play (scale :e3, :minor_pentatonic).tick, release: 0.1
  sleep 0.125
end

live_loop :arp2 do
  use_synth :dsaw
  play (scale :e2, :minor_pentatonic, num_octaves: 3).tick, release: 0.25
  sleep 0.25
end

Below is a full track idea that I put together

use_bpm 125

live_loop :kickdrum do
  sample :loop_amen, beat_stretch:4, amp: 0.6
  sleep 4
end

live_loop :kickydrum do
  sample :bd_fat, amp: 1
  sleep 1
end

live_loop :hihat do
  sample :drum_cymbal_soft, amp: 0.4
  sleep 0.5
end

live_loop :snare do
  sleep 1
  sample :drum_snare_soft, amp: 1.3
  sleep 1
end


notes = (ring :E2, :Fs2, :B2, :Cs3, :D3, :Fs2, :E2, :Cs3, :B2, :Fs2, :D3, :Cs3)

live_loop :slow do
  play notes.tick, release: 0.2
  sleep 0.25
end

live_loop :faster do
  play notes.mirror.tick, release: 0.1
  sleep 0.5
end


Previous
Previous

Fruit Catcher

Next
Next

Pico Web Server