inconsistent logging?
-
This is a test project where I add modules to be saved in presets
I use this code to accomplish this, when I compile I'll get errors.const GenericSlots = [Synth.getEffect("Effect Slot1"), Synth.getEffect("Effect Slot2")]; // This will complain: "Interface:! Line 10, column 35: Can't store modules with child modules" for (g in GenericSlots) Engine.addModuleStateToUserPreset(g.getId());
but...
if I then save a preset and open it in an external editor I can see that the state of the modules are saved???Before compiling:
After compiling:
The preset opened in an external editor:
snippet
HiseSnippet 1306.3oc2X0saaTDEdV6LUwKPTKBgDhaFrDBaoficRaABBY2X6jZQRpI1okJDJLY2w1ixtyXM63j5hpDuFgq30n20a4s.Itp2wa.blcWauN0IMX0FQvWjn47yb9luYN+X2TIcXAARExJS6g8YHq2E2ZnP2qZOJWfZTCjiaWuU6F6tEZig8oAALWjkU5sLpsxr.J7yeUdCpGU3vlHBgdnj6v1l6y0Sj1rx2x871j5xZy8SX8sqzvQJpJ8jC.njFWD0m5bDsKaWpwrTXj0Mp6x0RUKMUyBPVKrgzcXqdxSDQ1+Pd.+POlYQITKXihDuozy0fXiTT0dbO2liNxAHXWZNg.RGQ.e.dGtKer7IDwMCUPl3QR9vJ0zvK8TvqTR3ULA7lAjrR.oEhfzsvsbT795IZL34cvMDZlpCEn8jPIxVTpuJMtpDrPnK3SOhsoBVL1ib2sXwkIvex+0111.2GnIawDLE2okmTGP9FxOD9PnPWltdmNLGctrQ+mXLnT17Kamw7gPtH6VMa9ezDgUVIS6d7.xIv0OwQ522Cn00IYGCn0+Dx1bAiTBfkizafufr1cVmTkJ9LMI.XVFwW5NviY1CcOhig3FIJqcGohjqKgKl5Tj2NScQWXaKPcc2Iz1vKn1x8CXplJV.SmqqA5Mbyk2PEQLw9MuOP.wt5nXfKSb39TgqGSkKj4r4BOCr6LP3n4RAQJLoFFhWI8xYNoRAbErL4Xp2.Vd6e1NyJqbOWWxP3oNwY.bz7IdxtbGROlhUnPA6mAa7naN.ZUGsG4xZ15r4KDXDFFfpTOuCgLkbSEVCxdUb8Hlda1wLu2RXaz1ed36LgGvXBrsqTydfHWHDrelM4rp5zYl5h2qvaiYn1TiQcQNlSLv+PlJIAXLDR7lNaFe9YyIK13DQLILTJZH35GzmINuRPnX1Dx7SEiJvTcXd+Rw48s73tLEhCo22.GV4MDuIK1htD9ZiGcGLC+2uQMplZp+DCH.j8YJM2b9spwNFJlGUMJCtFK3HsreHhiu+gFGuNL+jIwqckgiW7KeWkS3t5diET4mpziw61KQaiFUfD83P6vODN.9Ia+73W3SeRxSSfl0uE+ogmve8TymmWNXPmNbvJLl3tA3uKjD2TFvMuHl36pu.k3Lk4xvkSh7uomyy0Gh2Up7od.jcaxTNPvgdenQPNM9SOW.+GkQuZCCnUkoXGUOc+Ky0PrBydjrogoNr.16gIape1lZKb4Zpcw8burv8V3lbsSuYi2Ty.ulLn2x3MdDg2CG0gaBXW.u42OuyCT5hmGH0qF+EwltaPDMgdIbx1xSChzWZ9X1yL8ZGPYwwCMxgV5rsFwGezTf5fDZO+gHQnZLO5TWnOZpDHziqLiwLaHNFJS0T5QUm84P52T2AKboeyZNRjqM4XuONjxuNA3vmDWe.7MwMo+W3AwdxAZtn6NTsJrI3tC7aAC44v.nJDLOyPNVoLyQDstnYsAPsXB2vE+M7IVYIyZqXkkFo7JIF+aJFt5Ubwv3uA8RwEC2ClNPcXHr93of0ASoOIF2SJ8GM2hYdhSO8kkqQ86CrZrnJqs1eVd7nGiM62KWSM7LxdY4jkOCErohwdJamnYohk97xuwpS9+lWYWEwvm5njG3DM1t4ozhgR.tUD9adjAuiYMozng0w3hEJZlCjefiiYjiOGxzmsOqNG9r1b3ysmCetyb3ycmCe9h4vmu7B8w7y+buAv2INpRNHnY8vuzjkUcAExPBygQ+CrZsTE.
-
@ulrik Just digging this one to give info if someone stumbles upon that issue:
In my case, I just compiled HISE with the NUM_HARDCODED_FX_MODS preprocessor and got this warning, though I didn't get it before.
I recompiled HISE without this preprocessor and it went back to normal... -
@Matt_SF said in inconsistent logging?:
I recompiled HISE without this preprocessor and it went back to normal...
Are you adding a hardcoded modules state to the preset?
-
@Matt_SF thank you Matt, yes indeed I have the NUM_HARDCODED_FX_MODS preprocessor active.
-
@d-healey yes, several of them. Oddly enough, only one of them produced the error...
Edit: I just did a test, I actually don't need it in my project.