Faust filters....odd freq behaviours...
-
Comparing fausts SVF and korg filters (which I am aware have different characters) :
when using the same Freq value should be in the same ball park, but apart from at 20KHz - they are nowhere the same...
HiseSnippet 2524.3oc2Z07aaibEmxJTN1IAcScR2BzKDA8fCfiBIkrkTBVXE+gRL13D0HWuaOkNgbjEgo3vRR4O1hBzCEnKPOTfdau0dpm5GW6s.z+.ZAxgds4+fdbuk88lgTbnDksr1T2cqBhsl27dy7adeMuYFSOIh5YSseYnmiuOMRQoPw1ALKZXHKPovB6cpOUov0U6bpWTuM6Qb7T1YKkBefZWG2HZfEquOIfFprwo9jvPpsRgBEeLxUgEthB+y+Y8MHtDOKZJIEk8YNVzm5z2IJkZ6leriqaKhMcOm9RbWs4NVLuMYtrA.hJppq3SrNjb.8YDjs4TUJTZaamHVPmHRDfkBWYCl8oc5wN1Sv+9NgNuxkhMLT5.CjfbKlqMhXjpxl8bbsGtxCA8fpjdnnPObK0ccrcFRWVefcnkJgr9nvbYgWwLvyPFd5RvKGHUPBRWQ.oap1wJvwOJsGDOWScGOv7zk.pcYnH3UovqU2jAL3EUtO4PZq.nwPAVdMc8Uzfeb2G1cfmUjCySi48LVD84dKe2E+4Ktvh+hE0FsqtcysObZBXttzfb6FszAmkfK6Mn+qnAqncDwc.cHivxOqNUcx5TYStkXUKwHyaGOmnm6S8ljifRrpB91OdmsHQDzPDSC3ymFD4fPnvVzi.uZgYYA0sngGFw7A+5wrYf2BydfKIJqKDF2D2AnCxX2PiiWnSzoxwUu27qlVHdS01NQV8xGiykCFAM0+MvXbz3MT2taWpUTJ.uhZqO8xKzaw3POXNwI+5wM0Z8oF4Fz84poN39ATLw4dr1tjSWNjz22k9B.iqn8JWl0gcb9L53QE9BHrAxwxV8HddT2vYI3ozTqULNaixKXChb7NXWRTfyIPT3yFzuCjl1htYL5.ZElCigDs0w1neQGXWGdi2Aeh6z.aWHtSijNkB+dFM5XVvgbyQ72UJLOp6WRsEe+nM46G4Dx7BU1mFDh9nElWUuL7OkG45xNF4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3kEnEBbSYZCBIGPWL9ORAXJe4Ju7Accv2xnrq+xHFWAl76tRNzd.v6CWTQYLs2OHV6Mx0MkUC9aljFjK.9T4gg3Zay.JG3G6D0S6I6zYaMlGnoLqdOC86oWah5abvEpjgm4T6dwyG8DeP0fZJOnBZhqCjVU72ag1GcOTgIQFUXI1tkmFi284eah1PiKCK3QzxGBpwJq9z1sjLh4SFsgeESWDu+.
-
@Lindon Looks like the Resonance works as Frequency, and the Frequency works as Resonance :)
-
@orange yes very odd...
but even when we have them correctly wired..still this discrepancy between freq. values....
HiseSnippet 2525.3oc6Z8zaaibEmTJTN1IAc20IcKZuPDzCN.NJjRxVRIHHJ9OZiwFmnMx061SoSHGYQXJNrjT9OaQA5gBzEnG54819EnE8TA5sf9InE4KP62fdbuk9dyPJNThxVVIaZ1hxfXy4MuYley6+CGSOIh5YSsednmiuOMRQQsXm.lEMLjEnnt3dm5SUTupV2S8h5uYehimxNaon9AZ8bbinAVrA9j.ZnxFm5SBCo1JppE+DjK0EujB+4e+fMHtDOKZJIEk8YNVzG6LvIJkZmVepiqaahMcOmARbWq0NVLuMYtrg.hJpYn3SrNjb.8IDjsBZJpk111IhEzMhDAXQ8RavrOsae1wdB922Iz4EtTrgoRWXhDjaybsQDiTU1ruiq8ncdHHGzjjCEExgqqsqisyH5xxCrC8zQHKOTKjEdEy.OSY3YHAubfjpDjtj.RenVWq.G+nzdP7bEsc7.0SOBH1kghfWE0WpsICXvKp7.xgz1APiQCXk0MLVUG9wstWugdVQNLOcl2SXQzm5sxsV5WszhK8qWRe7t50K29vkIf45RCxsaTSGbVCbEugCdAMXU8iHtCoiXD19YkoZSWlJqxsD6ZIFYd634D8Tep2zLDThEUva+rc1hDQPEQLMfOeZPjCBA0snGAV0B0xhZaQCOLh4C10Sny.qEl8PWRTVSHzuItCPFjQugJGuPmnSk8qdqYWMqP7C053DY0OeLVHGLBRpuKvXr230z1tWOpUTJ.ujV6u3cmq2RwtdvZhK9Uiap29KLy0o6qzRMv8C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XQI42Q5JXJaG5m72mhRgEU0tyczaiLoKLa0wY6t5KAYSYAQqbyvHa9bT104E27V2aokvSinee89gtNPI1qbS9oSt4p53G8aU8J7+ye0D3FJ9WlW7r..qFkqF+ilkMv2PVAbrWept3pIzcB0I5CfDz5Tdv2U0CY51C8cg5xgCpq2mF.7xBzCAtoL8ggjCnKE+Wt.rjOe0me2dN3EbT10eEDiqBK9sVMGZ2E38dKonLgz6mDK83hmOkEbvi6PB2nSVI3ueZRP9.v6OOLD2aaFP4.+Xmn95OZmtaqy7.IUkZ21z31F0mp7FmbgHYzIN0uc75QOwGDMnjxCpfl35.gUE+QXne+aiBLIxn.KQ2sxrn7tC+sopCMeWnAOhV9PPLVcsG2osjRLex4pC+ww5vreIw+uJ78WU3+A.3FIoF
set the freq = 800 and move the mix control - the svf is sounding OK, the korg is making nearly no sound at all....
-
@Lindon skew factor?
-
@DanH said in Faust filters....odd freq behaviours...:
@Lindon skew factor?
Yeah thats what I keep thinking - but I cant work out what the skew factor is in the Faust filters...
-
-
@Lindon looks fun
-
@DanH yes "fun"..
So the only way I can get this to work is to remove the (silly) normalisation all together and replace it with the valid Freq values like this:
import("stdfaust.lib"); korg35LPF(theFreq,Q) = _ <: (s1,s2,s3,y) : !,!,!,_ letrec{ 's1 = _-s1:_*(alpha*2):_+s1; 's2 = _-s1:_*alpha:_+s1:_+(s3*B3):_+(s2*B2):_*alpha0:_-s3:_*alpha:_+s3:_*K:_-s2:_*(alpha*2):_+s2; 's3 = _-s1:_*alpha:_+s1:_+(s3*B3):_+(s2*B2):_*alpha0:_-s3:_*(alpha*2):_+s3; 'y = _-s1:_*alpha:_+s1:_+(s3*B3):_+(s2*B2) :_*alpha0:_-s3:_*alpha:_+s3; } with{ invSqrt2 = 1/sqrt(2); freq = theFreq; K = 2.0*(Q - invSqrt2)/(10.0 - invSqrt2); wd = 2*ma.PI*freq; T = 1/ma.SR; wa = (2/T)*tan(wd*T/2); g = wa*T/2; G = g/(1.0 + g); alpha = G; B3 = (K - K*G)/(1 + g); B2 = -1/(1 + g); alpha0 = 1/(1 - K*G + K*G*G); }; // Filter Frequency myFreq = (hslider("Freq.", 3000, 20, 20000, 1)); Res = hslider("Res.", 1, 0.3, 9.0, 0.1); // The filter is a mono effect, so duplicated here for stereo usage process = _,_:korg35LPF(myFreq,Res),korg35LPF(myFreq,Res);
I assume this is more like what most "HISE-people" would want - as we can add our own ScriptNode/UI skewing as we like it. If theres no complaints I will work my way through the versions on faust_fx_library replacing the ones I uploaded with these versions....