Skip to content

Commit b86896c

Browse files
committed
Examples - clean up syntax
1 parent 9359a6b commit b86896c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Coded by Sam Aaron
22

33
loop do
4-
sample :perc_bell, rate: (rrand 0.125, 1.5)
4+
sample :perc_bell, rate: rrand(0.125, 1.5)
55
sleep rrand(0.1, 2)
66
end

etc/examples/illusionist/filtered_dnb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Coded by Sam Aaron
22

3-
with_fx(:rlpf, cutoff: 10, cutoff_slide: 4) do |c|
3+
with_fx :rlpf, cutoff: 10, cutoff_slide: 4 do |c|
44
loop do
55
sample :bass_dnb_f, amp: 5
66
sample :loop_amen, amp: 5

etc/examples/wizard/shufflit.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
load_sample :ambi_lunar_land
66
sleep 1
77

8-
live_loop :travelling do |idx|
8+
live_loop :travelling do
99
with_fx :echo, phase: 0.125, mix: 0.8 do
1010
use_synth :beep
1111
notes = scale(:e3, :minor_pentatonic, num_octaves: 1)
@@ -28,7 +28,7 @@
2828
end
2929

3030
live_loop :shuff, auto_cue: false do |idx|
31-
with_fx :hpf, cutoff: 10 do |f|
31+
with_fx :hpf, cutoff: 10 do
3232
8.times do
3333
sleep 0.25
3434
sample :bd_tek, amp: factor?(idx, 8) ? 6 : 4

etc/examples/wizard/tilburg.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
end
1212

1313
with_fx :reverb, room: 1 do
14-
live_loop :lands, auto_cue: false do |idx|
14+
live_loop :lands, auto_cue: false do
1515
use_synth :dsaw
1616
use_random_seed 66679
1717
ns = (scale :e2, :minor_pentatonic, num_octaves: 3)
@@ -22,13 +22,13 @@
2222
end
2323
end
2424

25-
live_loop :fietsen do |idx|
25+
live_loop :fietsen do
2626
sleep 0.25
2727
sample :guit_em9, rate: -1
2828
sleep 7.75
2929
end
3030

31-
live_loop :tijd, auto_cue: false do |idx|
31+
live_loop :tijd, auto_cue: false do
3232
sample :bd_haus, amp: 2.5
3333
sleep 0.5
3434
end

0 commit comments

Comments
 (0)