Freeverb3 VST plugins
Revision | 8c56a882b90c05eaca25224a7e3635df600212c1 (tree) |
---|---|
Zeit | 2017-07-15 23:06:19 |
Autor | Teru Kamogashira <tkamogashira@user...> |
Commiter | Teru Kamogashira |
Midi message event option was added.
@@ -197,6 +197,7 @@ | ||
197 | 197 | hostThreadData.ecue = &eventCue; |
198 | 198 | hostThreadData.cueLocker = &eventCueLocker; |
199 | 199 | threadFlags = 0; |
200 | + skipMidiEvents = false; | |
200 | 201 | #ifdef WIN32 |
201 | 202 | lEventThreadHandle = (HANDLE)_beginthreadex(NULL, 0, lfEventThread, &hostThreadData, CREATE_SUSPENDED, &threadId); |
202 | 203 | wsprintfW(eventName, FV_EVENT_PREFIX L"%d", threadId); |
@@ -366,6 +367,11 @@ | ||
366 | 367 | return (kPlugCategRoomFx); |
367 | 368 | } |
368 | 369 | |
370 | +void Freeverb::disableMidiEvents() | |
371 | +{ | |
372 | + skipMidiEvents = true; | |
373 | +} | |
374 | + | |
369 | 375 | VstInt32 Freeverb::processEvents(VstEvents* ev) |
370 | 376 | { |
371 | 377 | callEvents ++; |
@@ -373,6 +379,8 @@ | ||
373 | 379 | { |
374 | 380 | if((ev->events[i])->type != kVstMidiType) |
375 | 381 | continue; |
382 | + if(skipMidiEvents == true) | |
383 | + continue; | |
376 | 384 | VstMidiEvent* event = (VstMidiEvent*)ev->events[i]; |
377 | 385 | char* midiData = event->midiData; |
378 | 386 | VstInt32 Channel = midiData[0] & 0x0f; |
@@ -188,6 +188,8 @@ | ||
188 | 188 | void setCurrentSlot(int slot); |
189 | 189 | float getNRTParameter(VstInt32 index); |
190 | 190 | void setNRTParameter(VstInt32 index, float value); |
191 | + | |
192 | + void disableMidiEvents(); | |
191 | 193 | |
192 | 194 | private: |
193 | 195 | Freeverb(const Freeverb& x); |
@@ -202,7 +204,7 @@ | ||
202 | 204 | IRPrograms irPrograms; |
203 | 205 | int converter_type, conf_fragmentSize, conf_factor; |
204 | 206 | int currentSlot; |
205 | - bool zl, conf_mt, byPass, skipLimiter; | |
207 | + bool zl, conf_mt, byPass, skipLimiter, skipMidiEvents; | |
206 | 208 | float dryValue, dryValueDB; |
207 | 209 | pfloat_t dryValueR; |
208 | 210 |
@@ -42,6 +42,7 @@ | ||
42 | 42 | #define FV3_IR2_CONF_KEY_FACTOR "/Freeverb3VST_Impulser2/Factor" |
43 | 43 | #define FV3_IR2_CONF_KEY_MT "/Freeverb3VST_Impulser2/MultiThread" |
44 | 44 | #define FV3_IR2_CONF_KEY_GUI_ZOOM_FACTOR "/Freeverb3VST_Impulser2/GuiZoomFactor" |
45 | +#define FV3_IR2_CONF_KEY_DISABLE_MIDI "/Freeverb3VST_Impulser2/DisableMidiEvents" | |
45 | 46 | |
46 | 47 | #ifdef WIN32 |
47 | 48 | wchar_t ModuleFileNameW[MAX_PATH]; |
@@ -98,7 +99,7 @@ | ||
98 | 99 | plug = new Freeverb(audioMaster); |
99 | 100 | if(xmlConfig.getKeyAsInt(FV3_IR2_CONF_KEY_VERSION) < FV3_IR2_CONF_VERSION) |
100 | 101 | { |
101 | - MacMessageBox(XMLConfigPath, "Freeverb3 Impulser2: You should update your configuration XML file. Skipping..."); | |
102 | + MacMessageBox(XMLConfigPath, "Freeverb3 Impulser2: You should update the configuration XML file, skipping..."); | |
102 | 103 | plug->setLogFileName(""); |
103 | 104 | plug->setFragmentSize(512); |
104 | 105 | plug->setFactor(16); |
@@ -111,6 +112,7 @@ | ||
111 | 112 | else |
112 | 113 | { |
113 | 114 | if(xmlConfig.getKeyAsInt(FV3_IR2_CONF_KEY_OUTPUT_LOG) > 0) plug->setLogFileName(LogFilePath); |
115 | + if(xmlConfig.getKeyAsInt(FV3_IR2_CONF_KEY_DISABLE_MIDI) > 0) plug->disableMidiEvents(); | |
114 | 116 | plug->writeLogA("===========================\n"); |
115 | 117 | plug->writeLogA("Freeverb3_vst Impulser2 Log\n"); |
116 | 118 | plug->writeLogA("Version: %s\n", VERSION); |
@@ -100,8 +100,8 @@ | ||
100 | 100 | VST_LIB += -L$(top_srcdir)/libmac |
101 | 101 | FFT_LIB = -L$(top_srcdir)/libmac |
102 | 102 | else |
103 | -VST_LIB += -L$(top_srcdir)/lib | |
104 | -FFT_LIB = -L$(top_srcdir)/lib | |
103 | +VST_LIB += -L$(top_srcdir)/lib32 | |
104 | +FFT_LIB = -L$(top_srcdir)/lib32 | |
105 | 105 | endif |
106 | 106 | endif |
107 | 107 |
@@ -11,4 +11,5 @@ | ||
11 | 11 | ./configure \ |
12 | 12 | --prefix=/Freeverb3_VST --build=$build --host=$host --target=$target \ |
13 | 13 | --disable-static --enable-shared --disable-debug --disable-undenormal \ |
14 | ---enable-plugdouble --enable-dstr=-slow-AVX-doubleprecision-win --enable-fftw3n=fftw3-x64-avx | |
14 | +--enable-plugdouble --enable-dstr=-slow-AVX-doubleprecision-win --enable-fftw3n=fftw3-avx | |
15 | + |
@@ -39,6 +39,8 @@ | ||
39 | 39 | <fv3:key fv3:name="MultiThread" fv3:value="1" /> |
40 | 40 | <!-- Shift+drag fader zoom factor --> |
41 | 41 | <fv3:key fv3:name="GuiZoomFactor" fv3:value="20.0" /> |
42 | + <!-- Disable midi event message automation. --> | |
43 | + <fv3:key fv3:name="DisableMidiEvents" fv3:value="0" /> | |
42 | 44 | </fv3:section> |
43 | 45 | |
44 | 46 | <fv3:section fv3:name="Freeverb3VST_NReverb"> |