Forum

    • Register
    • Login
    • Search
    • Categories

    Convolution on Raw API

    C++ Development
    2
    5
    164
    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.
    • hisefilo
      hisefilo last edited by

      Hi guys. Anyone knows how to add a convolution FX on the Raw API? I added it as other classes I've already implemented, but no sound comes out. Impulse response "conv1.wav" is already pooled. This is the code:

          
          
          auto mainIr = [mc, storagePtr](int index)
          {
              raw::Builder builder(mc);
              
              //  Conv Reverb
              auto convolutionReverb = builder.create<ConvolutionEffect>(mc->getMainSynthChain(), raw::IDs::Chains::FX);
              convolutionReverb->setId("convolutionReverb1");
              convolutionReverb->setLoadedFile("conv1.wav");
              convolutionReverb->setImpulse();
              convolutionReverb->setAttribute(ConvolutionEffect::WetGain, 0, dontSendNotification);
              convolutionReverb->setAttribute(ConvolutionEffect::ProcessInput, 1, dontSendNotification);
          };
          
          mainIr(0);
      
      hisefilo 1 Reply Last reply Reply Quote 1
      • hisefilo
        hisefilo @hisefilo last edited by

        @Christoph-Hart

        hisefilo 1 Reply Last reply Reply Quote 0
        • hisefilo
          hisefilo @hisefilo last edited by hisefilo

          giphy.gif

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

            @hisefilo Try setLoadedFile("{PROJECT_FOLDER}conv1.wav").

            hisefilo 1 Reply Last reply Reply Quote 1
            • hisefilo
              hisefilo @Christoph Hart last edited by

              @Christoph-Hart YEAHHHHH that was it. Helped me also to find out I need to add a Convolution Reverb Module on HISE and to load the IR to be pooled (yes... fool of me)
              Thanks man! Now we can go for some amp sims for my instruments!

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

              19
              Online

              741
              Users

              5.4k
              Topics

              50.4k
              Posts