HISE Logo Forum
    • Categories
    • Register
    • Login

    Get script's chain ID

    Scheduled Pinned Locked Moved Feature Requests
    5 Posts 2 Posters 958 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.
    • d.healeyD
      d.healey
      last edited by

      It would be useful to have a function that returns the ID of the script's chain for use with functions like addModulator so that it can be inserted into the same chain as the script while allowing the code to be generic.

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

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        Do you mean the Container of the script? Technically, the Script's chain is the MidiProcessor, so it has always the same ID...

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

          I think I'm misunderstanding the chain ID parameter of the addModulator function because I've just realised it's expecting an integer. Could you show me a usage example for this function when you have some free time? (no rush at all).

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

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by

            1 is Gain Modulation, 2 is Pitch Modulation - simple as that :)

            // Adds an LFO to the Gain chain
            const var myLFO = Synth.addModulator(1, "LFO", "My Funky LFO");
            

            I think the special Modulation chains (eg. the Sample Start Chain) are not supported. Do you need it?

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

              Aha! thanks, that makes perfect sense to me now. No I don't need a sample start one - at the moment anyway :)

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

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

              55

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts