-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstutter.rb
75 lines (61 loc) · 1.54 KB
/
stutter.rb
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
class FXStutter < FXInfo
def name
"Stutter"
end
def introduced
Version.new(2,3,0)
end
def synth_name
"fx_stutter"
end
def doc
"stutter input signal"
end
def trigger_with_logical_clock?
:t_minus_delta
end
def kill_delay(args_h)
args_h[:ramp]
end
def arg_defaults
super.merge({
:mix => 0,
:ramp => 0.001,
:stutlen => 0.1,
:stutlen_slide => 0,
:stutlen_slide_shape => 1,
:stutlen_slide_curve => 0,
:max_phase => 2
})
end
def specific_arg_info
{
:ramp =>
{
:doc => "ramp time for stutter",
:validations => [v_positive(:ramp)],
:modulatable => true
},
:max_phase =>
{
:doc => "maximum stutter time",
:validations => [v_positive(:max_phase)],
:modulatable => false
},
:stutlen =>
{
:doc => "length of stutter in seconds (bpm scaled)",
:validations => [v_positive(:stutlen)],
:modulatable => true,
:bpm_scale => true
},
:stutlen_slide =>
{
:doc => generic_slide_doc(:stutlen),
:validations => [v_positive(:stutlen_slide)],
:modulatable => true,
:bpm_scale => true
}
}
end
end