Forum
    • Categories
    • Register
    • Login

    Builder InterfaceTypes

    Scheduled Pinned Locked Moved General Questions
    51 Posts 7 Posters 1.8k 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.
    • David HealeyD
      David Healey @Lindon
      last edited by David Healey

      @Lindon The auto-complete has it. And the connectToScript function is in the documentation.

      Here's an example of creating a MIDI script processor and connecting it to a script file

      local index = builder.create(builder.MidiProcessors.ScriptProcessor, "myScript", 0, builder.ChainIndexes.Midi);
      builder.connectToScript(index, "{PROJECT_FOLDER}MyScript.js");
      

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

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @David Healey
        last edited by

        @David-Healey thanks yes I know where to find the connectToScript, and my current version of auto-complete refuses to load my selection so I dont use it (much), still I guess I can read and copy..(ugly)

        thanks.

        HISE Development for hire.
        www.channelrobot.com

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

          @Lindon The autocomplete is a bit dodgy, if you add a new object or you have a compile error it doesn't populate until you next successfully compile.

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

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @David Healey
            last edited by

            @David-Healey it turns out its worse than that:

            var stdscript = builder.create(
                          builder.MidiProcessors.Arpeggiator, // the module type
                          "Arpeggiator1",                       // the ID
                          mastercontainer,                       // the parent (root)
                          builder.ChainIndexes.Direct);             // the slot type
            

            gives me:

            Interface:! Line 19, column 31: Couldn't create module with ID Arpeggiator 
            

            HISE Development for hire.
            www.channelrobot.com

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @Lindon
              last edited by

              @Lindon turns out its me being dumb...

              var stdscript = builder.create(
                            builder.MidiProcessors.Arpeggiator, // the module type
                            "Arpeggiator1",                       // the ID
                            mastercontainer,                       // the parent (root)
                            builder.ChainIndexes.Midi);             // the slot type
              

              HISE Development for hire.
              www.channelrobot.com

              LindonL 1 Reply Last reply Reply Quote 1
              • LindonL
                Lindon @Lindon
                last edited by Lindon

                OK so now I cant get builder.connectToScript(strum, "AScript2.js"); to work its telling me

                StrumProcessor:! onControl could not be parsed!
                

                heres onControl

                function onControl(number, value)
                {
                	
                }
                 
                

                HISE Development for hire.
                www.channelrobot.com

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

                  @Lindon Do you see that error when you use that script manually?

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

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @David Healey
                    last edited by

                    @David-Healey nope...

                    HISE Development for hire.
                    www.channelrobot.com

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

                      @Lindon What about through the builder in a minimal test project?

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

                      LindonL 1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @David Healey
                        last edited by

                        @David-Healey this is a minimalist test project...

                        HISE Development for hire.
                        www.channelrobot.com

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

                          @Lindon Can you send it to me?

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

                          LindonL 1 Reply Last reply Reply Quote 0
                          • LindonL
                            Lindon @David Healey
                            last edited by

                            @David-Healey yep hold on I will have to do some rebuilding...

                            HISE Development for hire.
                            www.channelrobot.com

                            LindonL 1 Reply Last reply Reply Quote 0
                            • LindonL
                              Lindon @Lindon
                              last edited by

                              @David-Healey - OK how do you want it - its literally an init HISEScript and a .js file with the script in it...

                              HISE Development for hire.
                              www.channelrobot.com

                              David HealeyD LindonL 2 Replies Last reply Reply Quote 0
                              • David HealeyD
                                David Healey @Lindon
                                last edited by

                                @Lindon If you can post it publicly just dump it here. Or a dm/email

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

                                1 Reply Last reply Reply Quote 0
                                • LindonL
                                  Lindon @Lindon
                                  last edited by

                                  So I am back here again with the lack of documentation.

                                  I want to create a container.... @dannytaurus kindly pointed me at part of the solution

                                  so I have:

                                  //holding container
                                  builder.create(builder.SynthChain.?????,"MasterContainer",0,builder.ChainIndexes.Direct); 
                                  

                                  I've tried reading the docs (ha ha ha ha ha..) I've tried the autocomplete....no answers

                                  can someone point out the correct syntax, and where I can in future find it?

                                  HISE Development for hire.
                                  www.channelrobot.com

                                  LindonL 1 Reply Last reply Reply Quote 0
                                  • LindonL
                                    Lindon @Lindon
                                    last edited by

                                    @Lindon and of course the forum woo kicks in as soon as I post: here - for those looking ids the solution:

                                    builder.create(builder.SoundGenerators.SynthChain ,"MasterContainer",0,builder.ChainIndexes.Direct); 
                                    

                                    HISE Development for hire.
                                    www.channelrobot.com

                                    LindonL 1 Reply Last reply Reply Quote 2
                                    • LindonL
                                      Lindon @Lindon
                                      last edited by Lindon

                                      @Lindon ..and then Im straight back here with this:

                                      trying to make a script processor - the autocomplete gives me this:

                                      	   theKeySwitchFilters[i] = builder.create(
                                      	   				builder.MidiProcessors.ScriptProcessor,
                                      					articulationNames[i] + "KeySwitchFilter",         // the ID
                                      					theSamplerContainers[i],                  // the parent (root)
                                      					builder.ChainIndexes.Direct               // the slot type		
                                      	   				);
                                      

                                      and the complier gives me this:

                                      Interface:! StdBuilderElements.js (22): Couldn't create module with ID ScriptProcessor 
                                      

                                      Anyone???

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      LindonL David HealeyD 2 Replies Last reply Reply Quote 0
                                      • LindonL
                                        Lindon @Lindon
                                        last edited by Lindon

                                        @Lindon and a search thru the forum gives me this answer:

                                        	   theKeySwitchFilters[i] = builder.create(
                                        
                                        	   				builder.MidiProcessors.ScriptProcessor,
                                        					articulationNames[i] + "KeySwitchFilter",         // the ID
                                        					theSamplerContainers[i],                  // the parent (root)
                                        					builder.ChainIndexes.Midi              // the slot type		
                                        	   				);
                                        

                                        HISE Development for hire.
                                        www.channelrobot.com

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

                                          @Lindon
                                          Shouldn't the chain index be Midi rather than Direct?

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

                                          LindonL 1 Reply Last reply Reply Quote 0
                                          • LindonL
                                            Lindon @David Healey
                                            last edited by

                                            @David-Healey yep as you see above - meanwhile where is all this documentation hidden?

                                            HISE Development for hire.
                                            www.channelrobot.com

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

                                            8

                                            Online

                                            2.3k

                                            Users

                                            13.7k

                                            Topics

                                            119.2k

                                            Posts