Expansion - Access AdditionalSourcecode file
-
This post is deleted! -
@danh Can you show me where you are calling your function from
-
expHandler.setExpansionCallback(newcombobox); newcombobox(undefined);
-
@danh Well there's your problem. undefined is not an expansion.
-
@d-healey thanks! ok I've commented that out (!) but error persists... hmmmmm
-
@danh I'm seeing tiny little windows into your code so it's impossible for me to debug this. I suggest creating a minimal snippet that contains only what's necessary to demonstrate this problem.
-
@d-healey yep fair enough, will do
-
HiseSnippet 1288.3ocsW0sahaDEdbR71h6OZW0dSuyhapQJkEZR2VopUMABrA0.DAjs6pznUSrGfYy3YrrGu.pJOH80nOY8Mn8L1FaClMkfT8Efmyey24mYNGeouvlDDH7QZkFsvifz9b8gK3xoMmhobTmyPZeodWbfj3aFSpwBObP.wAoos+qTDzJc.J54u+kFXFlaSxHgPuVPsIWPcoxLpWdxuRYr1XGxHpaNoO9jN1BdSASDB3Ye8ZHOr8c3IjdXkX6oizdRKGpT3OThkj.PlFBmECmJlwik+0z.5sLhZQczPvPwjQMmRYNWtzWCPHsCtLyy2O1y+Z8tTGZJ8rHvSiXXloQ9Xf1dODjp+HfjVNHcPLjdl9PaepmLiiBOeldGNjPFigPcdnDKKZuu4SzaJ.I3xpt36Hs8gEoZX8hZ0NzD9oxOaX.g6.o4Gv9lj4dmi4NLHO+RyV7ITNopsOA7oVy8v7.pfmv2pfhwrC.EyrR0IDYplWPCjQpkie.QdJiIlQbRES4yAVWmSn1TFoAFbuCMML2lmb5F4wtDGJ3C6f5s319K7jDma.fuUJuofhpxUEXt9lXuOG0pdgASsJ29zli5O3skUgmwBeKhIk+vwwJFIPsfwHJogZEOhujBgxJUULSveN3kZvgDFwFJdADtrhArPSgqmfCKrJWPRENKPTkLsJSkD2fxGtNxdufxsJ+67xUTt3ye9ZrghZYOrLzGyrhEvriqGi3B6uobJIyblAynR6oFFTNCJOMGGxskJ5BdADo7FeAyxdoqbH33rPREi+vnDSXiYY1cj3BA1ABAoBqBBc.uYDYdTcaIiR.r9Mh4LbBnFS8gXoxiMkBSeBD.hnaG56q.dpwizLPXNiXxIDGkz1Sw7IPZVpVfgjsqmbgYfzmxmXThN1p.xd4ZwzqqcSEib0rq4GkKmjwKs54slwfKMXs9FAd58PFXqqDhrYbftIlwtEtr15imKTIWexDSW7be.SB2B2GjpYp03jYPR4Vwsh4w0F4HXExcHigBAEtKTSjWP38TSqJ.RBbPjlFbVrIVUlrfqQ9+gRGHalheHRezwvVuT13xJ64EtGrPbO2MJ4sVdLTkAIjyvRr5JPqxC616ptMZMn56CD7xeD8smusZAoj.AiT0Cp4jV1ySXcuQpuRXADibd9ZwiU12ipezJ5eetSl8DRReviUm6L.9qyZ73MxKolIpcyFXqlav+gTzhG5dKwO+odkfPi0U6V+jsqasc7QhbBJ3c3TYeORx51BlipKr58h81QImoTc4SPHHpLpG+SS5w2TUt1PLGQAy7U5ENFghbkbyVcB5pNpb8RiB1O6tef1YjO.ydEOHQI8yHA2IEdQxlbnFb+GIDlizz09KXuWnd4OgWf5.0qJLEc+OR6a0SZoYzn+fWY13zgCM51uW+gus2nyM505pA8Ou+fdvXfEF2AFzR3DxvxUm9RMlYBC.LqLxipIO.Q4h7ig9HFIq1CNR11Bwmoeopyzlw3da.iPJ6+CLlLH6Wn2Z7XHgkAvCza+lccp0+isefHTBMt5hg9WpRgdgtCg42sIvty4v0Hpxi8TGAhWWSsVEAFR3NQK9G3IgYc0ZsDl0WxDJxr8EuyN9fiZT4OMhBfIdzWFTB9DEXsY8kmQz0qUsFxElZ+c11J2+6piPaVmueGz4ncPmi2Ac9gcPmWrC57i6fN+zCpi5ClNMTJbiON.DtrUzcUZZs3XnxJpJD8u.SjMMJ.
-
Place this at the top of the function and tell me what output it gives.
Console.print(newExpansion.getRootFolder().toString(0));
-
@d-healey said in Expansion - Access AdditionalSourcecode file:
Console.print(newExpansion.getRootFolder().toString(0));
I get the path of the expansion folder on my drive
-
@danh And the path is correct and that's the same root folder of where your data json file is?
Also try this in the top of the function and tell me what the output is
Console.print(trace(newExpansion.getDataFileList()));
-
@d-healey path is good, I copied the json to that folder as well as the ASC folder
-
-
@danh So it's not finding your expansion's data files. Are your data files in your expansion's additional source code folder or your project's additional source code folder?
-
@d-healey expansion only
-
@danh zip your project (without samples, pool, and binaries folder) and send it to me
-
I think you've found a bug. Might be related to this issue - https://forum.hise.audio/topic/5121/confusing-convolution/21
-
@Christoph-Hart Here is a minimal example that demonstrates the problem. I think this is related to the other problem some of us have been having with accessing files when using expansions.
-
@DanH I was playing around with this some more today and it seems to load the data file correct (not sure if this is due to a recent change), but the
getDataFileList()
function is still returning an empty array. -
@d-healey thanks. Would you mind sending me a snippet to look at please?