Forum
    • Categories
    • Register
    • Login

    Neural Amp Modeler (NAM) in HISE

    Scheduled Pinned Locked Moved General Questions
    40 Posts 20 Posters 7.6k 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.
    • L
      Lurch @JulesV
      last edited by Lurch

      @JulesV Don't know if this helps but I have this working fine in my current project:

      //ML Model Loader
      const neuralNetwork = Engine.createNeuralNetwork("Plasma");
      
      const namModel = FileSystem.getFolder(FileSystem.AudioFiles).getChildFile("Plasma.json").loadAsObject();
      
      neuralNetwork.loadNAMModel(namModel);
      ;
      
      

      I renamed my NAM model to a JSON, in this case Plasma.json and put it in AudioFiles as I found Samples wasn't working reliably for me.
      This then pops up in the Neural node in scriptnode no problem. This is a 1000 Epoch NAM model so the json is pretty big/has a lots of weights.
      Again, hope this helps!
      And thanks so much @aaronventure for the help getting this going, it's been a bit of a game changer for me distortion wise!

      A S 2 Replies Last reply Reply Quote 2
      • A
        aaronventure @Lurch
        last edited by

        @Lurch said in Neural Amp Modeler (NAM) in HISE:

        EDIT: Ignore the Const Var at the end there, copied by accident, doing a few things at once.

        this is funny because you could've used the edit to remove it 😆

        L 1 Reply Last reply Reply Quote 2
        • L
          Lurch @aaronventure
          last edited by

          @aaronventure it's been a long week 🤦 :

          1 Reply Last reply Reply Quote 1
          • S
            sinewavekid @Lurch
            last edited by

            @Lurch i also got the NAM files working and loading pretty well and easily, just by making a "Neural1.js" file in my project scripts folder , and inside the .js file is just

            const Model1 = {paste the entire .nam file contents into here};
            

            and the basic way i was loading it (can be iterated with functions for multiple models/combobox control too) is like this roughly

            include("Neural1.js");
            const namModel1 = Engine.createNeuralNetwork("NN_1");
            namModel1.loadNAMModel(Model1);
            
            

            and for loading multiple NAM files, i am using a branch node within scriptfx for switching between multiple neural nodes, which allows for 16 max child nodes when turning into a hardcoded master fx ive found . u also have to manually select the networks in every neural node dropdown within ScriptFX, which would be amazing to somehow be able to have it auto select it/load it

            if anyone knows a better memory efficient way of using multiple neural nodes, or how to get over the 16 max limit of a branch node(not in the documentation to my knowledge) that would be amazing!

            SawatakashiS YarostY 2 Replies Last reply Reply Quote 2
            • SawatakashiS
              Sawatakashi @sinewavekid
              last edited by

              This post is deleted!
              S 1 Reply Last reply Reply Quote 0
              • S
                sinewavekid @Sawatakashi
                last edited by

                @Sawatakashi sure i'll share a simple setup later on when i get a free moment!

                SawatakashiS pcs800P 2 Replies Last reply Reply Quote 1
                • SawatakashiS
                  Sawatakashi @sinewavekid
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • OrvillainO Orvillain referenced this topic on
                  • YarostY
                    Yarost @sinewavekid
                    last edited by

                    @sinewavekid can you give me and example to make this work?

                    1 Reply Last reply Reply Quote 1
                    • pcs800P
                      pcs800 @sinewavekid
                      last edited by

                      @sinewavekid Yes, i would love an example snippet too

                      1 Reply Last reply Reply Quote 0
                      • C cemeterychips referenced this topic
                      • C
                        cemeterychips
                        last edited by cemeterychips

                        do you need to add anything to the extra preprocessor definitions when building in projucer to get this stuff to work properly? had to rebuild and figured I'd consult you guys before I move on.

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

                        16

                        Online

                        2.1k

                        Users

                        13.1k

                        Topics

                        113.8k

                        Posts