HISE Logo Forum
    • Categories
    • Register
    • Login

    SlotFX (Hardcoded) Persistence?

    Scheduled Pinned Locked Moved General Questions
    9 Posts 4 Posters 93 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.
    • iamlampreyI
      iamlamprey
      last edited by

      Currently working on a modular FX setup, everything's working but if I save/reload the session in Ableton it resets which FX are loaded into each slot.

      Do I have to store the data in a panel or something to get it to save properly? Or is there a more elegant solution?

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

        @iamlamprey You could write your values to a json file. That would persist. Im not sure exactly your setup but im sure that will work.

        If anybody else has a better solution im sure they'll chime in.

        iamlampreyI 1 Reply Last reply Reply Quote 0
        • iamlampreyI
          iamlamprey @Chazrox
          last edited by

          @Chazrox The issue with a json/local file is if the end user has multiple instances of the plugin, it would either overwrite (worst-case) or end up making a bunch of loose json files somewhere

          Christoph HartC ChazroxC 2 Replies Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @iamlamprey
            last edited by

            @iamlamprey you could add the module to the user preset state so it gets recalled correctly.

            ChazroxC iamlampreyI 2 Replies Last reply Reply Quote 1
            • ChazroxC
              Chazrox @Christoph Hart
              last edited by

              @Christoph-Hart curios. Does this work for MIDI Player? Im trying to save the state without saving tracks.

              @iamlamprey sorry to piggy back your post.

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

                @iamlamprey I see. I didnt think about that.

                1 Reply Last reply Reply Quote 0
                • iamlampreyI
                  iamlamprey @Christoph Hart
                  last edited by

                  @Christoph-Hart said in SlotFX (Hardcoded) Persistence?:

                  @iamlamprey you could add the module to the user preset state so it gets recalled correctly.

                  Ah cool, I didn't know about this function, thank you.

                  @Chazrox said in SlotFX (Hardcoded) Persistence?:

                  @iamlamprey sorry to piggy back your post.

                  No problem 🥳

                  HISEnbergH 1 Reply Last reply Reply Quote 1
                  • HISEnbergH
                    HISEnberg @iamlamprey
                    last edited by

                    @iamlamprey as Christoph says this is precisely how I do it:

                    Engine.addModuleStateToUserPreset(var moduleId)

                    Link Preview Image
                    HISE | Scripting | Engine

                    An API class for accessing global properties.

                    favicon

                    (docs.hise.dev)

                    Once upon a time when I worked on my Modular FX system I overlooked this function, and ended up having to rewrite everything to incorporate it and base my system around it.

                    iamlampreyI 1 Reply Last reply Reply Quote 1
                    • iamlampreyI
                      iamlamprey @HISEnberg
                      last edited by

                      @HISEnberg said in SlotFX (Hardcoded) Persistence?:

                      Engine.addModuleStateToUserPreset(var moduleId)

                      Yeh this seems to be working, I still have a dereferenced nullptr on the interface somewhere when I try and delete the plugin that I have to track down but otherwise it's doing the thing

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

                      12

                      Online

                      1.9k

                      Users

                      12.4k

                      Topics

                      108.1k

                      Posts