-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRMlight.effect
305 lines (289 loc) · 11.7 KB
/
RMlight.effect
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<effect>
<name>RMLight</name>
<enabled>true</enabled>
<numIns>2</numIns>
<numOuts>2</numOuts>
<code>if (<RMlightON> == 1) then
itable3 chnget "table_sine"
if (itable3 == 0) then
itable3 ftgen 0, 0, 16384, -10, 1
chnset itable3, "table_sine"
endif
itablecreate chnget "table_create"
if (itablecreate == 0) then
itablecreate ftgen 0, 0, 16384, -7, <RMlight_table_shape>
chnset itablecreate, "table_create"
endif
amod1 oscili <RMlight_modulation depth>, <RMlight_modulation frequency>, <RMlight_tablenum>, i(<RMlight_phase left>)
amod2 oscili <RMlight_modulation depth>, <RMlight_modulation frequency>, <RMlight_tablenum>, i(<RMlight_phase right>)
ain1pre = ain1
ain2pre = ain2
ain1pre = ain1 * <RMlight_direct signal>
ain2pre = ain2 * <RMlight_direct signal>
aout1 = ain1pre + ain1*amod1
aout2 = ain2pre + ain2*amod2
else
aout1 = ain1
aout2 = ain2
endif</code>
<comments>DESCRIPTION:
ring modulation with drawable waveform.
CONTROLLERS:
ON/OFF - bypass
depth - depth of RM
frequency - speed of LFO
left/right - phase of LFO as to get a wide stereo image
Dropdown List - sine shaped waveform (preset) or freely drawable waveform
Line Object - freely drawable waveform as modulator
direct - mix direct signal with effect
---
version 1.11, May 2020
- added comments on controllers
version 1.1, 2016
- new GUI and small code adaptations by Menno Knevel
version 1.0, 2008?
- initial version (possibly by mbechard?)
</comments>
<opcodeList/>
<graphicInterface editEnabled='true'>
<gridSettings>
<width>5</width>
<height>5</height>
<gridStyle>LINE</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>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBCheckBox'>
<objectName>RMlightON</objectName>
<x>0</x>
<y>0</y>
<automationAllowed>true</automationAllowed>
<label/>
<selected>true</selected>
<randomizable>true</randomizable>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
<objectName></objectName>
<x>10</x>
<y>10</y>
<groupName>Group</groupName>
<backgroundColor>0x4d8080ff</backgroundColor>
<borderColor>0x000000ff</borderColor>
<labelTextColor>0xffffffff</labelTextColor>
<titleEnabled>false</titleEnabled>
<width>20</width>
<height>20</height>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>RMlight_phase right</objectName>
<x>190</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.23025</value>
<knobWidth>40</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
<label>right</label>
<labelEnabled>true</labelEnabled>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBVSlider' version='2'>
<objectName>RMlight_direct signal</objectName>
<x>245</x>
<y>25</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<bdresolution>0.1</bdresolution>
<value>1.0</value>
<sliderHeight>50</sliderHeight>
<randomizable>true</randomizable>
<valueDisplayEnabled>false</valueDisplayEnabled>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
<objectName></objectName>
<x>240</x>
<y>10</y>
<label>direct</label>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>RMlight_modulation depth</objectName>
<x>10</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.8</value>
<knobWidth>40</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
<label>depth</label>
<labelEnabled>true</labelEnabled>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>RMlight_phase left</objectName>
<x>130</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.0</value>
<knobWidth>40</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
<label>left</label>
<labelEnabled>true</labelEnabled>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>RMlight_modulation frequency</objectName>
<x>60</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>400.0</maximum>
<value>4.15186</value>
<knobWidth>40</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
<label>frequency</label>
<labelEnabled>true</labelEnabled>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBGroup'>
<objectName></objectName>
<x>5</x>
<y>85</y>
<groupName>Group</groupName>
<backgroundColor>0x00000033</backgroundColor>
<borderColor>0x000000ff</borderColor>
<labelTextColor>0xffffffff</labelTextColor>
<titleEnabled>false</titleEnabled>
<width>20</width>
<height>20</height>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLineObject'>
<objectName>RMlight_table</objectName>
<x>10</x>
<y>35</y>
<canvasWidth>250</canvasWidth>
<canvasHeight>100</canvasHeight>
<xMax>16384.0</xMax>
<relativeXValues>true</relativeXValues>
<separatorType>COMMA</separatorType>
<leadingZero>false</leadingZero>
<locked>false</locked>
<lines>
<line name='shape' version='2' max='1.0' min='0.0' bdresolution='-1' color='-14623488' rightBound='true' endPointsLinked='false'>
<linePoint x='0.0' y='0.0'/>
<linePoint x='0.17783505' y='0.1081081'/>
<linePoint x='0.29381442' y='0.4189189'/>
<linePoint x='0.41752577' y='1.0'/>
<linePoint x='0.46134022' y='0.0'/>
<linePoint x='1.0' y='0.0'/>
</line>
</lines>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
<objectName></objectName>
<x>140</x>
<y>15</y>
<label>BPF for Draw mode</label>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown' version='2'>
<objectName>RMlight_tablenum</objectName>
<x>10</x>
<y>10</y>
<automationAllowed>false</automationAllowed>
<selectedIndex>1</selectedIndex>
<fontSize>12</fontSize>
<randomizable>true</randomizable>
<bsbDropdownItemList>
<bsbDropdownItem uniqueId='209937713'>
<name>draw</name>
<value>itablecreate</value>
</bsbDropdownItem>
<bsbDropdownItem uniqueId='209937714'>
<name>sine</name>
<value>itable3</value>
</bsbDropdownItem>
</bsbDropdownItemList>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
<objectName></objectName>
<x>67</x>
<y>14</y>
<label>mode</label>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
</bsbObject>
</bsbObject>
</bsbObject>
</graphicInterface>
<parameterList>
<parameter uniqueId='209937716' name='RMlight_phase left' 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='209937720' name='RMlight_modulation frequency' label='' min='0.0' max='400.0' bdresolution='-1' automationEnabled='false' value='4.15186'>
<line name='' version='2' max='400.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='4.15186'/>
</line>
</parameter>
<parameter uniqueId='209937722' name='RMlight_phase right' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.23025'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.23025'/>
</line>
</parameter>
<parameter uniqueId='-914081657' name='RMlight_modulation depth' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.8'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.8'/>
</line>
</parameter>
<parameter uniqueId='-914081517' name='RMlight_direct signal' label='' min='0.0' max='1.0' bdresolution='0.1' automationEnabled='false' value='1.0'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='1.0'/>
</line>
</parameter>
<parameter uniqueId='-104104217' name='RMlightON' label='' min='0.0' max='1.0' bdresolution='1' automationEnabled='false' value='1.0'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='1.0'/>
</line>
</parameter>
</parameterList>
</effect>