Forum
    • Categories
    • Register
    • Login

    NAM Model switching logic

    Scheduled Pinned Locked Moved General Questions
    5 Posts 4 Posters 58 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.
    • P
      pratitghosh
      last edited by

      Screenshot 2026-03-25 115504.png

      I have 101 nam files, 0.nam to 100.nam, I want the Drive knob to switch between those models. But the neural network stays stuck at the default 50.nam... Can someone please help?

      (Sorry for tagging you all, idk if this is the right etiquette here or not, but I saw @aaronventure and @Lurch discussing the same topic and I did take inspiration from their code to try this out. Also, @David-Healey and @Christoph-Hart, please help.)

      OrvillainO David HealeyD 2 Replies Last reply Reply Quote 0
      • OrvillainO
        Orvillain @pratitghosh
        last edited by

        @pratitghosh said in NAM Model switching logic:

        I have 101 nam files, 0.nam to 100.nam, I want the Drive knob to switch between those models. But the neural network stays stuck at the default 50.nam... Can someone please help?

        That's probably not going to give you the result you want. It will not smoothly blend like a drive knob does, and even if it does, it will probably hammer the CPU.

        Musician - Instrument Designer - Sonic Architect - Creative Product Owner
        Crafting sound at every level. From strings to signal paths, samples to systems.

        P 1 Reply Last reply Reply Quote 0
        • P
          pratitghosh @Orvillain
          last edited by

          @Orvillain said in NAM Model switching logic:

          That's probably not going to give you the result you want. It will not smoothly blend like a drive knob does, and even if it does, it will probably hammer the CPU.

          Yeah. I know that's a risk, But I want to atleast see if it CAN be done. Because I can look into optimisation later... But honestly I can't even switch the models at all...

          On that note, you got any ideas on what I could do? Maybe creating a saturation algorithm from all these nam models? Then I could make the plugin an algorithmic saturation plugin...

          resonantR 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @pratitghosh
            last edited by David Healey

            @pratitghosh Why are you rounding the value of the knob? Can't you change the step size instead?

            You don't need an else after a return on the if.

            if (modelIndex == index) - where are you changing the value of index?

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            1 Reply Last reply Reply Quote 0
            • resonantR
              resonant @pratitghosh
              last edited by resonant

              @pratitghosh you can just use bypass nodes for each model. And these modes will be connected to a xfader node, so it will switch between models

              Edit: 100 models are pretty huge, maybe multiple xfader nodes, each one will switch 8 models

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

              21

              Online

              2.2k

              Users

              13.5k

              Topics

              117.7k

              Posts