HISE Logo Forum
    • Categories
    • Register
    • Login

    Storing data in widgets

    Scheduled Pinned Locked Moved General Questions
    26 Posts 3 Posters 1.8k 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.
    • toxonicT
      toxonic @d.healey
      last edited by

      @d-healey
      ah, okay - i must confess, i didn't think about that possibility and i didn't deal with the preset browser yet.
      could i assign single keys from the keyboard to single presets, so i could for example hit
      C4 on my keybord to play range from sample 0-40000 of the loop,
      C#4 on my keybord to play range from sample 50000-60000 of the loop and so on?
      would the performance of loading the presets be good enough for realtime tasks like that?
      thank you for your reply, this was helpful either way! :-)

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

        @toxonic Preset just store and recall the values of widgets. For key switches you will need to script. If you want different key switches for different presets then you can use a combination of scripting and widgets.

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

        toxonicT 1 Reply Last reply Reply Quote 0
        • toxonicT
          toxonic @d.healey
          last edited by

          @d-healey said in Storing data in widgets:

          If you want different key switches for different presets then you can use a combination of scripting and widgets.

          does "preset" in this case mean: preset via the presetbrowser? so you can control the selection of presets via keystrokes, (...but i need to script that (which i didn't find a method for yet))?
          or am i back to the idea of storing widget values in panels?

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

            @toxonic

            does "preset" in this case mean: preset via the presetbrowser?

            Yes, whenever I talk about presets this is what I mean, unless I specifically say otherwise. :)

            so you can control the selection of presets via keystrokes

            No. User selects the preset from the preset browser. Do you want different keyswitches for different presets?

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

            toxonicT 1 Reply Last reply Reply Quote 0
            • toxonicT
              toxonic @d.healey
              last edited by toxonic

              @d-healey

              Yes, whenever I talk about presets this is what I mean, unless I specifically say otherwise. 🙂

              okay, do not mind me, i wasn't sure! ;-) and if i'm honest, i don't really know what you mean with that sentence

              If you want different key switches for different presets then you can use a combination of scripting and widgets.

              since this somehow contradicts with

              No. User selects the preset from the preset browser.

              or did i misunderstand that?
              but yes, i want to different presets with different keyswitches on my midi keyboard. ;-)

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

                The user selects a preset from the preset browser with the mouse - not the keyboard.

                i want to different presets with different keyswitches on my midi keyboard

                I don't quite understand what you want. You said this previously:

                C4 on my keybord to play range from sample 0-40000 of the loop,
                C#4 on my keybord to play range from sample 50000-60000 of the loop and so on?

                Will those keyswitches, C4 and C#4, be used for all presets or do you need each preset to have totally different keyswitches?

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

                toxonicT 1 Reply Last reply Reply Quote 0
                • toxonicT
                  toxonic @d.healey
                  last edited by

                  @d-healey
                  uhh, i really seem to express myself very awkward, i'm sorry for that. :-/
                  i want to store different loopranges (AudioWaveForm) to different presets. by pressing a key on my midi keyboard i want to select a specific preset and play the looprange saved within that preset.
                  C4 -> looprange a (saved in preset 1)
                  C#4 -> looprange b (saved in preset 2)
                  D4 -> looprange c (saved in preset 3)
                  ....and so on
                  got me now? thanks for your patience with me, my english is quite poor and my HISE knowledge as well.... :-/

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

                    What do you want the combobox to do?

                    Will you need to change the loopranges from the interface?

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

                    toxonicT 2 Replies Last reply Reply Quote 0
                    • toxonicT
                      toxonic @d.healey
                      last edited by

                      @d-healey
                      okay, my first problem was storing data (start and endpoints and maybe other values) persistenly and recalling it. the combo box was just to select the.... how should i call it..... snapshots? it was only for experimenting purposes, it seemed quite handy to me for that task.

                      1 Reply Last reply Reply Quote 0
                      • toxonicT
                        toxonic @d.healey
                        last edited by toxonic

                        @d-healey said in Storing data in widgets:

                        What do you want the combobox to do?

                        Will you need to change the loopranges from the interface?

                        later i wanted change this to control via midi keyboard

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

                          We're going around in circles. But we'll get there! :)

                          Why do you need to store data at all? Why can't you just hardcode the values?

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

                          toxonicT 1 Reply Last reply Reply Quote 0
                          • toxonicT
                            toxonic @d.healey
                            last edited by

                            @d-healey

                            hardcode the values? you mean, they are not changeable anymore? this instrument should become something like a loop-slicer, where you can load sampleloops in, and then rearrange them in a DAW. When the values are hardcoded, the enduser would only be able to use the one sampleloop, the hardcoded ranges fit to.

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

                              How many loops will be loaded at one time?

                              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

                              50

                              Online

                              1.7k

                              Users

                              11.7k

                              Topics

                              101.8k

                              Posts