HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Delamere
    3. Posts
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 49
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @Chazrox Thanks, I've done something different for the Preset Browser now, but I'll definitely check this out.

      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      Is there a way to change the maximum height of the ComboBox drop down so it becomes scrollable & doesn't cover the whole GUI.

      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @d-healey @Lindon

      Great it works, cheers guys.

      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @d-healey

      HiseSnippet 1315.3ocsW01aiTCD1aZ2x0b7xcRHw2Pqh3CoPUzlj1RuqBnMMsPzcsWTSuCjNfJmccRL0wNx1aaiP2W3WB+R32z8M9HLd2MYeIaeUvVolLdlG6mY1YFOoqT3QTJgDYU9zoSHHqOzt2Ttdz9ivTNpSaj0Sr6JIJh9rVRwkJhD0Z5DrRQ7QVVK88FqrVcYT3y6+tVXFl6QRVBgdif5QdIcLUmrZ2ceAkwND6SNkNNk0araGOAeeASD.LZIaWzDr243gjiwFyJYi9ArZDx5KsazXf21tta2r4ltXbSeLdi5jlOiLXqAda59LW+9a5B+sExZkC7oZgrmFqIJXSaI7m1aj3RdzA7Fph1mQLB0Q8fSNZYz9inL+tyBOJDxZ4tIAqkhBVep8QTe570SGzLJbRPjNnYU5lnT86AkrRQokinzSs64IoSzIZL74w1c3Zhb.Fd2jlJQ1hJ8YKYuu.rfqqMFeN4PIHLGQ0sbcW2A92Z6TtL79Qoct.KcxlV37MNy1ggD89hwSDbPnZkrlUwrGTNixINCB3dZpf6H3QF0ivHdZheUuYvWGNIV.Ysx+d4xNvCS3gYNyr6rHXvQOGf4v6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NEbS5X32EblmW1sZAfMdn.a9PAtwCE3lOTfa8PA90OTfae6.M+rs8BzhwQkSHzQcOH7BXKqC3XHaLLyE8uYcgRBA
      
      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @Lindon with the code that I replied to @d-healey with, it says: API call with undefined parameter 0

      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @d-healey Is this right?

      Content.makeFrontInterface(260, 50);
      
      const var Preset_Browser = Content.getComponent("Preset_Browser");
      
      inline function onPresetSelected(component, value)
      {
      
          local Selected_Preset = component.getItemText();
          Console.print(Selected_Preset);
          if (Selected_Preset.length > 0)
          Engine.loadUserPreset(Selected_Preset);
      
      }
      
      Preset_Browser.setControlCallback(onPresetSelected);
      
      inline function updateUserPresetList()
      {
          local User_Presets = Engine.getUserPresetList();
          Console.print("User Presets: " + User_Presets.join(", "));  
          Preset_Browser.set("items", User_Presets.join("\n"));
          
      }
      
      updateUserPresetList();
      
      
      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @Lindon Thanks for the reply.

      When adding + ".preset"; It Crashes Hise?

      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @d-healey

      Content.makeFrontInterface(260, 50);
      
      const var Preset_Browser = Content.getComponent("Preset_Browser");
      
      inline function onPresetSelected(component, value)
      {
      
          local Selected_Preset = component.getItemText();
          Console.print(Selected_Preset);
          Engine.loadUserPreset(Selected_Preset);
      
      }
      
      Preset_Browser.setControlCallback(onPresetSelected);
      
      inline function updateUserPresetList()
      {
          local User_Presets = Engine.getUserPresetList();
          Console.print("User Presets: " + User_Presets.join(", "));
          
      }
      
      updateUserPresetList();
      
      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @d-healey I have set this up, and the ComboBox shows the User Presets. But when you select a preset, it says it doesn't exist and doesn't load like it does in the PresetBrowser. Any idea why?

      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @d-healey Okay thanks.

      posted in General Questions
      D
      Delamere
    • RE: Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      @d-healey Okay thanks for the reply, is it possible to create a Save As Button that gives the option to save as a new Preset, not overwrite the current one?

      posted in General Questions
      D
      Delamere
    • Last hurdle: Does anyone know how to make a simpler drop down menu that displays the user presets?

      Just looking for something simple.

      A drop down menu that displays the Default Preset & user presets, where you can scroll through the list and select a preset. No overwrite or save prompt/option, it just loads the preset you select. Then when you've modified it to your liking you can save it as a new preset with a Save As button.

      posted in General Questions
      D
      Delamere
    • RE: How do you Tempo Sync ADSR?

      @d-healey okay thanks.

      posted in General Questions
      D
      Delamere
    • RE: How do you Tempo Sync ADSR?

      @d-healey Okay thank you that's very helpful. This is the script so far, can you please let me know if I'm doing it right?

      HiseSnippet 1626.3oc2Y0saaaCElJIps18u0g8.HXrKb2xRrSZRaQQQrisyhQh+AVtEq2r.ZIZahJS5IQmVugBzGgcauauF6t9HrGg9Hz2fMRJIKpDIGGi00lkbS347wy4iejT7Pl1tTKjmG0Enks6zwHf1szMmRXCqLDhIf5UAZesdWznwTCtYKixGV0rCX+oigddHafl1p+n.mVl0.xe93d6CcfDKTjI.34TrE5X7HLKxZ6RGgcbN.Zi5hGof9AkpaQIUnNzIbNspdAvXn0KgCPMgBXqnCND5MDn8c5asUeqGUnvi1d6cJ.gaaCgOnHZ6Gi5uaeqcJ73B181o.+2cAZWqlMlQcMYPFxCns19T6olCouh3mfmi8v8bPhFEAl7L6a9.pisXHJrBpLD6X2NTr7..M81QR2p9R22n2.aimYORB+JoCindnJfZqDmdqFidEUoWAE5k.kzTnzZ9T5d5lVt3wrHOB9bS85DFxsOjOOoREerfUN4F5UnbDD1FifuDcfKuwrdje2cKrtwCKb+mjM6laZzsS4llsa0oqw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eJ3XvKTba8Z86irXQDbM8C9oOMOGgZ5uie5uotIupH4UkkIOi+aMYTdNunzesnunz3E9EkZYwfmF9tCdwBrIZDtKeujmpwm4gNvE8KcDSfp1qPgtI55i6c.eblXeLgrItxUBkGQmPXwl4WcdOTUwk7gpV6KtGp5Jv96Xuk1c843008e8SA0B+aUF0fRniGRIXK0I0NHdE7CFv+JrBOSj79EwTYh6oJKI+vdxiPOm0fJdTRjukiQmxORQwrrZBk19mHqj1vyzhwY+O8qfplEsg+4VKiXWb9hs9BtfHrrPC4N7K8pg0VrUCye+zht38Ngb0eF4KaxFTU2UAc8tgEgckPXmU00UAoctEqr5+uKVoCcBCSFz.x+Zsnx5lSFYxKXvBI9uMPPNhGoPaEwg99sKHZ6Ww.wV13u4+D3rnnsVfyhgN+OIGifVtzSr7udu3aq2PZgOtIx+AZYzaHZaT77WnmWyN9DKq3g5bcbqksiaurc7AKaG2YY63tKaGe3x1wGcwcTTYV4IL5H+sl.Pi10jO.ilVMh3QPk6H.+Cv345RK
      

      How come it says this?

      Interface:! Line 9, column 14: Unknown function 'set' {SW50ZXJmYWNlfHwyMDN8OXwxNA==}

      @d-healey said in How do you Tempo Sync ADSR?:

      Some formula involving the tempo in BPM which you got from the transport handler

      Where is the tempo in BPM that I got from the Transport Handler?

      @d-healey said in How do you Tempo Sync ADSR?:

      you can check it's giving your the correct output

      How do I check?

      Thanks again this is very helpful.

      posted in General Questions
      D
      Delamere
    • RE: How do you Tempo Sync ADSR?

      @d-healey

      Since we last spoke, I have been constantly learning HISE scripting & I now understand a lot more about it.

      I have made simpler scripts based on other things I wanted to do, but I am really struggling to understand how to tempo sync the AHDSR knobs & this is the most important thing I need for my plug-ins. If you could please explain a few things to help me understand it more. This is what I’m stuck on..

      const var Transport_Handler = Engine.createTransportHandler();
      // Transport_Handler: Provides a Callback that tells the script when the tempo of the DAW has changed.

      Transport_Handler.setOnTempoChange(var sync, var f)
      // So for this Callback do I use a function & if so, is it an inline function or function?

      • “You can use the Tempo”

      Const var Get_Host_Bpm = Engine.getHostBpm(); - Is that right?

      • Combined with the value of the Knobs from the Interface (Which will be Tempo Synced) 1/4 etc.

      How do you get the value of the Knobs & where do I put them?

      • To calculate the number of milliseconds the Attack & Release should be.

      How do you calculate the number of milliseconds the Attack & Release should be?

      • You can use that calculated value (milliseconds) to set the Attack & Release Knobs of the envelope. .setAttribute()

      How do you set the Knobs of the envelope?

      What do I do with this.. Engine.getMilliSecondsForTempo(int tempoIndex) ?

      Thank you for your help.

      posted in General Questions
      D
      Delamere
    • RE: How do you Tempo Sync ADSR?

      @d-healey Okay I understand what you mean and agree with what you're saying. I am currently watching your video again. Thank you for your help.

      posted in General Questions
      D
      Delamere
    • RE: How do you Tempo Sync ADSR?

      @d-healey Sorry for the confusion, I wasn't asking for you to write it, just to explain it in simpler terms, for someone that's new to scripting. I know what I wan't to do & there are only several things that require scripting to make my Plug-ins do what I need them to. But no matter how much I read on the HISE website I just can't take it in properly or find what I need. I have watched the video you mentioned previously & I will watch it again and see if it makes more sense to me this time. I find videos easier to understand. But I am finding Youtube to be very limited when it comes to HISE videos based on the things I need to do. I can't find anything based around the Transport Handler or Tempo Syncing.

      Thanks.

      posted in General Questions
      D
      Delamere
    • RE: How do you Tempo Sync ADSR?

      @d-healey Okay thanks, if you have any time, could you please explain how to write a script that will mean I can change the AHDSR to be Tempo Synced for any Sampler I apply it to? Similar to what I did in scrip node but with the option to go to 0ms for the Attack, Hold, Sustain & Release if they're not needed.

      Thanks.

      posted in General Questions
      D
      Delamere
    • RE: How do you Tempo Sync ADSR?

      @d-healey So I could use a Linear Knob that goes from 0.0 to 23.0, as I will be using a Film Strip for my Knobs that won't display the value.

      Screenshot 2025-05-27 at 13.10.24.png

      Screen Recording 2025-05-27 at 13.19.08.mov

      But it's still not possible to go faster than 1/64t, so I'm guessing the only way is to modify the source code like @Mighty23 mentioned. This seems a bit too advanced for me though at this moment in time, but I will look into it.

      Would I still need to change the source code if I was to use the Transport Handler & Scripting? I really don't understand how to do it that way.

      Thanks.

      posted in General Questions
      D
      Delamere