• R/O
  • SSH

freeverb3_vst: Commit

Freeverb3 VST plugins


Commit MetaInfo

Revision837d41e90100e8ea3c7f7ee3316c493e7c2672dc (tree)
Time2018-06-09 22:29:10
AuthorTeru Kamogashira <tkamogashira@user...>
CommiterTeru Kamogashira

Log Message

New Reflection Added

Change Summary

Incremental Difference

diff -r 667d56e94dad -r 837d41e90100 VstMain/Hibiki_Reverb.cpp
--- a/VstMain/Hibiki_Reverb.cpp Sun May 13 20:57:31 2018 +0900
+++ b/VstMain/Hibiki_Reverb.cpp Sat Jun 09 22:29:10 2018 +0900
@@ -383,11 +383,11 @@
383383 p->fOSRCFact = value;
384384 factorp = (long)std::ceil(value); if(factorp == 0) factorp = 1;
385385 if(factorp != dsp_prev->getOSFactor())
386- {
387- lock();
388- dsp_prev->setOSFactor((int)factorp, converter_type);
389- unlock();
390- }
386+ {
387+ lock();
388+ dsp_prev->setOSFactor((int)factorp, converter_type);
389+ unlock();
390+ }
391391 break;
392392 case KODry:
393393 dryDB = (p->fODry = value);
@@ -487,38 +487,31 @@
487487 case KOReverbType:
488488 type = (long)std::ceil(value);
489489 switch(type)
490- {
491- case 2:
492- dsp_prev->setReverbType(FV3_REVTYPE_ZREV);
493- p->fOReverbType = 2;
494- break;
495- case 1:
496- default:
497- dsp_prev->setReverbType(FV3_REVTYPE_ZREV2);
498- p->fOReverbType = 1;
499- break;
500- }
490+ {
491+ case 2:
492+ dsp_prev->setReverbType(FV3_REVTYPE_ZREV);
493+ p->fOReverbType = 2;
494+ break;
495+ case 1:
496+ default:
497+ dsp_prev->setReverbType(FV3_REVTYPE_ZREV2);
498+ p->fOReverbType = 1;
499+ break;
500+ }
501501 break;
502502
503503 case KOERType:
504- type = (long)std::ceil(value);
504+ type = (long)std::floor(value);
505505 lock();
506- switch(type)
507- {
506+ //switch(type)
507+ // {
508508 // case 3:
509509 // dsp_eref->loadPresetReflection(FV3_EARLYREF_PRESET_2);
510510 // p->fOERType = 3;
511511 // break;
512- case 2:
513- dsp_eref->loadPresetReflection(FV3_EARLYREF_PRESET_1);
514- p->fOERType = 2;
515- break;
516- case 1:
517- default:
518- dsp_eref->loadPresetReflection(FV3_EARLYREF_PRESET_0);
519- p->fOERType = 1;
520- break;
521- }
512+ dsp_eref->loadPresetReflection(type);
513+ type = dsp_eref->getCurrentPreset();
514+ p->fOERType = type;
522515 unlock();
523516 break;
524517
@@ -617,10 +610,13 @@
617610 else return LINCV(0,100,0,1,value);
618611
619612 case KOReverbType:
620- case KOERType:
621613 if(p2m) return LINCV(0,1,1,6,value);
622614 else return LINCV(1,6,0,1,value);
623615
616+ case KOERType:
617+ if(p2m) return LINCV(0,1,0,40,value);
618+ else return LINCV(0,40,0,1,value);
619+
624620 case KOSpinFact:
625621 case KOLFOFact:
626622 case KOERefSend:
@@ -652,8 +648,10 @@
652648 case KOSRCFact:
653649 snprintf(text, kVstMaxParamStrLen, "%ld", dsp_prev->getOSFactor());
654650 break;
651+ case KOERType:
652+ snprintf(text, kVstMaxParamStrLen, "%ld", dsp_eref->getCurrentPreset());
653+ break;
655654 case KOReverbType:
656- case KOERType:
657655 int2string((VstInt32)p->getParameterValue(index), text, kVstMaxParamStrLen);
658656 break;
659657 default:
@@ -731,10 +729,10 @@
731729 {
732730 lock();
733731 try
734- {
735- tmp1Block.alloc(sampleFrames, 2);
736- tmp2Block.alloc(sampleFrames, 2);
737- }
732+ {
733+ tmp1Block.alloc(sampleFrames, 2);
734+ tmp2Block.alloc(sampleFrames, 2);
735+ }
738736 catch(std::bad_alloc){ unlock(); return; }
739737 unlock();
740738 }
@@ -743,17 +741,17 @@
743741 {
744742 dsp_eref->processreplace(inL,inR,tmp1Block.L,tmp1Block.R,(long int)sampleFrames);
745743 for(long i = 0;i < sampleFrames;i ++)
746- {
747- tmp2Block.L[i] = tmp1Block.L[i]*vERtoLate + inL[i];
748- tmp2Block.R[i] = tmp1Block.R[i]*vERtoLate + inR[i];
749- }
744+ {
745+ tmp2Block.L[i] = tmp1Block.L[i]*vERtoLate + inL[i];
746+ tmp2Block.R[i] = tmp1Block.R[i]*vERtoLate + inR[i];
747+ }
750748 dsp_prev->processreplace(tmp2Block.L,tmp2Block.R,outL,outR,(long int)sampleFrames);
751749 pfloat_t dryR = UTILS::dB2R(dryDB), erR = UTILS::dB2R(erDB);
752750 for(long i = 0;i < sampleFrames;i ++)
753- {
754- outL[i] += tmp1Block.L[i]*erR + inL[i]*dryR;
755- outR[i] += tmp1Block.R[i]*erR + inR[i]*dryR;
756- }
751+ {
752+ outL[i] += tmp1Block.L[i]*erR + inL[i]*dryR;
753+ outR[i] += tmp1Block.R[i]*erR + inR[i]*dryR;
754+ }
757755 unlock();
758756 }
759757 }
diff -r 667d56e94dad -r 837d41e90100 VstMain/Hibiki_Reverb.hpp
--- a/VstMain/Hibiki_Reverb.hpp Sun May 13 20:57:31 2018 +0900
+++ b/VstMain/Hibiki_Reverb.hpp Sat Jun 09 22:29:10 2018 +0900
@@ -29,6 +29,7 @@
2929 #include <vector>
3030 #include <string>
3131 #include <cstdio>
32+#include <cmath>
3233 #include <typeinfo>
3334 #include <audioeffectx.h>
3435 #include <freeverb/earlyref.hpp>
diff -r 667d56e94dad -r 837d41e90100 configure.ac
--- a/configure.ac Sun May 13 20:57:31 2018 +0900
+++ b/configure.ac Sat Jun 09 22:29:10 2018 +0900
@@ -279,7 +279,7 @@
279279 dnl Uses static library
280280
281281 CFLAGS="$CFLAGS $SPFLAGS $DEFINE"
282-CXXFLAGS="$CFLAGS $CXXFLAGS"
282+CXXFLAGS="-std=gnu++03 $CFLAGS $CXXFLAGS"
283283 OBJCFLAGS="$CFLAGS $OBJCFLAGS"
284284 OBJCXXFLAGS="$CFLAGS $OBJCXXFLAGS"
285285 LDFLAGS="$LDFLAGS $SPFLAGS"
Show on old repository browser