HISE Logo Forum
    • Categories
    • Register
    • Login

    Convolution Reverb newFileLoaded method gone?

    Scheduled Pinned Locked Moved C++ Development
    6 Posts 2 Posters 437 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.
    • hisefiloH
      hisefilo
      last edited by

      Hi @Christoph-Hart I'm bringing a 2021 Hise RAW C++ project to HISE 3.0.0 and I cannot figure out how to make convolution to work. newFileLoaded is not there anymore and IR is not loaded (I guess). Any clue?

      Screenshot 2023-04-13 at 12.15.50.png

          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->setAttribute(ConvolutionEffect::WetGain, 0, dontSendNotification);
              convolutionReverb->setLoadedFile("{PROJECT_FOLDER}hammerIR.wav");
      //        convolutionReverb->newFileLoaded();
              convolutionReverb->setAttribute(ConvolutionEffect::DryGain, -7, dontSendNotification);
              convolutionReverb->setAttribute(ConvolutionEffect::ProcessInput, 1, dontSendNotification);
          };
          
              mainIr(0);```
      hisefiloH VorosMusicV 2 Replies Last reply Reply Quote 0
      • hisefiloH
        hisefilo @hisefilo
        last edited by

        @Christoph-Hart can you drop a simple example of ConvolutionEffect implementation on RAW API?? cannot find any in docs nor forum. plz :)

        Also I found .wav file is not loaded as it was in HISE 2021. I've pooled as usual. What's the actual way to load a wav into ConvolutionEffect nowadays?

        JUCE v6.1.3
        WARNING: Not found: {PROJECT_FOLDER}hammerIR.wav
        
        1 Reply Last reply Reply Quote 0
        • VorosMusicV
          VorosMusic @hisefilo
          last edited by VorosMusic

          @hisefilo
          I think the attribute you're searching for is named "FileName". (instead of "LoadedFile")
          On the other part, I can't see whats wrong ... 🤔

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

            @VorosMusic Hi mate! No luck. FileName is not a method nor attribute of ConvolutionEffect as far as I can see.

            I guess the problem is that I am not able to make the pool correctly because still getting this:

            WARNING: Not found: {PROJECT_FOLDER}hammerIR.wav
            

            Meaning C++ RAW is not finding this file in the pool. (I guess:)

            Do we need to embed audio files and IR in some other way for HISE 3.0 RAW C++ ?

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

              @hisefilo I'm hitting this warning

              Screenshot 2023-04-14 at 08.43.47.png

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

                Well!! Figured it out. For others facing this: HISE 3.0.0 (AFAIK) and newer needs Engine.loadAudioFilesIntoPool(); in order to correctly pool audio files for C++ API

                So basically add:

                Engine.loadAudioFilesIntoPool();
                

                into the main script processor for your HISE project and proceed with the normal export.

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

                57

                Online

                1.7k

                Users

                11.7k

                Topics

                102.1k

                Posts