HISE Logo Forum
    • Categories
    • Register
    • Login

    Favourites Preset

    Scheduled Pinned Locked Moved General Questions
    18 Posts 5 Posters 684 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 @d.healey
      last edited by

      @d-healey

      Math.randInt() 
      

      requires 2 values that I don't have - right?

      "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 0 to the nb of presets
        I think you can grab the preset list with the file system and populate an array. Then pick a random name in there
        There might be a method to get all presets but I don't remember and I'm not at my computer...

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

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

          @Natan said in Favourites Preset:

          @d-healey @MikeB So What is The Logic Behind This?

          If I knew that, my name would be Christoph and I would live in Berlin.

          I'm working on it - I already live in Berlin 😆 😆 😆

          "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 NatanN DabDabD 3 Replies Last reply Reply Quote 2
          • ustkU
            ustk @MikeB
            last edited by ustk

            @MikeB yes so Engine.getUserPresetList(), then just pick a random name

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

            1 Reply Last reply Reply Quote 1
            • NatanN
              Natan @MikeB
              last edited by

              @MikeB Cheers To All Berlin Mates 🥂👏🏻🥃🍺

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

                Summary

                1. presets marked as favourites cannot be accessed/selected via script.

                The above script only makes sense if you can select all presets. If the user selects "show me all favourites" and then can no longer zap through with preset up and down, it becomes pointless.

                Workaround: Hide favourites.
                User must create a new user preset if he particularly likes a sound.
                This is inconvenient but not unusual.
                I have some plug-ins where this is the only way to do it.

                1. here I think - if I understand it correctly I would first have to determine the current number of available presets (incl. user presets) via Engine.getUserPresetList and can then change these via Math.randInt(x,x).
                  I will try it out.

                "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
                • MikeBM
                  MikeB @Natan
                  last edited by

                  @Natan said in Favourites Preset:

                  @d-healey @MikeB So What is The Logic Behind This?

                  If you look at the description of

                  Engine.loadPreviousUserPreset(false); 
                  

                  you can probably recognise the "bool stayInDirectory".
                  means that HISE assumes that the presets are not (false) in different directories but are all open in the folder. Therefore HISE ignores the directories.

                  Bildschirmfoto 2021-09-03 um 20.56.53.png

                  "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

                  NatanN 1 Reply Last reply Reply Quote 1
                  • NatanN
                    Natan @MikeB
                    last edited by

                    @MikeB Very Very Nice :) Thanks For The Info

                    1 Reply Last reply Reply Quote 1
                    • DabDabD
                      DabDab @MikeB
                      last edited by

                      @MikeB

                      I'm working on it - I already live in Berlin

                      It will be cool Mike Hart (y)

                      Bollywood Music Producer and Trance Producer.

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

                        @DabDab Thanks but

                        Christoph is a genius and I am just a 60 year old graphic designer who started learning HISE 6 months ago.

                        "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

                        DabDabD 1 Reply Last reply Reply Quote 4
                        • DabDabD
                          DabDab @MikeB
                          last edited by

                          @MikeB You prove Age is just a number. I wish you all the very best. Keep making Plugins/Research. Keep it up.

                          Bollywood Music Producer and Trance Producer.

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

                          8

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          103.0k

                          Posts