-
Notifications
You must be signed in to change notification settings - Fork 1
/
workspace_five.spi
57 lines (49 loc) · 1.73 KB
/
workspace_five.spi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<<<<<<< HEAD
live_loop :test, sync: :slicing do
tick
if (ring
true, false, false, false, false, false, #6
true, false, false, false, false, false, false, false, false, false, #10
true, false, false, false, false, false, false, #7
true, false, false, false, false, false, false, false, false, false, false, #11
#34
true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, #16
true, false, false, false, false, false, #6
true, false, false, false, false, false, false, false #8
).look
smp MagicDust[/_HI/,1]
end
sleep 1/8.0
end
live_loop :patterns, sync: :test do
tick
if (ring
false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, #16
false, false, false, false, false, false, #6
false, false, false, false, false, false, false, false, #8
false, false, false, false, false, false, #6
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, #7
false, false, false, false, false, false, false, false, false, false, false, #11
).look #10
smp MagicDust[/_MI/,1], amp: 1
end
sleep 1/8.0
=======
def bass(note, *args)
if note.is_a?(Array)
args = args << {sustain: note[1]}
note = note[0]
end
args_h = resolve_synth_opts_hash_or_array(args)
if(args_h[:cutoff])
bass_cc(args_h[:cutoff])
end
midi note, *(args << {port: :iac_bus_1} << {channel: 5})
end
def bass_cc(vv)
#6=>cutoff
midi_cc 6, vv*127.0, port: :iac_bus_1, channel: 5
>>>>>>> 6fab41b
end
bass_cc 0.35