HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. bendurso
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 87
    • Posts 576
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: .ch1 samples stop working in compiled VSTi (did i miss something?)

      @Straticah Yeah, this is my code to install the expansions (i'm actually saving other things on that json file, so that's why I used "SampleFolder" to retrieve it from the json)

      var CompletePath;
      
      inline function InstallPackage()
      {
      	local parentFolder = FileSystem.getFolder("../");
      	local SampleFile = parentFolder.getChildFile("settings.json");
          local SampleObject = SampleFile.loadAsObject();
          
          local DirectoryFile = FileSystem.fromAbsolutePath(SampleObject.SampleFolder);
          
          CompletePath = DirectoryFile.createDirectory(InstrumentName);
            
          if (CompletePath.isDirectory())
          {       
                 expHandler.installExpansionFromPackage(selectedInstrumentFile, CompletePath);  
          }
          else
          {
              Console.print("Could not create the installation directory.");
          }
      }
      

      When I use expHandler.installExpansionFromPackage, it creates the link file on expansion samples folder with the samples path. It always worked for me, and I never received a support ticket.

      And then I created my own button to change the samples path on settings. This will change the sample paths for all the expansions.

      inline function onbtnChangeSamplesDirectoryControl(component, value)
      {
          if (value)
          {
              FileSystem.browseForDirectory("", function(selectedFolder)
              {
                  if (selectedFolder)
                  {
                      if (selectedFolder.hasWriteAccess())
                      {
                          var path = selectedFolder.toString(0);
                          currentSampleFolderPath = path;
      
                          var notFound = [];
      
                          for (e in expHandler.getExpansionList())
                          {
                              var name = e.getProperties().Name;
                              var fullPath = path + "/" + name;
                              var folderObject = FileSystem.fromAbsolutePath(fullPath);
      
                              if (folderObject.isDirectory())
                              {
                                  e.setSampleFolder(folderObject);
                              }
                              else
                              {
                                  notFound.push(name);
                              }
                          }
      
                          if (notFound.length > 0)
                          {
                              Console.print("Not found");
                          }
                          else
                          {
                              Console.print("All sample folders updated successfully");
                          }
                      }
                      else
                      {
                          Console.print("The selected folder can't be accessed due to insufficient write permissions. Please choose a different folder.");
                      }
                  }
              });
          }
      };
      
      Content.getComponent("btnChangeSamplesDirectory").setControlCallback(onbtnChangeSamplesDirectoryControl);
      
      posted in General Questions
      bendursoB
      bendurso
    • RE: .ch1 samples stop working in compiled VSTi (did i miss something?)

      @Straticah What I do is this: when the user opens the plugin for the first time, I ask them where they want to store all the samples and save that path in a JSON file.

      Then, during each expansion installation, when I call expHandler.installExpansionFromPackage, I always send the samples to that folder inside a new subfolder. The file link is created automatically by this function.

      If the user later wants to change the location, I provide a master configuration option for relocating samples. So I call Expansion.setSampleFolder for all the expansions and change the path of the json file. This way, the user can simply move all expansions at once.

      I analyzed different approaches a while back, and this one seemed the most reasonable.

      posted in General Questions
      bendursoB
      bendurso
    • How to imitate Residual Noise Settings with setResynthesisOptions()

      When using WavetableController.getResynthesisOptions(), we get a json file like this:

      {
        "PhaseMode": "StaticPhase",
        "MipMapSize": 12,
        "CycleMultiplier": 4,
        "UseTransientMode": true,
        "NumCycles": -1,
        "ForceResynthesis": false,
        "UseLoris": true,
        "ReverseOrder": false,
        "RemoveNoise": true,
        "DenoiseSettings": {
          "SlowFFTOrder": 13.0,
          "FastFFTOrder": 9.0,
          "FreqResolution": 500.0,
          "TimeResolution": 0.2000000029802322,
          "CalculateTransients": true,
          "SlowTransientTreshold": [
            0.8,
            0.7
          ],
          "FastTransientTreshold": [
            0.85,
            0.75
          ]
        },
        "RootNote": -1
      }
      

      How can we set this file to imitate the modes "Residual", "mix" and "solo" from the stock tool wavetable creator?

      I tried changing "RemoveNoise" and different "DenoiseSettings" but no luck to imitate the "Mix" and "Solo" modes

      posted in General Questions
      bendursoB
      bendurso
    • RE: How to make dynamic expansion Artwork accessible for Webview?

      @Straticah To get the Tags text you can use

      ExpansionHandler.getCurrentExpansion().getProperties().Tags
      

      Supposing that is for the current expansion getCurrentExpansion(), but you could use any expansion.

      It doesn't contain a description field in the expansion_info.xml.

      posted in General Questions
      bendursoB
      bendurso
    • RE: `setCurrentExpansion` changes the input paths

      @daniloprates This happens to me sometimes as well. I'm not sure if that's the only reason, since it has occurred on projects without expansions.

      Other than having to move the mouse a bit more, everything works fine :)

      posted in Newbie League
      bendursoB
      bendurso
    • RE: Hise won't open on Windows 10

      @d-healey Did you remove /arch:AVX from extra compiler flags or did you something else? I tried and didn't work on that machine

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      @Christoph-Hart Nice, thanks. I rebuilt HISE with the latest commit and re-exported the plugin, but nothing changed for me.

      What I find strange is that on Mac, the exported app (or plugin) opens instantly without any delay, while on Windows it takes about 5 seconds to load. My Mac is a bit more powerful than my Windows PC, but not five times more powerful.

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      @Christoph-Hart Thanks for your reply and details to debug it :)

      It turns out I was mistaken—the commit I mentioned doesn’t work either.

      I created a test project with a lot of sliders, labels, buttons, and comboboxes (using the latest commit), and exported it as a standalone app.

      In HISE, the WebView works (the btnNews button shows and hides it), although the interface loads slowly. However, in the exported standalone app, it takes a long time to launch, and the WebView’s HTML doesn’t load.

      If I remove the WebView, the interface loads much faster in both HISE and the standalone app.

      This issue only occurs on Windows; everything works fine on Mac.

      https://we.tl/t-S7yxRTEQQw

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      I found that commit ffc821ed0dcbde87c3b29dac9023b4b11eaeaf0e (enabled compilation of HISE with IPP by default) works fine. So the issue must be in a newer commit.

      The plugin loads much faster, and the html file loads too. @Christoph-Hart maybe this info helps :)

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      @bendurso After a lot of testing, I figured out why the index.html file wasn’t loading. Once I deleted all the UI components (panels, sliders, etc.), it finally worked.

      One thing I noticed is that the standalone app now opens way faster—went from 5 seconds to almost instant. Makes sense since there are fewer elements to load, but it always loads fast on Mac.

      So maybe the HTML file isn’t loading because of too many UI elements? The weird part is I only see this issue on Windows, not Mac. A couple commits ago it was fine, but I can’t roll back since I’m using the new AHDSR Flex now.

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      @d-healey yeah I know. If I embed the Image Files will be into the plugin itself. But the issue is not here because I'm being able to make it work in a new small project with the same script and html (in the compiled plugin).

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      Yeah I found the issue.. for some reason in the compiled plugin it doesn't find the html file. I checked it with File.isFile() and only founds it on Hise.

      I have the setting "Embed Images Files" enabled. I tried also disabling this and putting the ImageResources.dat into the appdata folder, but same issue.

      This is how I'm getting the file:

      const var webroot = FileSystem.getFolder(FileSystem.AudioFiles).getParentDirectory().getChildFile("Images/news");
      WebView1.setIndexFile(webroot.getChildFile("file.html"));
      

      The weird thing is that.. in a new project it works. But on my existing project it doesn't. Any ideas on what else could be blocking the file?

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      @Christoph-Hart Thanks, I tried with and without cache/persistence, but it still doesn’t work.

      But.. I tested the same script along with the same HTML file in a new project, and it works. There must be something in my project that’s preventing the page from rendering. I used the same project settings.

      It actually doesnt even load the html in the original project, because I have a spinner while the page is loading. And I don't even see the spinner.

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      @Straticah I noticed that the ‘PlayCanvas’ example had caching disabled. I changed it to enabled, and it works now in the compiled version.

      In my project, I had caching and persistence enabled, so there must be another reason why it doesn’t work. But at least now I know it’s supposed to work. Thanks :)

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      @Straticah Yep, I have these settings enabled. Another setting of the plugin that may be related?

      posted in General Questions
      bendursoB
      bendurso
    • RE: Webview Doesn't Work on Compiled Plugin in Windows

      @Straticah Thanks, made the test and got the same issue, works on HISE, not in compiled plugin

      Screenshot 2025-09-17 140747.jpg

      posted in General Questions
      bendursoB
      bendurso
    • Webview Doesn't Work on Compiled Plugin in Windows

      On Mac, it works fine in HISE and in the compiled plugin too.

      In Windows, it works in HISE but not in the compiled plugin.
      I have enableCache enabled and then applied the reset as I saw in other posts.

      I'm using the same commit on Windows and Mac (last week commit Sep 9, 2025)

      I'm rendering a page of my website like in this example https://forum.hise.audio/topic/9159/webview-doesn-t-work-in-compiled-plugins-and-stand-alone-apps/5

      posted in General Questions
      bendursoB
      bendurso
    • RE: How to reliably save samplemaps in preset? (Expansions)

      @Straticah Oh, I just reread your original question—you were actually asking how to do it.

      Yes, I used a label to save the samplemap name. The combobox still relies on the samplemaps array (with saveInPreset disabled), but I use the label to store the string name. Then I restore the combobox by matching the samplemap name.

      edit: actually, David told me to do this a couple a months ago lol.

      posted in General Questions
      bendursoB
      bendurso
    • RE: How to reliably save samplemaps in preset? (Expansions)

      @Straticah Oh, I did something similar a few days ago.

      I asked ChatGPT to create a script to transform all the numeric values ​​into strings. To do this, I gave it the list of sample maps for each expansion (using Expansion.getSampleMapList), letting it know that the combo box has index 1. It worked like a charm.

      I can't find the script.. but in my case it was a little different because I used a hidden label to store the names of the samplemaps. Then of course it's required to update all the expansions.

      posted in General Questions
      bendursoB
      bendurso
    • RE: Hise won't open on Windows 10

      @d-healey said in Hise won't open on Windows 10:

      If you still have that Celeron machine running it would be good if you could test disabling AVX as Christoph mentioned and see if HISE then works.

      I’ve already uninstalled everything from that laptop, and installing/compiling things takes a long time, hehe. But when I export my plugin on the new computer with AVX, I’ll test whether the exported plugin works with or without that line.

      posted in General Questions
      bendursoB
      bendurso