HISE Logo Forum
    • Categories
    • Register
    • Login

    Complete crash of Hise with this script

    Scheduled Pinned Locked Moved General Questions
    31 Posts 3 Posters 1.3k 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.
    • MikeBM
      MikeB
      last edited by

      Maybe someone can help me here
      David has tried - but unfortunately I can't follow his explanations yet.
      And the more he writes the more confusing it gets for me - sorry David

      I want the ComboBox to select a kit 1-12 - (this works so far).
      each kit has a knob that selects the corresponding samples (sample 1-10)
      The selected sample from the selected kit is loaded into the AudioLoopPlayer.
      Actually quite simple if you know it :-)

      I am a visual person - I need to see this to understand it.

      HiseSnippet 2225.3oc6Z0sTajbEdFfw1nX4hcWmpxlpRUSQRkBJL5OPfb4305ODnEDRlAgw6VaQMZTKo1LS2CyzRfvkqZeAx6PdDxiPdBRk6xsatKW52fjt6YFod.YhVggJqM5hFN8OmyWeNm9zcOmtlC1.35hcjjmc+91.I4Gpn0GQ5TniNDIUtnj7eTYiMqppoaYaBT0.l.CB1QMYJ0sgDW0k01EZaCHR46aq65BZJIKO8lrwJO6LR7eu+E40M0QFfgUIIc.FZ.1AZAICqsV1sgllkzaB1GZIz6UyV1.iJfMwco3bZkDR15FGq2FrqNqaSoHIeuMZBovRinS.tRxyjG2ruVG7oHu9e.zE1vDvHRJoQYjW0kvlMYHlUqTgNPyl0BzGtRRxJ0Fpcl1S67XkJvlvA0OTKMGuA0giPTeHO0UAujhvKw3CuoDf28CLdb3Yp2G3vg0iTpTtXYUuZRFBTE553.PDMvIcAgLNu+E9MsuCUMKV+NXr8FHcJTaJZKYbuAsqZ1.wFd+KjmN77d5O77Vzrb44pDaZUBZBXya4.BZuYyQp8unNQWR9uqjLchXn8Wa6LEJUK19kxEaKxKe8V4crh0KUl50qWHecz1odCDFqvJ63b19uZubGCHFYx4zX6ChYelS5TE17T3IqV9MUVKeisNY0zNzxyRl60sqV8z9UN+vREMscpr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lu7C30Pm2Hdf8YUpvnUGjVBEkDwRPik2DdjgAScubRIoQOlTSvXVYBFypSvXROAiYsIXLqOAiIyUNF1lQ45RvVdKEoUTaCu2ym7fM4oW+8+tXSd6C
      

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

        @MikeB said in Complete crash of Hise with this script:

        HiseSnippet 2225.3oc6Z0sTajbEdFfw1nX4hcWmpxlpRUSQRkBJL5OPfb4305ODnEDRlAgw6VaQMZTKo1LS2CyzRfvkqZeAx6PdDxiPdBRk6xsatKW52fjt6YFod.YhVggJqM5hFN8OmyWeNm9zcOmtlC1.35hcjjmc+91.I4Gpn0GQ5TniNDIUtnj7eTYiMqppoaYaBT0.l.CB1QMYJ0sgDW0k01EZaCHR46aq65BZJIKO8lrwJO6LR7eu+E40M0QFfgUIIc.FZ.1AZAICqsV1sgllkzaB1GZIz6UyV1.iJfMwco3bZkDR15FGq2FrqNqaSoHIeuMZBovRinS.tRxyjG2ruVG7oHu9e.zE1vDvHRJoQYjW0kvlMYHlUqTgNPyl0BzGtRRxJ0Fpcl1S67XkJvlvA0OTKMGuA0giPTeHO0UAujhvKw3CuoDf28CLdb3Yp2G3vg0iTpTtXYUuZRFBTE553.PDMvIcAgLNu+E9MsuCUMKV+NXr8FHcJTaJZKYbuAsqZ1.wFd+KjmN77d5O77Vzrb44pDaZUBZBXya4.BZuYyQp8unNQWR9uqjLchXn8Wa6LEJUK19kxEaKxKe8V4crh0KUl50qWHecz1odCDFqvJ63b19uZubGCHFYx4zX6ChYelS5TE17T3IqV9MUVKeisNY0zNzxyRl60sqV8z9UN+vREMscprd6S5ZefYriKsa8LIRj3MtmV3.qxXcml5vWQd5gosdIbKT9c2qpQrkd0oc1BUMVdTs11adRtduF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iIyUNF1lQ45RvVdKEoUTaCu2ym7fM4oW+8+tXSd6C

        OKay, you have all your instruments loaded in to an array called inst:

        const var inst = ["sample01.wav","sample02.wav","sample03.wav","sample04.wav","sample05.wav","sample06.wav","sample07.wav", "sample08.wav", "sample09.wav", "sample10.wav"];
        
        • arrays are numbered from zero so in inst[0] is : "sample01.wav". in inst[1] is "sample02.wav" etc etc.

        you are referencing this array in your combobox....using the value returned from the combobox.

        Comboboxes ALWAYS start at 1 and go to whatever the last entery is.. so yours will return the numbers 1 to 12

        -- so you want to load the samples from inst (which are numbered 0 to 11) using a value you get from the combobox (which are numbered 1 to 12)

        So in your combobox call back you need to reference the contents of inst like this:

        inst[value -1]


        Meanwhile:

        inline function onKitSelector1Control(component, value)
        {    
            for (i = 1; i < 12; i++) {
                Content.getComponent("knbSampleSelector1_Kit"+i).showControl(i == value);
                Synth.getAudioSampleProcessor("Audio Loop Player1").setFile("{PROJECT_FOLDER}kit"+value+"/"+inst[value]);
                Console.print("{PROJECT_FOLDER}kit"+value+"/"+inst[value]);
            }       
            //Console.print(value);    
        }
        Content.getComponent("KitSelector1").setControlCallback(onKitSelector1Control);
        

        -- just NO. NO.NO. never do this.....

        every time your callback executes (everytime you use the combobox...) your program has to go initialise and find all the controls you want to access...bad very bad.

        do this instead to pre-load your components and loop player...:

        const var mySampleSelectors = [];
        const var myLoopPlayer = Synth.getAudioSampleProcessor("Audio Loop Player1");
        
        for (idx =0;idx<12;idx++)
        {
            mySampleSelectors[idx] = Content.getComponent("knbSampleSelector1_Kit"+(idx+1));
        }
        
        

        Then in your combo callback:

        inline function onKitSelector1Control(component, value)
        {    
                for (idx= 0; idx<12;idx++)
                {
                      mySampleSelectors[idx].showControl(idx == (value-1));
                }    
                myLoopPlayer.setFile(inst[value -1]);
        }
        Content.getComponent("KitSelector1").setControlCallback(onKitSelector1Control);
        

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • MikeBM
          MikeB
          last edited by

          @Lindon
          Super - many thanks for the help - But unfortunately this is only the half

          1. the combobox selects one of 12 knobs - (that works fine)
          2. this knob loads one of 10 samples into the AudioLoopPlayer (this is completely missing)

          So the knob has to load from the folder selected with the combo box
          the sample selected with the knob

          There are 12 folders - Kit 1 to 12
          Each folder has 10 samples 1-10

          "One hour of trial and error can save 10 minutes of reading the manual."
          "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
          HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

            @MikeB - so see if you can work it out from the code I've given you...

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • MikeBM
              MikeB
              last edited by

              @Lindon Thanks a lot
              I've been trying to do exactly that for a week and I can't get it to work.
              Ok - Must try something else.

              "One hour of trial and error can save 10 minutes of reading the manual."
              "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
              HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                @MikeB - you wont get it to work if you dont stop and get the concepts right first...

                HISE Development for hire.
                www.channelrobot.com

                1 Reply Last reply Reply Quote 0
                • MikeBM
                  MikeB
                  last edited by MikeB

                  So I am making progress.
                  After watching one of David's videos again I am a bit further along
                  However my requirement here is not so simple

                  I fail at the moment still at the following problem
                  I need the value of one component in another and vice versa.

                  Bildschirmfoto 2021-06-15 um 07.34.11.png

                  HiseSnippet 2305.3oc4Z0sTaijEVBPyFXfTL6jspY2ZunKW6ElhfsjAyOUFVL1FCd.i8fABYRkhRH21tCRcKjZavgJUkGg8p858QYeB1mi8x7Fra2sjrkrMTDCgcmAkpB9z+bNeme6Vp6JNDCnqKwQRdxC6XCkjmVoZGLsYtl5HrTw7Rx.ks1tLnptksIDTEZBMnDGfVJvtHpKPcIorcr0ccg0jjkGea9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eZmLtF5lPuuhRuY9u2vVm+YuBA9gabboP6pnODYYh1AqHJOdXy92NBqY7qPsW5d4vW72PN7oGgkgeJq8oeRq8K+jV6W4Is1u5SZsesmDZ+srA8mzpu1Sa0O0u1U+AO6tYUJQp0xjeZfgOTb9MAvuC1qOE4763mQG1EQ6D4Di+ZbR42U39cJUPTilCGuiMD7xOD9ux30+dGLixV0qy7N8.6DJEN4q+kLHLT99.nHNqF9Q03eICdgxfmdyCw8Aw9NeePp1AavbaQhWE9RwUXf8NyCdXzCbKFNfPn7u0Z36ihehA+3rYrOxngsgNtQ4PuCreLEIKtJqHya2+aJXrtrjYuSG2qOyfSF2ir+aLwD2sO7ZOm3vt8DxS7+0WjkGupIie2f6PrfxUF3JRMqRUDO5XKbanIKWPfweuRdXc8VlzfVilHThfI1M4epnnwRrJ7MZ.cBi8gpPaRoQtRNuHyArh15tvvqNrGBC0c5Oc3KvVnc2sE2l+5GT7fKfm8B9swp.i+zbUfCHsnrpnkzYApW4cGgpxJ9Z.YHAigl7iHRdL9GE1iVMndVUHtlf3+vd76TiSK62oVPmOJxvR2vgbpg2WtlGK+LQKL8FKpaOoRINMn626VQQMgJqVdMzoFFby8BZRRCeNoFg4r3HLmkFg4jdDlyxivbVYDlyp25b3KFsYKJwxKUj0Pks7tsexcWCmsgz+KRgEJGA
                  

                  "One hour of trial and error can save 10 minutes of reading the manual."
                  "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                  HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                    @MikeB look in the API, you will see a call for every component that looks like this

                    youComponentReference.getValue()

                    this will tell you the value of the referenced component, but are you sure thats what you want? Because the value of your comboboxes are 1 to 12...

                    .. you might need:

                    yourReferencedComboBox.getItemText();

                    HISE Development for hire.
                    www.channelrobot.com

                    1 Reply Last reply Reply Quote 0
                    • MikeBM
                      MikeB
                      last edited by

                      Thanks for looking at this again
                      It doesn't matter what I put in front of ".getValue() it always returns the error "Unknown function 'getValue'!
                      I have tried everything - nothing works

                      I think I can't reference the sampleSelector because it doesn't exist yet.

                      And that is already correct there are 12 kits and 10 samples per kit
                      The ComboBox select the Kit 1-12
                      The Knob (1-12) select the samples

                      "One hour of trial and error can save 10 minutes of reading the manual."
                      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

                      d.healeyD LindonL 2 Replies Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @MikeB
                        last edited by

                        @MikeB said in Complete crash of Hise with this script:

                        doesn't matter what I put in front of ".getValue()

                        It definitely matters. You're obviously putting the wrong thing :p

                        What have you tried?

                        1 Reply Last reply Reply Quote 0
                        • MikeBM
                          MikeB
                          last edited by

                          @d-healey please see the snippet and the screenshot above

                          it is built exactly like in your "scripting efficient" video

                          There is a ComboBox that calls one of 12 knobs
                          The called knob calls one of 10 samples

                          and loads them into the AudioLoopPlayer

                          The file path is dynamic - both the kit (1-12) and the sample in it (1-10)

                          {PROJECT_FOLDER}kit "+value+"/"+inst[value]);

                          "One hour of trial and error can save 10 minutes of reading the manual."
                          "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                          HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • LindonL
                              Lindon @MikeB
                              last edited by

                              @MikeB said in Complete crash of Hise with this script:

                              Thanks for looking at this again
                              It doesn't matter what I put in front of ".getValue() it always returns the error "Unknown function 'getValue'!
                              I have tried everything - nothing works

                              as Dave says - it does matter - you need to put a reference to a control in there...

                              clearly you havent tried everything because Im pretty sure this would work for example:

                              Content.getComponent("KitSelector1").getValue();
                              

                              I think I can't reference the sampleSelector because it doesn't exist yet.

                              what makes you thing this?

                              • do you understand how event processing works? Do you understand how the init callback gets executed?

                              And that is already correct there are 12 kits and 10 samples per kit
                              The ComboBox select the Kit 1-12
                              The Knob (1-12) select the samples

                              HISE Development for hire.
                              www.channelrobot.com

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

                                Like this:

                                inline function onknbSampleSelector1_KitControl(component, value)
                                {
                                    local index = mySampleSelectors.indexOf(component);
                                        Console.print("{PROJECT_FOLDER}kit"+index+"/"+inst[value]);
                                }
                                

                                ??

                                1 Reply Last reply Reply Quote 0
                                • MikeBM
                                  MikeB
                                  last edited by

                                  @d-healey Thanks David - that works

                                  Now I still lack the understanding for part 2

                                  The sample should be selected analog to the value of the visible knob
                                  At the moment "sample01.wav" is always selected although the knob has value 6 e.g.

                                  If I call Kit 3 the knob has the value 6 for example.
                                  Sample 6 should be loaded now.

                                  "One hour of trial and error can save 10 minutes of reading the manual."
                                  "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                                  HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

                                  d.healeyD LindonL 2 Replies Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @MikeB
                                    last edited by d.healey

                                    I don't see anywhere in your script where you are loading sample maps, I don't even see any references to samplers, just a loop player. Is it the loop player you want to load a sample into?

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

                                      @MikeB -lost the will..

                                      here...

                                      HiseSnippet 1424.3oc0X01aaaCDVJIpqVstnEneXejHX.yAo00Ju2kUTWmW5BxRhwbRvFJJJnkniHhDogDcR7JBP+oseR6ev1cTR1xwNMINnXytnrk2K7d3yc7LMqGIcYwwxHCyBG1sMyv7wVM5JT9a3S4Bic1zv7IV6QiUrHRhnZcaSiiYdFllS+dTfYgYLze962ViFPEtr9hLLNVxcY+JOjq5Ksd0c4AAaS8XGxCyY8RU2wUJ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Rp2KLhr0Q6rIUQwaJkdrANJ0lEo33IVyMYmAW6L4dSEr1jEepR1VetJsuFbp9Vdx5hdg8uNtZ2dS9x6qFRAcVlOFlwUrPHt0rfNgN1vvB3vh3vR3vx3vJ3vp3vZ3vqwAmJ5QsONKXaijZOHV3FO41GbUyCtp+QU3F6sav+SvcKKmxULzfMi+9gpgCdw8PtmW.qtLlisH6q44UOKqYm4z4g1itw9Be6g14bOkOlA9BL0mwOwWgyf6SaLlndwIRTuzDIpWdhD0qLQh5UmHQ8ZSjn90SXnt22uOQBam+WBa6a9FM+mBaigecomZsmzqS.UM3CeguvWpBb4y+BS3qHIfv1MObtCuFVkQ9ZXi7WFcKg6yrpyUt9iFuSMB7BWe7aMdSeawhVa0pEyU0GryXs8uOtOj3c.J+lrihKNYOpJhiWWc+NgMjchbY.RDBVPLVSLEdY9j4Uv4HyzfI7zS9G3SpRGbtYpRmLkPEpaj7StI2mGe8xGpk.XRne31BV6gyI89U.VVUvBatG+SttHU7R.6i1mEFCeVbL7YowvmkGCeVYL7Y0wvm09p9fum865njgIGS.A02R+6oLM2RPgpLcEow+FTgNbN
                                      

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      1 Reply Last reply Reply Quote 1
                                      • MikeBM
                                        MikeB @Lindon
                                        last edited by

                                        @Lindon said in Complete crash of Hise with this script:

                                        clearly you havent tried everything because Im pretty sure this would work for example:

                                        Content.getComponent("KitSelector1").getValue();
                                        

                                        Thanks Lindon,
                                        Unfortunately it does not - that was the first thing I tried.
                                        And yes I am not as stupid as I seem to you.

                                        I already got it running a week ago. But in a classic way with about 100 lines of code and a lot of repetitions.
                                        Now I wanted to shorten the whole thing to a few lines after David's video.

                                        And here I still have my problems.
                                        Because as David says in his videos it is not always clearly understandable.

                                        "One hour of trial and error can save 10 minutes of reading the manual."
                                        "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                                        HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                                          If part 1 is solved I think the only thing you need to do is load your sample into the loop player, I think you use the setFile() function for this.

                                          1 Reply Last reply Reply Quote 1
                                          • MikeBM
                                            MikeB
                                            last edited by

                                            @Lindon
                                            @d-healey

                                            Ok - convinced 👍 👍 👍 👍 👍

                                            That is even shorter
                                            I still have a lot to learn.
                                            Thank you very much - now I can finally sleep again,
                                            after watching all of David's videos again the last few nights.

                                            As I said, I think more visually than auditorily.
                                            A picture tells me more than 100 words.

                                            I will now analyse this for the time being and
                                            see where my mistake was.

                                            Once again many thanks to both of you

                                            "One hour of trial and error can save 10 minutes of reading the manual."
                                            "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                                            HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                                            27

                                            Online

                                            1.8k

                                            Users

                                            12.0k

                                            Topics

                                            104.3k

                                            Posts