HISE Logo Forum
    • Categories
    • Register
    • Login

    A Couple Preset Questions

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 97 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.
    • clevername27C
      clevername27
      last edited by

      Does anyone know…

      1. What setEnableUserPresetPreprocessing is for?

      2. Does Filesystem have a constant for finding the user Presets folder?

      3. If it's possible within any of Preset callbacks to know the name of the Preset entered by the user?

      4. Exactly what is tested with runTest?

      5. what is the intended use for getSecondsSinceLastPresetLoad?

      Thanks!

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

        @clevername27

        1. It's so you can process presets before they are loaded. For example if you've changed the components on your UI but want to ensure old presets still work with the new layout. You can redirect their values to new components, or modify the values as needed.

        2. FileSystem.getFolder(FileSystem.AppData).createDirectory("UserPresets"); (or it might be "User Presets"). Using createDirectory will return the directory if it already exists and create it if it doesn't. You could also use .getChildFile()

        3. PresetHandler.setPostSaveCallback I think gives this info - needs to be checked.

        4. No idea.

        5. Not sure but it might be to allow you to stop a double preset load if you're using a mouse event handler on the preset browser for example.

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

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.healey
          last edited by

          @d-healey Thank you, Dave. For #1, do know how to use it—like, what functions are called? (And does this require the Custom Preset Manager?) Thanks, man, as always.

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

            @clevername27 I'm not sure but I think you use the UserPresetHandler.setPreCallback()

            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

            17

            Online

            1.8k

            Users

            12.1k

            Topics

            105.7k

            Posts