HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset Browser Tags....?

    Scheduled Pinned Locked Moved Solved Scripting
    12 Posts 3 Posters 167 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.
    • ChazroxC
      Chazrox
      last edited by Chazrox

      I added some tags to the presetTagList but I dont know how to set tags for the actual presets. Can somebody please advise. 🙏

      Thank You!

      Engine.setUserPresetTagList(["Cool", "suck", "meh"]);
      
      // How do we attach these to the presets??
      

      Im also wondering...

      After I figure out how to set the defaults...

      How does the user set tags for new created presets? Possible?

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @Chazrox
        last edited by

        @Chazrox when it came to using a tag based solution I found the default presets browser too inflexible so I bit the bullet and built my own browser...

        HISE Development for hire.
        www.channelrobot.com

        ChazroxC 1 Reply Last reply Reply Quote 0
        • ChazroxC
          Chazrox @Lindon
          last edited by

          @Lindon I've built a few preset browsers already. Can you advise on how to deal with preset tags?

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @Chazrox
            last edited by Lindon

            @Chazrox so what I did was hold the tags in a meta data file(json) in the app data folder where each preset has an entry with an array of tags associated with it.

            I read the json file at init, retain a list of unique tags, and display these in the custom preset browser. In the browser when the user selects a set of tags I display all matching presets.

            I allow the user to add and delete presets,, add and remove tags to a preset and create new tags...

            There is a json file for the factory sounds and another for each expansion.

            HISE Development for hire.
            www.channelrobot.com

            ChazroxC 1 Reply Last reply Reply Quote 1
            • ChazroxC
              Chazrox @Lindon
              last edited by Chazrox

              @Lindon I see. So to make sure, you create a 'factory' list of preset tags to choose from, create your presets with associated tags, and you can populate lists by associated preset tags, and adding/deleting tags is just rewriting the data object? Makes sense.

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @Chazrox
                last edited by

                @Chazrox more or less yes, heres a look inside the Factory_presets.json file:

                {
                  "ExpansionName": "Factory",
                  "Key": "Not Set",
                  "PresetCollection": [
                    {
                      "PresetName": "ActionArp",
                      "PresetLocation": "{PROJECT_FOLDER}/User Presets",
                      "PresetTags": [
                        "Factory",
                        "Arps"
                      ],
                      "DataFile": "Factory_presets.json"
                    },
                    {
                      "PresetName": "ArcadeVibe",
                      "PresetLocation": "{PROJECT_FOLDER}/User Presets",
                      "PresetTags": [
                        "Factory",
                        "Arps",
                        "Distorted"
                      ],
                      "DataFile": "Factory_presets.json"
                    },
                    {
                      "PresetName": "Arp Chorder",
                      "PresetLocation": "{PROJECT_FOLDER}/User Presets",
                      "PresetTags": [
                        "Factory",
                        "Arps"
                      ],
                      "DataFile": "Factory_presets.json"
                    },
                    {
                      "PresetName": "Atmos Arp",
                      "PresetLocation": "{PROJECT_FOLDER}/User Presets",
                      "PresetTags": [
                        "Factory",
                        "Arps",
                        "Eerie"
                      ],
                      "DataFile": "Factory_presets.json"
                    },
                

                HISE Development for hire.
                www.channelrobot.com

                ChazroxC 1 Reply Last reply Reply Quote 1
                • ChazroxC
                  Chazrox @Lindon
                  last edited by

                  @Lindon nice. Ok I see whats happening. Thanks! This helps me understand. I think I can def do this on the next one 🙏

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @Chazrox
                    last edited by

                    @Chazrox heres what the browser looks like:

                    3f680ffc-92d0-41d3-a3a3-03638f4bbf7f-image.png

                    HISE Development for hire.
                    www.channelrobot.com

                    DanHD ChazroxC 2 Replies Last reply Reply Quote 2
                    • DanHD
                      DanH @Lindon
                      last edited by

                      @Lindon Nice, I need to do something similar. So are all the presets in one folder? So the user searches by tag essentially? How do you deal with Expansions?

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      LindonL 1 Reply Last reply Reply Quote 0
                      • ChazroxC
                        Chazrox @Lindon
                        last edited by

                        @Lindon Nice! Thanks! 🙏

                        1 Reply Last reply Reply Quote 0
                        • ChazroxC Chazrox has marked this topic as solved
                        • LindonL
                          Lindon @DanH
                          last edited by Lindon

                          @DanH said in Preset Browser Tags....?:

                          @Lindon Nice, I need to do something similar. So are all the presets in one folder? So the user searches by tag essentially? How do you deal with Expansions?

                          yes the Presets all live in AppData/User Presets, expansions ship with their own meta data file called (unsurprisingly) MyExpansionName_presets.json.

                          Note:I dont "do" expansions like anyone else here I think (thank god) so the only attribute of expansions I use is the {EXP::somename} for the sound loading capability, and AppData/Expansions as the place where the samplemaps live. So my plugin downloads and installs expansion components into the "standard" folders - so all expansion presets live in AppData/User Presets too...

                          HISE Development for hire.
                          www.channelrobot.com

                          DanHD 1 Reply Last reply Reply Quote 0
                          • DanHD
                            DanH @Lindon
                            last edited by

                            @Lindon thanks! makes sense. Actually since I'll be using a c++ sampler this might free me from some of the other constraints of the current expansion system too.

                            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                            https://dhplugins.com/ | https://dcbreaks.com/
                            London, UK

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

                            25

                            Online

                            1.9k

                            Users

                            12.5k

                            Topics

                            108.6k

                            Posts