HISE Logo Forum
    • Categories
    • Register
    • Login

    Loading IR sample folders...

    Scheduled Pinned Locked Moved General Questions
    8 Posts 4 Posters 1.9k 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.
    • orangeO
      orange
      last edited by

      • Is it possible to chose IR samples with buttons. For example: Long Hall, Small Hall, Big Room, Small Room IR sample selection.... I couldn't find any API for predefined audio for IR's

      • Is this possible with viewport or different way?
        0_1520798681886_ir1a-screen.png

      develop Branch / XCode 13.1
      macOS Monterey / M1 Max

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

        Oh yeah hot swapable IRs would be very useful.

        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

          This is already possible:

          const var convolution = Synth.getAudioSampleProcessor("Convolution Reverb");
          
          convolution.setFile("{PROJECT_FOLDER}Impulse2.wav");
          

          Note that you must not use Synth.getEffect() to get the reference that can load impulse responses, but the Synth.getAudioSampleProcessor() function that works with Loopers and Convolution Reverbs.

          You can call setFile from any control callback including a viewport callback.

          1 Reply Last reply Reply Quote 4
          • orangeO
            orange
            last edited by

            Very cool, it works!

            I'm trying to make a viewport that shows user selected folder's samples as a list (like below). When the folder icon clicked, and IR sample located, viewport will display all of the samples in the same folder with selected IR sample.

            But the code is not working....

            0_1520884786228_jjjjjjjjjjjjjjj.jpg

            const var Viewport1 = Content.getComponent("Viewport1");
            const var LoaderButton = Content.getComponent("LoaderButton");
            
            const var convolution = Synth.getAudioSampleProcessor("Convolution Reverb");
            
            
            inline function onLoaderButtonControl(number, value)
            {
               AudioSampleProcessor.setFile();
            }
            
            LoaderButton.setControlCallback(onLoaderButtonControl);
            
            
            
            inline function onViewport1Control(number, value)
            {        
               AudioSampleProcessor.setFile();     
            }
            
            Viewport1.setControlCallback(onViewport1Control);
            

            develop Branch / XCode 13.1
            macOS Monterey / M1 Max

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

              Yes that won't work. setFile() needs an argument which is the relative path to the audio file in the format "{PROJECT_FOLDER}Impulse2.wav".

              Ideally you have an array of available impulse response names and use the value of the callback which is the index of the clicked entry to get the actual filename.

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

                @christoph-hart So what if the user selected custom folders? (we can't have an array of the sample names)

                develop Branch / XCode 13.1
                macOS Monterey / M1 Max

                1 Reply Last reply Reply Quote 0
                • staiffS
                  staiff
                  last edited by

                  personally I prefer the current solution (Christoph) because with this system of array and listing it will include all the IR in the compilation, or absolutely have the folder IR to install (as the samples install folder if rompler) and no possibility to choose its IR via external reading.

                  Either keep both systems = internal IR listing AND right click to load external IRs

                  There are many IR collections on the internet (commercial and free) and so I prefer to choose them later, as I want, without them being dependent on the plugin.

                  Excuse me i'm French.

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

                    You can connect an AudioWaveform to a convolution reverb and then the user can right click it to load a file and use the dropdown / viewport for the embedded impulse responses to get both options.

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

                    14

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.7k

                    Posts