HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Tags
    3. sample folder
    Log in to post
    • All categories
    • trillbillyT

      User Specified Sample Folder per Sampler?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting sample folder custom samples folder location
      5
      0 Votes
      5 Posts
      456 Views
      trillbillyT

      @Lindon said in User Specified Sample Folder per Sampler?:

      FileSystem.browseForDirectory(var startFolder, var callback)

      Yes, thank you. I have added this to the SampleLoadSave.js of the CustomSampleImport project. On Right Click, it opens the directory browser twice. I can select a folder but it does not load the samples in the folder or randomize the folder.

      SampleDropper.setMouseCallback(function(event) { // Clear the sample on double click if(event.doubleClick) { Sampler1.clearSampleMap(); return; } this.data.hover = event.hover; // Show a directory browser on right click if(event.rightClick) { FileSystem.browseForDirectory(FileSystem.Samples, loadSample); return; this.repaint(); } });

      Here is how I am randomizing some components in case I need something here. I know there is a way to reduce the script, I just don't know it.

      const sampleMapsRAN = Sampler.getSampleMapList(); inline function onShuffleSamplebtn1Control(component, value) { if (value) { local index = Math.randInt(0, sampleMapsRAN.length); local sampleMap = sampleMapsRAN[index]; Sampler1.loadSampleMap(sampleMap); SampleViewer1.setValue(index); SampleName1.setValue(list[index]); } }; Content.getComponent("ShuffleSamplebtn1").setControlCallback(onShuffleSamplebtn1Control);

      Thanks again.

    • trillbillyT

      2nd Instance of Compile Plugin Cannot Locate Samples

      Watching Ignoring Scheduled Pinned Locked Moved General Questions custom samples sampler sample folder
      2
      0 Votes
      2 Posts
      254 Views
      trillbillyT

      Bizzump...

    • trillbillyT

      Plugin Keeps Asking For Sample Folder

      Watching Ignoring Scheduled Pinned Locked Moved General Questions sample folder sample relocate sample import
      8
      0 Votes
      8 Posts
      380 Views
      d.healeyD

      @Morphoice Send me your project folder - without the Samples, Binaries, or PooledResources folders.

    • trillbillyT

      Button for "Change Sample Folder Location" out settings?

      Watching Ignoring Scheduled Pinned Locked Moved General Questions settings sample folder
      14
      0 Votes
      14 Posts
      857 Views
      Matt_SFM

      @d-healey oh? Didn't know that