HISE Logo Forum
    • Categories
    • Register
    • Login

    [feature request] Custom settings functions

    Scheduled Pinned Locked Moved Feature Requests
    12 Posts 4 Posters 598 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.
    • d.healeyD
      d.healey
      last edited by

      What I'd like is to have access via the scripting API to each of the custom settings functions.

      This way I could add whatever GUI I like to control things like relocate samples folder, and changing the interface size, etc.

      I can see these functions in the source code and how they interact with the custom settings panel controls but I'm not skilled enough to link to these functions from the scripting API code. So if I was going to implement it I would probably just end up duplicating the code inside the scripting API and that wouldn't be a good way to do it.

      So @Christoph-Hart could you implement this or give me some pointers about how to do it?

      I'd also like to see the relocate samples folder function able to handle expansions, so clicking the button would relocate the samples folder for the current expansion.

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

      Casey KolbC 1 Reply Last reply Reply Quote 6
      • Casey KolbC
        Casey Kolb @d.healey
        last edited by

        @d-healey Yes yes yes!

        Casey Kolb
        Founder & CEO of Lunacy Audio
        Composer | Producer | Software Developer

        1 Reply Last reply Reply Quote 0
        • Casey KolbC
          Casey Kolb
          last edited by

          @d-healey In a similar vein, it would also be amazing to have access to some of the preset browser functionality in the Scripting API, so you could more easily do custom UI for things like the preset tags or preset notes, etc. Even something as simple as getting the notes from the currently loaded user preset so you can display them elsewhere in the plugin. I think this might be super easy to add, but I'm still digging through it.

          Casey Kolb
          Founder & CEO of Lunacy Audio
          Composer | Producer | Software Developer

          ustkU 1 Reply Last reply Reply Quote 1
          • ustkU
            ustk @Casey Kolb
            last edited by ustk

            @Lunacy-Audio For the notes you can put a label and save it with presets already

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

            Casey KolbC 1 Reply Last reply Reply Quote 0
            • Casey KolbC
              Casey Kolb @ustk
              last edited by

              @ustk Realized that literally right after I posted that haha. Good to go there!

              Casey Kolb
              Founder & CEO of Lunacy Audio
              Composer | Producer | Software Developer

              ustkU 1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @Casey Kolb
                last edited by

                @Lunacy-Audio Yeah but it's not as convenient since you need to save the preset after updating the note or you'll lose it, while in the preset browser it is handled instantly...

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

                Casey KolbC 1 Reply Last reply Reply Quote 0
                • Casey KolbC
                  Casey Kolb @ustk
                  last edited by

                  @ustk Yup, that makes sense. Honestly I think that's fine. That'd probably be my expectation as a user anyway. If you don't save it, it won't save lol

                  Casey Kolb
                  Founder & CEO of Lunacy Audio
                  Composer | Producer | Software Developer

                  1 Reply Last reply Reply Quote 1
                  • Casey KolbC
                    Casey Kolb
                    last edited by

                    @d-healey The change sample location API would be SUPER handy though.

                    Casey Kolb
                    Founder & CEO of Lunacy Audio
                    Composer | Producer | Software Developer

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

                      @Casey-Kolb

                      The change sample location API would be SUPER handy though.

                      You can do this with the file and file system APIs.


                      Christoph implemented the Settings class a few weeks ago and I've populated it with functions to do most of the stuff available in the custom settings floating tile and MIDI floating tiles.

                      Here is a snippet that demonstrates how to make a custom audio settings panel. It's a little convoluted because each time one setting is changed the other comboboxes have to be updated.

                      Another thing I found was on init is processed before the audio engine has fired up, this means checking for the current (or last used) audio driver/device will return nothing. To get around this I run a one time timer callback function which waits until after the audio engine is initialised before setting up the comboboxes. This issue only presents itself once you compile your project as a standalone app.

                      HiseSnippet 1757.3ocsY80aaaCDmJMpqwcFqYXuN.U+jBVSpcZZWAxJVSbRFxZSqQcWwdX.ELRzwbQlTPhJMdE46y9NrOR6k8MXi+ShT1RJ1FX9Iwi2w628SGOdhdPBM.klRS.Na79owHfyW5NbJgMt+XHl.N8HfyltAYoL5jsSQLFlbQJ3vowvzTTHvw4N+jPMmMVGH+8O+3gvHHI.YDA.efhCPuFOAyLRG7xWgihNAFhdOdhk168xSCnj9zHZFGR2wsKHFFbI7BzafB0VyE3b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0q17pyEmkjyf4kNwjPz0ucj+0a48vW3scdRxbEcUQWEV8cldH30bPMZdOaXWF559KaNqT8zsSQ9pdmJhUcg2aIVmIeuBqZLVqa6xbwZdWjMuunwXsbyby+1MuxcyQ7r66pvplh3Z21NWDqaWTrczNrqZSZigsUebyGy408aNlmc+cEV0TLWQ4gZhYUwAOUCj2domFiaqd1l2FQraehQyweU0rpw5l3gZK8ciUWpugxSs4etcqO2ZiV2zxa1oFMpx4z8yFI9b+JlVeQ.0anOIax4nj7tfyUD3rd4a84tK1s9DnZy2RQJ4TdU72FiziM2KTuJtWHf96D3O8KmdDjAEWUjVFWuXTBCKfiio7NvYC2iPoWxnwRc0soygLSNa67qUBx29CvgBIVWlA3ZfiqyFbGNM+gOgCYiEC9ZG.XLBewXlXzewG43Z4fMTN3AZGvm4b5gzqk939tEkzUdXTtG5veXBTJaM9iL9mQ.btmqV2XnHG1xIkAaJ7JzojAIHdhj3VvjcAI71Aud3As94C5+JAEtDHTRiyfPTMHTo6pgvu0McZJ+wVCx3aOjG+3IfKuNG4xkCypRoyf4+rZLq0c0v79twQvohu57i83avKFraqI3P7GKMYYI6VJht2sEQpBkyDQ+sUXnUX0Bi651q6t6svH5qbKUxZFTsiSNp36qLUsWQn8Et687tc6B.yeavOv8LZXVDjU9hpE2HudBdcrR2Hr3VeIoX1T6areIt85tUd60UVkZAg6ltCvrfwUi20p.u7BL+eiW8+EPa2i4oTALCXW28jecUu3+k.Jui23DOk3LHKAKRsdS1jgzrj.T9WhmuEVOtqXrfYFhHgxA+K+mdxdhwN5I6kOIuPPPB8iApS3D+aC2SJgiIh7OZYC2yDi85Ajm5wsys6NcAx8vAABpX6d.P01r6JXySVAa1aEr4oqfMOaEr46WAaddi1H9+mNHiQmn1lvEL3X4w+NNGSDWcfLiD7eTuCXHE
                      

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

                      ulrikU Casey KolbC 2 Replies Last reply Reply Quote 0
                      • ulrikU
                        ulrik @d.healey
                        last edited by

                        @d-healey Is this in scriptnode?

                        Hise Develop branch
                        MacOs 15.3.1, Xcode 16.2
                        http://musikboden.se

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

                          @ulrik Yes, although I added a few "safety checks" yesterday which haven't been merged yet so if you get crashses that's why.

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

                          1 Reply Last reply Reply Quote 1
                          • Casey KolbC
                            Casey Kolb @d.healey
                            last edited by

                            @d-healey Yup yup, all good :) Thanks for the update!

                            Casey Kolb
                            Founder & CEO of Lunacy Audio
                            Composer | Producer | Software Developer

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

                            32

                            Online

                            1.8k

                            Users

                            12.0k

                            Topics

                            104.5k

                            Posts