HISE Logo Forum
    • Categories
    • Register
    • Login

    Adding presets to a combobox

    Scheduled Pinned Locked Moved Scripting
    14 Posts 2 Posters 127 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 @Sampletekk
      last edited by

      @Sampletekk Look up the string functions.

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

      S 1 Reply Last reply Reply Quote 0
      • S
        Sampletekk @d.healey
        last edited by

        @d-healey You mean this: https://docs.hise.dev/scripting/scripting-api/string/index.html

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

          @Sampletekk Yes, in there is everything you need - and all you actually need are substring, lastIndexOf and possibly replace

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

          S 1 Reply Last reply Reply Quote 0
          • S
            Sampletekk @d.healey
            last edited by

            @d-healey 👍

            1 Reply Last reply Reply Quote 0
            • S
              Sampletekk
              last edited by

              And if you want to make it so you actually load a preset when choosing something in the combobox?

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

                @Sampletekk Engine.loadUserPreset()

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

                S 1 Reply Last reply Reply Quote 0
                • S
                  Sampletekk @d.healey
                  last edited by

                  @d-healey said in Adding presets to a combobox:

                  Engine.loadUserPreset()

                  Ok, I'm getting this:

                  Skärmavbild 2025-03-06 kl. 13.56.31.png

                  It says that it doesn't exists, but as I see it, it does....

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

                    @Sampletekk FIle extension is missing

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

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Sampletekk @d.healey
                      last edited by

                      @d-healey said in Adding presets to a combobox:

                      @Sampletekk FIle extension is missing

                      Yep, noticed that. Would you add that by concatenating a text-string?

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

                        @Sampletekk Yes

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

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

                        52

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.8k

                        Posts