HISE Logo Forum
    • Categories
    • Register
    • Login

    More than 8 RR crossfades?

    Scheduled Pinned Locked Moved General Questions
    9 Posts 3 Posters 413 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.
    • T
      tomekslesicki
      last edited by

      Hey guys, any idea how to get more than 8 RR crossfades? I can split the instrument between two samplers but if there's some text in the code I could hack, it would be really amazing!

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

        @tomekslesicki Add more groups and use scripting to switch them.

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

        1 Reply Last reply Reply Quote 0
        • T
          tomekslesicki
          last edited by

          Sounds interesting! Would this allow me to, say, assign an envelope to the crossfade and modulate through all the groups with that?

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

            @tomekslesicki Crossfade can only go up to 8 groups.

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

            1 Reply Last reply Reply Quote 0
            • T
              tomekslesicki
              last edited by

              Yup, hence the question ;-) Is there a way to make it go to more?

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

                Oh right, I misunderstood, I thought you wanted round robin not crossfades.

                You can have as many RRs as you want, you can only have 8 crossfades. If you want more than 8 you'd need to script it, something like Nils' script for Kontakt - https://nilsliberg.se/ksp/scripts/scripts.html#crossfade

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

                1 Reply Last reply Reply Quote 0
                • T
                  tomekslesicki
                  last edited by

                  Sounds like scripting hell to me ;-) Thanks, though!

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

                    No need to decent into scripting hell for that one.

                    The number 8 is currently just hardcoded into the sampler code, but I don't see any reason why it shouldn't be available as preprocessor macro that you can change for projects that require more crossfade groups.

                    I am currently heads deep in a non-working branch, but you can solve that little riddle for yourself:

                    Do a search and replace in this file

                    Link Preview Image
                    File not found · christophhart/HISE

                    The open source framework for sample based instruments - File not found · christophhart/HISE

                    favicon

                    GitHub (github.com)

                    for the number 8 in conjunction with anything that says crossfadeBlablabla and replace it with HISE_NUM_CROSSFADE_TABLES (there are 3 matches). Then do the same here:

                    Link Preview Image
                    File not found · christophhart/HISE

                    The open source framework for sample based instruments - File not found · christophhart/HISE

                    favicon

                    GitHub (github.com)

                    so that you can select them in the UI.

                    then in the file

                    Link Preview Image
                    File not found · christophhart/HISE

                    The open source framework for sample based instruments - File not found · christophhart/HISE

                    favicon

                    GitHub (github.com)

                    add these before the marked line:

                    #ifndef HISE_NUM_CROSSFADE_TABLES
                    #define HISE_NUM_CROSSFADE_TABLES 9 // or anything else...
                    #endif
                    

                    Now recompile HISE and you should be able to use more than 8 tables. You can then change this number per project by adding HISE_NUM_CROSSFADE_TABLES=23 to the ExtraDefinitionXXX properties in the project settings.

                    Let me know if that worked. I'll incorporate the change when I'm back on track, so you don't need to branch for this.

                    EDIT: I've linked to the old master branch files, but you can of course use the version you're currently using - this code hasn't changed for a long time :)

                    1 Reply Last reply Reply Quote 2
                    • T
                      tomekslesicki
                      last edited by

                      Awesome, thanks so much, I'll give it a go! :-)

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

                      42

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.9k

                      Posts