Forum

    • Register
    • Login
    • Search
    • Categories

    How to Save Arp/Seq Presets

    General Questions
    2
    6
    45
    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.
    • DabDab
      DabDab last edited by

      I want to store bunch of sliderPack Arp / Seq as presets. How can I do it ? And How can I randomize it ? Any minimal example please ?

      Trance Producer and Presets Designer.

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

        @DabDab here's a ready to go custom preset browser.

        https://forum.hise.audio/topic/3273/custom-mini-preset-browser-example-using-filesystem-api?_=1668955420897

        You just need to get the arp data into it... I can help you with this tomorrow (plus the randomisation)

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

          @DanH

          I can help you with this tomorrow (plus the randomisation)

          Much appreciated.... Thank you 🙂

          Trance Producer and Presets Designer.

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

            @DabDab so this is the kind of code that you can use for the save / load functions of the custom preset browser script in the other thread (this involves 2 sliderpacks and a bunch of arp slider controls). Refer to the script in the other thread to see where this slots in:

                reg SliderPack4SAVEData = [];
                reg SliderPack5SAVEData = [];
                
                const SliderPack4ARPDATA = {};
                const SliderPack5ARPDATA = {};
                
                inline function getControlValues()
                {
                    
                    for (i = 0; i < 16; i++)
                    {
                        SliderPack4SAVEData[i] = SliderPack4.getSliderValueAt(i);
                    }
                    
                    for (i = 0; i < 16; i++)
                    {
                        SliderPack5SAVEData[i] = SliderPack5.getSliderValueAt(i);
                    }
                    
                           
                    
                    return {
            
                        "ARPNOTESNUMDATA" : ARPNOTESNUM.getValue(),
                        "ARPSPEEDDATA" : ARPSPEED.getValue(),
                        "ARPSHUFFLEDATA" : ARPSHUFFLE.getValue(),
                        "ARPOCTAVEDATA" : ARPOCTAVE.getValue(),
                        "ARPDIRECTIONDATA" : ARPDIRECTION.getValue(),
            
                        "SliderPack4ARPDATA" : SliderPack4SAVEData,
                        "SliderPack5ARPDATA" : SliderPack5SAVEData,
                        
                    };
                }
                
                inline function setControlValues(data)
                {
                    ARPNOTESNUM.setValue(data.ARPNOTESNUMDATA);
                    ARPNOTESNUM.changed();
                    ARPSPEED.setValue(data.ARPSPEEDDATA);
                    ARPSPEED.changed();
                    ARPSHUFFLE.setValue(data.ARPSHUFFLEDATA);
                    ARPSHUFFLE.changed();
                    ARPOCTAVE.setValue(data.ARPOCTAVEDATA);
                    ARPOCTAVE.changed();
                    ARPDIRECTION.setValue(data.ARPDIRECTIONDATA);
                    ARPDIRECTION.changed();
                    
                    for (i = 0; i < data.SliderPack4ARPDATA.length; i++)
                    {
                        SliderPack4.setSliderAtIndex(i, data.SliderPack4ARPDATA[i]);
                        SliderPack5.setSliderAtIndex(i, data.SliderPack5ARPDATA[i]);
                        
                        
                    }
                    
                }
            
            DabDab 1 Reply Last reply Reply Quote 1
            • DabDab
              DabDab @DanH last edited by

              @DanH Thank you ... I will give it a try 🙂 👍

              Trance Producer and Presets Designer.

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

                @DabDab iirc you'll need to create all the buttons etc that the script refers to as well

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

                11
                Online

                986
                Users

                6.6k
                Topics

                60.8k
                Posts