Forum

    • Register
    • Login
    • Search
    • Categories

    confusing convolution

    Scripting Forum
    3
    37
    685
    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.
    • iamlamprey
      iamlamprey last edited by

      Okay this one is really hurting my brain

      My convolution doesn't work when I load an expansion...

      Upon opening the plugin, I can select whatever impulse and everything works fine, but the instant I load an expansion the convolution goes mute.

      I assume it is checking the Expansion folder for the audiofile, despite me specifically typing {PROJECT_FOLDER} in the string...

      Has anyone else come across this? Is this normal behavior? Is there a way to just force it to use the default audio folder instead of the expansion one?

      New Song 🥰 - Instruments

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

        @iamlamprey I've noticed a problem that might be related. If I load an expansion that includes scripts in a sub folder of the main project I get a file not found error and the expansion won't load properly. I did a bit of debugging and found it's looking in the expansion directory instead of the parent project directory, but I couldn't figure out a solution.

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

        Christoph Hart iamlamprey 2 Replies Last reply Reply Quote 1
        • Christoph Hart
          Christoph Hart @d.healey last edited by

          @iamlamprey are you using the full instrument expansion mode? If not, you need to address the content in an expansion using the {EXP:ExpansionName} wildcard instead of {PROJECT_FOLDER}.

          d.healey 1 Reply Last reply Reply Quote 0
          • d.healey
            d.healey @Christoph Hart last edited by

            @christoph-hart I think he wants it to use the content of the project, not the expansion.

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

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

              @d-healey said in confusing convolution:

              @christoph-hart I think he wants it to use the content of the project, not the expansion.

              Yes, the IRs are in the main audiofiles folder, this problem appeared after swapping to develop/new_layout

              Also I thought I might have somehow had two copies of source on my computer, so I did a clean install, but on the latest commit I keep getting this message

              8a3b3a62-302f-4d35-9b6f-d7b1802ddf73-image.png

              New Song 🥰 - Instruments

              1 Reply Last reply Reply Quote 0
              • iamlamprey
                iamlamprey last edited by iamlamprey

                Still need help with this... in the latest commits I just get stuck in a "The Sample Directory Could Not Be Located" loop... I've changed nothing in my code so idk what is causing this

                New Song 🥰 - Instruments

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

                  @iamlamprey Okay this commit gets rid of the Sample Missing prompt... but I still can't swap IRs in the convolution once I select an expansion 😧

                  Edit: just noticed my cpu is jumping to 50% now without any FX turned on, I assume because I didn't compile my scriptnode trees (even though they're only a few nodes)

                  New Song 🥰 - Instruments

                  1 Reply Last reply Reply Quote 0
                  • iamlamprey
                    iamlamprey last edited by

                    bumpy bump 🙂 still need help with getting the convolution to NOT use the expansion audiofiles when I load one

                    New Song 🥰 - Instruments

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

                      @d-healey said in confusing convolution:

                      @iamlamprey I did a bit of debugging and found it's looking in the expansion directory

                      How did you debug it to find out it's looking in the expansion folder? I assume the same thing can work for audiofiles

                      New Song 🥰 - Instruments

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

                        @iamlamprey

                        How did you debug it

                        Using a debugger (gdb).

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

                        1 Reply Last reply Reply Quote 0
                        • iamlamprey
                          iamlamprey last edited by

                          Alright I've tried a bunch of older commits, different expansion folders, different string formats ".wav, .WAV" etc and I still can't get this working.

                          Once I have an expansion loaded, the convolution tries to load files in the expansion folder instead of the main folder, despite {PROJECT_FOLDER} being present...

                          inline function onComboBox_AmpCabSelectControl(component, value)
                          {
                              local fullCabName = "{PROJECT_FOLDER}Cab " + Math.round(value) + ".wav";
                          	Amp_Cab.setFile(fullCabName);
                          };
                          
                          Content.getComponent("ComboBox_AmpCabSelect").setControlCallback(onComboBox_AmpCabSelectControl);
                          

                          This code works on the master branch but not on develop. Idk what changed but it's doing my head in 😲

                          I thought the ComboBox returning a decimal (1.0) instead of an int was the cause, but it still doesn't work with rounding, and I've tested Console.print() to make sure it was the right string

                          Out of ideas at this point

                          New Song 🥰 - Instruments

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

                            @iamlamprey

                            Out of ideas at this point

                            I think this requires a Christoph level fix.

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

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

                              @d-healey Wish I was a c++ wizard 😞

                              New Song 🥰 - Instruments

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

                                @iamlamprey You can be, if you start now and work at it for 5+ years 🙂

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

                                1 Reply Last reply Reply Quote 5
                                • iamlamprey
                                  iamlamprey last edited by

                                  bumpy 🙂

                                  New Song 🥰 - Instruments

                                  1 Reply Last reply Reply Quote 0
                                  • iamlamprey
                                    iamlamprey last edited by

                                    Still need help with this... any new Commit I get stuck in a "The Sample directory could not be located" loop.

                                    5057870f-34a2-41ea-9b09-caac7f0aad6d-image.png

                                    And any older commit past Master looks for audiofiles in the Expansion folder, despite me using {PROJECT_FOLDER} wild card.

                                    This is the last thing bottlenecking my MacOS release, I haven't changed a line of code since moving from Master to Develop

                                    New Song 🥰 - Instruments

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

                                      @iamlamprey said in confusing convolution:

                                      And any older commit past Master looks for audiofiles in the Expansion folder, despite me using {PROJECT_FOLDER} wild card.

                                      So this issue is fixed now?

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

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

                                        @d-healey Sorry, any newer* commit

                                        Anything on Develop branch is either looking for the audiofiles in the Expansion's subfolders, or its not embedding them in the first place

                                        New Song 🥰 - Instruments

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

                                          I might make a barebones expansion project and see if it can do what I need it to

                                          New Song 🥰 - Instruments

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

                                            @iamlamprey said in confusing convolution:

                                            @d-healey Sorry, any newer* commit

                                            Yeah that sounds similar to the issue I'm having.

                                            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

                                            4
                                            Online

                                            1.2k
                                            Users

                                            7.0k
                                            Topics

                                            64.8k
                                            Posts