Forum

    • Register
    • Login
    • Search
    • Categories

    Favourites Preset

    General Questions
    5
    18
    154
    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.
    • MikeB
      MikeB last edited by

      One problem solved - next one pops up.

      I now have a PresetSelector
      out of an older snippet.

      Works wonderfully.
      Label shows the preset name
      Up and down button select prev and next preset
      Even across the banks/directories.
      Everything fine.

      But

      If I mark a preset as favourite and then display all favourites.

      I can't select them with up and down.

      Because they don't come one after the other - but are randomly selected from the existing presets.

      How do I manage (via script) to call up presets consecutively in my favourites list?

      Another problem is a Random button.
      Since there is no defined set of presets here, I am missing the areas for MathRandInt (xx , xx).

      "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

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

        @MikeB said in Favourites Preset:

        Up and down button select prev and next preset
        Even across the banks/directories

        No Way?
        Never Seen Ane Examples To Go Across The Entire Preset Browser, Using Prev/Next Button, You Have Any Snippet?

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

          @Natan here it is

          HiseSnippet 2325.3oc6ZssbaabFFTTPwjQxwwim1dQu.iZuPZFawChxxtYbMk3AE1HIxRPE2dk7Jvkj6HvcYAVJEZOZlLc5E8wHOB8QvOB8MvIuA9MH8ewAhEjfTLzNwRMDdro28eO78e9ewhZVLCrsMyRIVhFC5gUhspp9.JuSgNHBUoRQkXetZMKrMlqoiMwFbXn6OnGx1F2TIVr3GHFVrDKq377tmuOxDQMvAcon70LhA9PRWBOn2Z4+JhoYYTSbCRWoQmKeECFs.yj0GfTb0zJ8PFmiZiOFIF1RpJwVoTSBfBcNhisUhs79rlCz6vtj5N9ulXSNyDKZjQQGVH2tKyLaJPrnWk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PE8CVgQbCBUnW.GeuFCNO6nUx7AKYvxyb4VBVR6VS4g2W0QjeaBvNlD2d.78Tqgt0VWvMovHITaZMvo0jugwEQPVDAYQDjesexhIGA4RLeQDjEQPVDAYQMHSsFjq6sBl8V6aE7igzbldSOYuw9ldl+rVRu00wyZ4PclN97QHaN1pZedu97EotVj5ZQpqEE+Nwfs2c3UvPnXmOVWG43uwos1KPWf0N.SwQbYLgil7em0OV2dy7GqaUCNr8MrPT6dL6PKrNtKoAiJzWAcdhMtrE9eDwqLFYEIo287x.SF4bBtilQuZowiys7rEm6ZtkwkuQ+QC+K20cGe1f60bCbI7wna1wRPRKSFzieT3Vn9lb+dCaWeDix50gQIFxJ85XvStcarkL1ijgF8tBdP9wtcj+X9CACOjEHmvyor3CzsQ96TcgqlvYT6+O9LEh+qxOSgQS4nFYJmkduR4bCOsVWjgE6TC2u1SgWvcb5AjXTmORxDPowPasgelmppo2JsRWHV5oFFBE0i.IazyI6bLmsmi4jaNlyNywbd7bLmcmi47joNGQZr85yYccchgNpUx86KL1vKpENr3+Cf9B73C
          

          "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

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

            @MikeB You're The Man 👏 Thanks A Ton Fine Sir 🙌⭐️⭐️⭐️💎💎💎

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

              To my question

              a. Is it possible to capture the presets marked as "Favorite" by script?

              b. How can I create a random button for the random selection of presets?

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

                @MikeB said in Favourites Preset:

                Is it possible to capture the presets marked as "Favorite" by script?

                I don't think so

                How can I create a random button for the random selection of presets?

                Math.randInt() is your friend

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

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

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

                  If We Set It To True, Browser Doesn't Go Loop The Presets, And With Mike's Method, It Set To False, And It Loops like A Charm 🙂

                  inline function onPrevPresetControl(component, value)
                  {
                      if(value == 1)  
                       Engine.loadPreviousUserPreset(false);  
                  
                  };
                  
                  Content.getComponent("PrevPreset").setControlCallback(onPrevPresetControl);
                  
                  
                  
                  inline function onNextPresetControl(component, value)
                  {
                      if(value == 1)  
                      Engine.loadNextUserPreset(false);  
                  
                  };
                  
                  Content.getComponent("NextPreset").setControlCallback(onNextPresetControl);
                  
                  
                  
                  MikeB 2 Replies Last reply Reply Quote 0
                  • MikeB
                    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

                    ustk 1 Reply Last reply Reply Quote 0
                    • ustk
                      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...

                      I can't help pressing F5 in the forum...

                      1 Reply Last reply Reply Quote 0
                      • MikeB
                        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

                        ustk Natan DabDab 3 Replies Last reply Reply Quote 2
                        • ustk
                          ustk @MikeB last edited by ustk

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

                          I can't help pressing F5 in the forum...

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

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

                            1 Reply Last reply Reply Quote 2
                            • MikeB
                              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
                              • MikeB
                                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

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

                                  @MikeB Very Very Nice 🙂 Thanks For The Info

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

                                    @MikeB

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

                                    It will be cool Mike Hart 👍

                                    Trance Producer and Presets Designer.

                                    MikeB 1 Reply Last reply Reply Quote 0
                                    • MikeB
                                      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

                                      DabDab 1 Reply Last reply Reply Quote 4
                                      • DabDab
                                        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.

                                        Trance Producer and Presets Designer.

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

                                        20
                                        Online

                                        1.1k
                                        Users

                                        6.8k
                                        Topics

                                        62.3k
                                        Posts