memlnaut-nisps/voicespaces/VerbFX/cathedral.hpp

70 lines
2.7 KiB
C++
Raw Normal View History

2026-03-29 20:09:10 +02:00
#ifndef __VOICE_SPACE_VERBFX_CATHEDRAL_HPP__
#define __VOICE_SPACE_VERBFX_CATHEDRAL_HPP__
#define VOICE_SPACE_VERBFX_CATHEDRAL_BODY \
filterBankDelayXFade = smoothParams[0]; \
\
lp0fb = sqrtf(smoothParams[1]) * 0.98f;\
lp0cutoff = (smoothParams[2] * 0.3f) + 0.02f;\
\
lp1fb = sqrtf(smoothParams[3]) * 0.98f;\
lp1cutoff = (smoothParams[4] * 0.3f) + 0.02f;\
\
lp2fb = sqrtf(smoothParams[5]) * 0.98f;\
lp2cutoff = (smoothParams[6] * 0.3f) + 0.02f;\
\
lp3fb = sqrtf(smoothParams[7]) * 0.98f;\
lp3cutoff = (smoothParams[8] * 0.3f) + 0.02f;\
\
lp4fb = sqrtf(smoothParams[9]) * 0.98f;\
lp4cutoff = (smoothParams[10] * 0.3f) + 0.02f;\
\
lp5fb = sqrtf(smoothParams[11]) * 0.98f;\
lp5cutoff = (smoothParams[12] * 0.3f) + 0.02f;\
\
lp6fb = sqrtf(smoothParams[13]) * 0.98f;\
lp6cutoff = (smoothParams[14] * 0.3f) + 0.02f;\
\
lp7fb = sqrtf(smoothParams[15]) * 0.98f;\
lp7cutoff = (smoothParams[16] * 0.3f) + 0.02f;\
\
allp0fb = sqrtf(smoothParams[17]) * 0.9f;\
allp1fb = sqrtf(smoothParams[18]) * 0.9f;\
allp2fb = sqrtf(smoothParams[19]) * 0.9f;\
allp3fb = sqrtf(smoothParams[20]) * 0.9f;\
\
filterBankF0 = 40.f + (smoothParams[21] * 40.f);\
filterBankF1 = 80.f + (smoothParams[22] * 80.f);\
filterBankF2 = 160.f + (smoothParams[23] * 160.f);\
filterBankF3 = 320.f + (smoothParams[24] * 320.f);\
filterBankF4 = 640.f + (smoothParams[25] * 640.f);\
filterBankF5 = 1280.f + (smoothParams[26] * 1280.f);\
filterBankF6 = 2560.f + (smoothParams[27] * 2560.f);\
filterBankF7 = 5120.f + (smoothParams[28] * 5120.f);\
\
filterBankRes0 = 1.f + (smoothParams[29] * 19.f);\
filterBankRes1 = 1.f + (smoothParams[30] * 19.f);\
filterBankRes2 = 1.f + (smoothParams[31] * 19.f);\
filterBankRes3 = 1.f + (smoothParams[32] * 19.f);\
filterBankRes4 = 1.f + (smoothParams[33] * 19.f);\
filterBankRes5 = 1.f + (smoothParams[34] * 19.f);\
filterBankRes6 = 1.f + (smoothParams[35] * 19.f);\
filterBankRes7 = 1.f + (smoothParams[36] * 19.f);\
\
ddelayTime = 10.f + (sqrtf(smoothParams[37]) * 16373.f);\
ddelayFeedback = sqrtf(smoothParams[38]) * 0.98f;\
\
ddelayTime1 = 10.f + (sqrtf(smoothParams[39]) * 2037.f);\
ddelayFeedback1 = sqrtf(smoothParams[40]) * 0.98f;\
\
ddelayTime2 = 10.f + (sqrtf(smoothParams[41]) * 501.f);\
ddelayFeedback2 = sqrtf(smoothParams[42]) * 0.98f;\
\
verbVsDelayLevel = smoothParams[43] * smoothParams[43];\
delayToVerbLevel = sqrtf(smoothParams[44]) * 0.99f;\
\
delayMorph = smoothParams[45];\
delayBlend = smoothParams[46];
#endif