HISE Logo Forum
    • Categories
    • Register
    • Login

    Get Modulator

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 223 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CasmatC
      Casmat
      last edited by

      Hey!

      I currently have this script and it utilizes one of the ahdsr's under the gain modulation under a sampler. The script is placed within the midi processor of the sampler and I'm wondering how I can reference that modulator without using the name and instead using the index? I can do this with a sampler, but can't find a way to do it for modulators within that sampler:

      const samplerId = Synth.getIdList("Sampler")[0];
      const sampler = Synth.getSampler(samplerId);
      

      Thanks!

      i make music

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by d.healey

        Add yourself a module browser popup window and then you can find the names of all the different modules

        3c326a29-0fe9-4e5d-85fa-a8d7646c2797-image.png

        So Synth.getIdList("AHDSR Envelope"); in this case.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        CasmatC 1 Reply Last reply Reply Quote 0
        • CasmatC
          Casmat @d.healey
          last edited by

          @d-healey ahh Thanks!

          i make music

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          52

          Online

          1.7k

          Users

          11.7k

          Topics

          102.1k

          Posts