HISE Logo Forum
    • Categories
    • Register
    • Login

    saveInPreset vs custom prefFile vs what?

    Scheduled Pinned Locked Moved Solved General Questions
    33 Posts 4 Posters 195 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 @Chazrox
      last edited by

      @Chazrox yes

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

      ChazroxC 1 Reply Last reply Reply Quote 0
      • ChazroxC
        Chazrox @d.healey
        last edited by

        @d-healey should the knobValue be static value? ie. ALWAYS = 1? or should it always = last saved state? ie, user changes and saves the value as .5 in one preset, should that load as .5 on all presets and next plugin launch....or go back to 1?

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

          @ustk @d-healey What about setting Knob1 "defaultValue" on value changes/saves and write/load with JSON. Would that make it persist?

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

            @Chazrox it does persist for me with the snippet I provided. It should retain the last value it was set to.

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

            ChazroxC 1 Reply Last reply Reply Quote 1
            • ChazroxC
              Chazrox @d.healey
              last edited by

              @d-healey I tested it in Ableton. Value doesn't survive relaunch. Might just be Ableton.

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk
                last edited by

                This preset thing drives me crazy...

                it work in a minimal example, but same code in the project won't work despite I checked everything I could...

                And another strange thing arose, now I removed the initial preset loading, my bypass button is deactivated when a new instance is inserted in DAW. But it initialises normally in Hise, its default value is obviously 1, and it's not set anywhere in code. The project is well saved before export and build folder cleaned... Turning around and around with this lol 😆

                Hise made me an F5 dude, browser just suffers...

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

                  @ustk said in saveInPreset vs custom prefFile vs what?:

                  it work in a minimal example

                  Are you saying my snippet is working for you?

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

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @d.healey
                    last edited by

                    @d-healey nope, I should have said only for preset loading, not DAW

                    Hise made me an F5 dude, browser just suffers...

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

                      @ustk well that's the first issue to solve. Which daws have you tried? Did you test reaper?

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

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @d.healey
                        last edited by

                        @d-healey It seems I manage to solve it, using your code plus a safety that "protects" the protected parameters CB, and keeping the initial preset loading.

                        Not sure why the bypass button were always initialising to 0 without the preset load though...

                        Hise made me an F5 dude, browser just suffers...

                        d.healeyD 1 Reply Last reply Reply Quote 1
                        • ustkU ustk marked this topic as a question
                        • ustkU ustk has marked this topic as solved
                        • d.healeyD
                          d.healey @ustk
                          last edited by

                          @ustk said in saveInPreset vs custom prefFile vs what?:

                          plus a safety that "protects" the protected parameters CB,

                          Explain please

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

                          ustkU 1 Reply Last reply Reply Quote 0
                          • ustkU
                            ustk @d.healey
                            last edited by

                            @d-healey I will, I just discovered an error I've made that might be an happy accident... Need to test further...

                            Hise made me an F5 dude, browser just suffers...

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

                            20

                            Online

                            1.9k

                            Users

                            12.3k

                            Topics

                            107.1k

                            Posts