HISE Logo Forum
    • Categories
    • Register
    • Login

    Passing a Reference to an Effect?

    Scheduled Pinned Locked Moved Solved Scripting
    5 Posts 2 Posters 150 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.
    • clevername27C
      clevername27
      last edited by clevername27

      I must be doing this wrong - does anyone know how to do it? Cheers.

      const var myHISEConvolutionRvb = Synth.getAudioSampleProcessor("myHISEConvolutionRvb");
      
      inline function GetRvbID (theRvb) {
      
            Console.print(theRvb.getId());
      }
      
      GetRvbID (myHISEConvolutionRvb);
      

      I'm getting this:

      2b54271b-ce06-4795-8023-b51508a44e3d-Screenshot 2024-03-29 at 20.03.58.png Screenshot 2024-03-29 at 20.03.58

      …which makes think of casting the type, but that's not necessary as per:

      404e6949-6053-4708-96da-bfbd4557594c-Screenshot 2024-03-29 at 20.10.39.png

      …which means I must be missing something obvious. 🤔

      Thanks and cheers.

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

        @clevername27 Try getId()

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

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.healey
          last edited by

          @d-healey Thanks for reading - I accidentally typed that incorrectly into my form post. (I've been using getId.)

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

            @clevername27 Do you have a snippet that demonstrates the issue?

            AudioSampleProcessor doesn't have a getId() function

            d373d821-984a-4e12-a287-ddbd4c1c2ffd-image.png

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

            clevername27C 1 Reply Last reply Reply Quote 1
            • clevername27C
              clevername27 @d.healey
              last edited by

              @d-healey Thank you, Dave.

              1 Reply Last reply Reply Quote 0
              • clevername27C clevername27 has marked this topic as solved on
              • First post
                Last post

              50

              Online

              1.7k

              Users

              11.7k

              Topics

              102.1k

              Posts