-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWaveguide1.effect
301 lines (288 loc) · 11.7 KB
/
Waveguide1.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
<effect>
<name>Waveguide1</name>
<enabled>true</enabled>
<numIns>2</numIns>
<numOuts>2</numOuts>
<code>if (<Waveguide1ON> == 1) then
kSwitch changed2 <Waveguide1_LfoType>
if kSwitch == 1 then
reinit STARTGUIDE
endif
STARTGUIDE:
klfo lfo <Waveguide1_LfoDepth>, <Waveguide1_LfoSpeed> , i(<Waveguide1_LfoType>)
kFreq = <Waveguide1_Pitch> + klfo
kFreq limit kFreq, 100, 12000
aL wguide1 ain1, kFreq, <Waveguide1_Cutoff>, <Waveguide1_Feedback>
aR wguide1 ain2, kFreq, <Waveguide1_Cutoff>, <Waveguide1_Feedback>
aL dcblock2 aL
aR dcblock2 aR
aout1 ntrpol ain1, aL, <Waveguide1_Mix>
aout2 ntrpol ain2, aR, <Waveguide1_Mix>
else
aout1 = ain1
aout2 = ain2
endif</code>
<comments>
DESCRIPTION:
A simple waveguide model consisting of one delay-line and one first-order lowpass filter.
CONTROLLERS:
ON/OFF - bypass
Pitch - frequency
Cutoff - the filter cutoff frequency in Hz
Feedback - the feedback factor
LFO speed/depth - influence in frequency and depth of the LFO
LFO Dropdown List - 5 different waveforms of LFO
Mix - mix direct signal with effect
---
version 1.11, May 2020
- added comments on controllers
version 1.1, November 2019
- new GUI and small code adaptations by Menno Knevel
- added DC block
- reinitialize LFO type while playing
version 1.0, 2008?
- initial version by Lollipop
</comments>
<opcodeList/>
<graphicInterface editEnabled='false'>
<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>Waveguide1ON</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>Waveguide1_LfoDepth</objectName>
<x>250</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1000.0</maximum>
<value>249.47164646464645</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>Waveguide1_Feedback</objectName>
<x>115</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<value>0.98177487</value>
<knobWidth>40</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
<label>Feedback</label>
<labelEnabled>true</labelEnabled>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>Waveguide1_Pitch</objectName>
<x>10</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>50.0</minimum>
<maximum>16000.0</maximum>
<value>1969.3522</value>
<knobWidth>40</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
<label>Pitch</label>
<labelEnabled>true</labelEnabled>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBHSlider' version='2'>
<objectName>Waveguide1_Mix</objectName>
<x>10</x>
<y>80</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>1.0</maximum>
<bdresolution>0.1</bdresolution>
<value>0.5</value>
<sliderWidth>150</sliderWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>false</valueDisplayEnabled>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>Waveguide1_Cutoff</objectName>
<x>65</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>16000.0</maximum>
<value>8226.229</value>
<knobWidth>40</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
<label>Cutoff</label>
<labelEnabled>true</labelEnabled>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBKnob' version='2'>
<objectName>Waveguide1_LfoSpeed</objectName>
<x>185</x>
<y>10</y>
<automationAllowed>true</automationAllowed>
<minimum>0.0</minimum>
<maximum>10.0</maximum>
<value>0.9594754</value>
<knobWidth>40</knobWidth>
<randomizable>true</randomizable>
<valueDisplayEnabled>true</valueDisplayEnabled>
<label>speed</label>
<labelEnabled>true</labelEnabled>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
<objectName></objectName>
<x>70</x>
<y>80</y>
<label>Mix</label>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBDropdown' version='2'>
<objectName>Waveguide1_LfoType</objectName>
<x>185</x>
<y>85</y>
<automationAllowed>true</automationAllowed>
<selectedIndex>4</selectedIndex>
<fontSize>12</fontSize>
<randomizable>true</randomizable>
<bsbDropdownItemList>
<bsbDropdownItem uniqueId='-438722300'>
<name>Sine</name>
<value>0</value>
</bsbDropdownItem>
<bsbDropdownItem uniqueId='-438722299'>
<name>Triangle</name>
<value>1</value>
</bsbDropdownItem>
<bsbDropdownItem uniqueId='-438722298'>
<name>Square-Bi</name>
<value>2</value>
</bsbDropdownItem>
<bsbDropdownItem uniqueId='-438722297'>
<name>Square-Uni</name>
<value>3</value>
</bsbDropdownItem>
<bsbDropdownItem uniqueId='-438722296'>
<name>Saw</name>
<value>4</value>
</bsbDropdownItem>
<bsbDropdownItem uniqueId='-438722295'>
<name>Saw-down</name>
<value>5</value>
</bsbDropdownItem>
</bsbDropdownItemList>
</bsbObject>
<bsbObject type='blue.orchestra.blueSynthBuilder.BSBLabel' version='2'>
<objectName></objectName>
<x>225</x>
<y>5</y>
<label>LFO</label>
<font>
<name>System Regular</name>
<size>12.0</size>
</font>
</bsbObject>
</bsbObject>
</bsbObject>
</graphicInterface>
<parameterList>
<parameter uniqueId='16615701' name='Waveguide1_Cutoff' label='' min='0.0' max='16000.0' bdresolution='-1' automationEnabled='false' value='8226.229'>
<line name='' version='2' max='16000.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='8226.229'/>
</line>
</parameter>
<parameter uniqueId='16615703' name='Waveguide1_Mix' label='' min='0.0' max='1.0' bdresolution='0.1' automationEnabled='false' value='0.5'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='0.1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.5'/>
</line>
</parameter>
<parameter uniqueId='16615705' name='Waveguide1_Pitch' label='' min='50.0' max='16000.0' bdresolution='-1' automationEnabled='false' value='1969.3522'>
<line name='' version='2' max='16000.0' min='50.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='1969.3522'/>
</line>
</parameter>
<parameter uniqueId='16615711' name='Waveguide1_Feedback' label='' min='0.0' max='1.0' bdresolution='-1' automationEnabled='false' value='0.98177487'>
<line name='' version='2' max='1.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.98177487'/>
</line>
</parameter>
<parameter uniqueId='-438722301' name='Waveguide1_LfoDepth' label='' min='0.0' max='1000.0' bdresolution='-1' automationEnabled='false' value='249.47164646464645'>
<line name='' version='2' max='1000.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='249.47164646464645'/>
</line>
</parameter>
<parameter uniqueId='-438722293' name='Waveguide1_LfoSpeed' label='' min='0.0' max='10.0' bdresolution='-1' automationEnabled='false' value='0.9594754'>
<line name='' version='2' max='10.0' min='0.0' bdresolution='-1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='0.9594754'/>
</line>
</parameter>
<parameter uniqueId='1281996642' name='Waveguide1_LfoType' label='' min='0.0' max='5.0' bdresolution='1' automationEnabled='false' value='4.0'>
<line name='' version='2' max='5.0' min='0.0' bdresolution='1' color='-8355712' rightBound='false' endPointsLinked='false'>
<linePoint x='0.0' y='4.0'/>
</line>
</parameter>
<parameter uniqueId='-104104153' name='Waveguide1ON' 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>