HISE Logo Forum
    • Categories
    • Register
    • Login

    Array

    Scheduled Pinned Locked Moved General Questions
    9 Posts 3 Posters 288 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

      I have already seen it here and can no longer find it.

      The possibility to define and call an array with indefinite length.

      E.g. load different number of samples in different folders.

      "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

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @MikeB
        last edited by ustk

        @MikeB Hmm... What do you mean by indefinite length? Arrays are resized dynamically so you can load any size of data set at any time...

        Can't help pressing F5 in the forum...

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

          @ustk Now normally I know what the length of the array is.

          [0, 1, 2, 3, 4]

          here I ask 0-5.

          But if I have different folders and in one there are 30 samples in the other there are 24, etc., then I can't use the cursor.

          I now want to load these via a combobox

          "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 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @MikeB
            last edited by

            @MikeB Still not 100% sure what you want to do but did you see my video about arrays? It might have the answer you need.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            MikeBM 1 Reply Last reply Reply Quote 0
            • MikeBM
              MikeB @d.healey
              last edited by

              @d-healey David - I am the one who wakes up in the morning and watches your videos and goes to bed in the evening and watches your videos :-)

              Describe it differently.

              how do I load with one and the same array
              from one folder 10 samples or from the other folder 15 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 1 Reply Last reply Reply Quote 1
              • d.healeyD
                d.healey @MikeB
                last edited by

                @MikeB Do you want to add the 15 to the end of the 10 or do you want to clear out the 10 and add the 15?

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                MikeBM 1 Reply Last reply Reply Quote 0
                • MikeBM
                  MikeB @d.healey
                  last edited by

                  @d-healey

                  they are all different samples
                  so 15 replaces 10, 32 replaces 15 etc.
                  One folder is Kick with xxx samples
                  One folder is Snare with xxx samples
                  etc. All called over one cbm

                  "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 d.healey

                    Reset the array with myArray = [] and populate the array using .push(). Then you don't have to worry about how many elements there are.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

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

                      @d-healey Thank you, I will try that

                      "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

                      29

                      Online

                      1.8k

                      Users

                      12.0k

                      Topics

                      104.2k

                      Posts