Skip to content

Commit

Permalink
Sp snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwilk committed Oct 22, 2016
1 parent d6bd98d commit c1f9662
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 0 deletions.
5 changes: 5 additions & 0 deletions snippets/sonic-pi-mode/do
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#name: do
# --
do
$0
end
5 changes: 5 additions & 0 deletions snippets/sonic-pi-mode/echo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#name: echo
# --
with_fx(:echo, decay: 0.5, mix: 1.0, phase: 0.25) do |e_fx|
$0
end
5 changes: 5 additions & 0 deletions snippets/sonic-pi-mode/fx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#name: fx
# --
with_fx(:${1:name}) do
$0
end
6 changes: 6 additions & 0 deletions snippets/sonic-pi-mode/ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#name: ll
# --
live_loop :${1:name} do
tick
$0
end
6 changes: 6 additions & 0 deletions snippets/sonic-pi-mode/lls
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#name: lls
# --
live_loop :${1:name}, sync: :${2:sname} do
tick
$0
end
56 changes: 56 additions & 0 deletions snippets/sonic-pi-mode/mm_drums
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#name: mm_drums
# --
live_loop :drums, sync: :kick do
with_fx :level, amp: 1.0 do
with_bpm 120 do
k1 = Mountain[/Subkick/,0]
h1,h2 = @slices["Fs3/4"][17], Frag[/hats/,8]
#h1,h2 = @slices["Fs3/8",0] Frag[/hats/,9], Frag[/hats/,8]
s1,s2,s3 = MagicDust[/Hit_HI/,58],Tech[/Drum_Hits/,/snare/,3],Tech[/Drum_Hits/,/snare/,6]
p1 = MagicDust[/_HI/,49]
v1 = "/Users/josephwilk/Dropbox/repl-electric/samples/beauty_and_practical.wav"#Word#Tech[/vocal/,12]
r1 = Tech[/cymbal/,10]
kick = (ring *%w{k1 _ _ _ _ _ _ _})
hat = (ring *%w{_ _ h1 _})
hat2 = (ring *%w{_ _ h2 _
_ _ h2 {path:h2,amp:0.05}
_ _ h2 _
_ _ h2 _})
snare = (ring *%w{_ _ _ _ s1 _ _ _})
snare2 = (ring *%w{_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ s2
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ s3
})
voice = (ring *%w{ _ _ _ _ _ _ _ _
_ _ _ _ _ _ v1 _})
cymbal = (ring *%w{_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ r1 _ _ _ _
})
perc = (ring *%w{_ _ _ p1
_ _ p1 _
_ p1 _ _
_ _ _ _})
(4).times{
tick
smp eval(kick.look), cutoff: 80, amp: 0.5#, rpitch: (ring 12, 24, 24).look
smp eval(hat.look), amp: 5.0# rpitch: 0
smp eval(hat2.look),amp: rand*0.1+0.1

#smp eval(snare.look), amp: 0.75
#smp eval(snare2.look), amp: 0.75
#smp eval(voice.look), finish: 0.5, start: 0.3, rate: 1.0, amp: 1.5
# smp eval(voice.look), finish: 0.40, start: 0.2, rate: 0.125, amp: 1.5
#smp eval(cymbal.look), finish: 0.95, start: 1.0
smp eval(perc.look), amp: rand*0.2
sleep 1/4.0
}
end
end
end
5 changes: 5 additions & 0 deletions snippets/sonic-pi-mode/reverb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#name: reverb
# --
with_fx(:reverb, room: 0.6, mix: 0.4, damp: 0.5) do |r_fx|
$0
end
8 changes: 8 additions & 0 deletions snippets/sonic-pi-mode/rngd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#name: rngd
# --
magic= ring(*%w{
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _}
).look
5 changes: 5 additions & 0 deletions snippets/sonic-pi-mode/slicer
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#name: slicer
# --
with_fx(:slicer, phase: 0.25, probability: 0) do |s_fx|
$0
end
3 changes: 3 additions & 0 deletions snippets/sonic-pi-mode/smp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#name: smp
# --
sample ${1:mod}[/:${2:pat}/,[0,0]].tick(:sample), cutoff: 60, amp: 0.5
5 changes: 5 additions & 0 deletions snippets/sonic-pi-mode/spread
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#name: spread
# --
if spread(1,${1:pat}, rotate: 0).look
$0
end

0 comments on commit c1f9662

Please sign in to comment.