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.
    • 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+JOjq5Ksd0c4AAaS8XGxCyY8RU2wUJ1PFH6.3YZqJFsotmROgsOEMaJKCyGrkGWIiZnnJVLXSMoW2F9xyEI1eLOl2LfgSbLZ.KThXiM74Ad0y1qwFFlyTu+Ne5jc9ys1i6w6IuOC7TsBReOxyAlSMHjlY.H4bcPZaYfGt.WC7LyAuYRf2yrZ3Fwaq5qAw1ir1Q.ImVTf1yCqDaMlxwxZCIXgPUNjdJa6HXROOJsRkJufrbkJysdQ6h1u5UDzFBkDwZwhXPpjnjDWYXSYS4ENEsgzSrhbFEJFPg0.gj2PxBvILEHtsT.SJMaOKl8JqtfPihncIJeph3C7PbR7fvEiwiFD.5XjSExlwkKWNeXC6tKJEB5G9354Ur+Q6s69GTqAnwYAPSKYDoD26h2TYcX7myTiSle94JZ+4h1D3C.p1cT5v0eOyEDEyOAkIlkF1O.d+wqcCilLKYdcXm2YNbWmFBEC1RLpq+fDamXF4veYKRi2s2VDWbaSaBE7CGxxwXfDpHYvFfYnQkB6BgNTJPqPg0.gXHsuDIa7ObQ.WvHs5HbUboffGsRSIoKVI2Lz+BfDC5vRHlB.jkmRNmQDLlGhTetGqWdoi..tWtzSgLxFnlJqSFfuIYDNtmRI8g2dvwkLHoWl2PJowyKQZT6yk8Xy1QbghH6f+MJA1u.Jp7zXyiG2Nf1E1tmnAXh9DWgHDKCXk0K.jt14veBSWZKf+cVRiCNZ+M0xxPWJH9HloOF++kzo0BEsuTWSeiU9iJyMbdH4.xvYrQkiulbVZk1A6Bose7LFoIiIz0TPl5kjlcIm6yg5OjSdah0ARPMosDOLkteKyEdrKNnU+XjqHNg2GMUxUZZq29JGecElMAxqaeYtxx8kJ1AhRyY+Y6B1WZStppVsFotTxKfEMR032sD80brjnSXSVTFMlYHzvcvN5O310Q2MoVHmgRwNBt5f1rz48646Lhd9FoESP2+hoHDLUo68+zzd+YDrA2Ca82iuMzag9eSZopFWcIdR5RzH.NKGoWfuyBy5C47r2AmW3pN+82AmW7pNmRB2JmW5937xC47c.1qbeh7p2GmW6937qGOmeXRQRk6k2NiWYRp2KLhr0Q6rIUQwaJkdrANJ0lEo33IVyMYmAW6L4dSEr1jEepR1VetJsuFbp9Vdx5hdg8uNtZ2dS9x6qFRAcVlOFlwUrPHt0rfNgN1vvB3vh3vR3vx3vJ3vp3vZ3vqwAmJ5QsONKXaijZOHV3FO41GbUyCtp+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

                              14

                              Online

                              1.8k

                              Users

                              12.0k

                              Topics

                              104.3k

                              Posts