-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTremoloModule.binstr
287 lines (281 loc) · 11.8 KB
/
TremoloModule.binstr
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<instrument type='blue.orchestra.BlueSynthBuilder' editEnabled='true'>
<name>TremoloModule</name>
<comment>
DESCRIPTION:
The Tremolo Module is meant to add trmolo to the sound signal.
- mixes the envelope signal from a ADSR (aampenv) with tremolo effect (atrem). Output (aa) is an a-rate envelope signal.</comment>
<globalOrc/>
<globalSco/>
<instrumentText>; 0 inputs, 1 control output
;================================tremolo========================================
if (<tremolo trigger> == 1) then ; ADSR tremolo
if <tremolo envelope speed> > 0 then
agate = lfo(1, <tremolo envelope speed>)
aretrig init 1
atrem adsr140 agate, aretrig, <tremolo attack>, <tremolo decay>, <tremolo sustain>, <tremolo release> ; retriggering envelope 1 or
else
aretrig init 1
agate = linseg:a(1, p3 - i(<tremolo release>), 1, .001, 0, i(<tremolo release>), 0)
atrem adsr140 agate, aretrig, <tremolo attack>, <tremolo decay>, <tremolo sustain>, <tremolo release> ; envelope 2
endif
atrem *= 2.5
else ; no envelope at all
atrem = 1.7
endif
aa ntrpol aampenv, atrem, <mixtremolo> ; mix direct with tremolo effect
;;==============================================================================
;blueMixerOut asigFL * aa, asigFR * aa</instrumentText>
<alwaysOnInstrumentText></alwaysOnInstrumentText>
<graphicInterface editEnabled='false'>
<gridSettings>
<width>10</width>
<height>10</height>
<gridStyle>DOT</gridStyle>
<snapGridEnabled>true</snapGridEnabled>
</gridSettings>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
<objectName></objectName>
<x>0</x>
<y>0</y>
<groupName>Group</groupName>
<backgroundColor>0x00000033</backgroundColor>
<borderColor>0x000000ff</borderColor>
<labelTextColor>0xffffffff</labelTextColor>
<titleEnabled>true</titleEnabled>
<width>20</width>
<height>20</height>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
<objectName></objectName>
<x>0</x>
<y>0</y>
<comment>trigger for tremolo envelope</comment>
<groupName>tremolo</groupName>
<backgroundColor>0x3a3a3aff</backgroundColor>
<borderColor>0x000000ff</borderColor>
<labelTextColor>0xffffffff</labelTextColor>
<titleEnabled>true</titleEnabled>
<width>20</width>
<height>20</height>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>2</style>
</font>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
<objectName></objectName>
<x>12</x>
<y>28</y>
<label>speed</label>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
<objectName></objectName>
<x>7</x>
<y>260</y>
<label>direct</label>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
<objectName>tremolo trigger</objectName>
<x>5</x>
<y>5</y>
<comment>active retriggering of ADSR</comment>
<automationAllowed>true</automationAllowed>
<label>trigger</label>
<selected>false</selected>
<randomizable>true</randomizable>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
<objectName></objectName>
<x>89</x>
<y>260</y>
<label>ADSR</label>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
<objectName>tremolo envelope speed</objectName>
<x>5</x>
<y>40</y>
<comment>speed of retriggering</comment>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>60.0</maximum>
<bdresolution>0.01</bdresolution>
<value>4.84</value>
<sliderHeight>145</sliderHeight>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>mixtremolo</objectName>
<x>41</x>
<y>218</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.5297468461512551</value>
<knobWidth>50</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>false</valueDisplayEnabled>
<label>mix</label>
<labelEnabled>true</labelEnabled>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
<objectName></objectName>
<x>77</x>
<y>23</y>
<comment>4 envelopes for amplitude</comment>
<groupName>Group</groupName>
<backgroundColor>0x00000033</backgroundColor>
<borderColor>0x000000ff</borderColor>
<labelTextColor>0xffffffff</labelTextColor>
<titleEnabled>false</titleEnabled>
<width>20</width>
<height>20</height>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>tremolo release</objectName>
<x>7</x>
<y>134</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.0</value>
<knobWidth>31</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>false</valueDisplayEnabled>
<label>release</label>
<labelEnabled>true</labelEnabled>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>tremolo sustain</objectName>
<x>7</x>
<y>90</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.0</value>
<knobWidth>31</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>false</valueDisplayEnabled>
<label>sustain</label>
<labelEnabled>true</labelEnabled>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>tremolo attack</objectName>
<x>7</x>
<y>0</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.0037789922969590647</value>
<knobWidth>31</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>false</valueDisplayEnabled>
<label>attack</label>
<labelEnabled>true</labelEnabled>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>tremolo decay</objectName>
<x>7</x>
<y>45</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.5642613142729325</value>
<knobWidth>31</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>false</valueDisplayEnabled>
<label>decay</label>
<labelEnabled>true</labelEnabled>
<font>
<name>Roboto</name>
<size>12.0</size>
<style>0</style>
</font>
</bsbObject>
</bsbObject>
</bsbObject>
</bsbObject>
</graphicInterface>
<parameterList>
<parameter uniqueId='-1585864639' name='mixtremolo' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.5297468461512551'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.5297468461512551'/>
</line>
</parameter>
<parameter uniqueId='-1585864637' name='tremolo trigger' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='0.0'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.0'/>
</line>
</parameter>
<parameter uniqueId='-1585864635' name='tremolo envelope speed' label='' min='0.0' max='60.0' bdresolution='0.01' automationEnabled='false' value='4.84'>
<line name='' version='2' max='60.0' min='0.0' bdresolution='0.01' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='4.84'/>
</line>
</parameter>
<parameter uniqueId='-1585864633' name='tremolo sustain' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.0'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.0'/>
</line>
</parameter>
<parameter uniqueId='-1585864631' name='tremolo release' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.0'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.0'/>
</line>
</parameter>
<parameter uniqueId='-1585864629' name='tremolo attack' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.0037789922969590647'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.0037789922969590647'/>
</line>
</parameter>
<parameter uniqueId='-1585864627' name='tremolo decay' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.5642613142729325'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.5642613142729325'/>
</line>
</parameter>
</parameterList>
<presetGroup name='Presets'/>
<opcodeList/>
</instrument>