HISE Logo Forum
    • Categories
    • Register
    • Login

    How to Save Arp/Seq Presets

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 162 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.
    • DabDabD
      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 ?

      Bollywood Music Producer and Trance Producer.

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

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

        Link Preview Image
        Custom Mini Preset Browser Example using FileSystem API

        Hey folks! This seems to be a hot topic with the new FileSystem API, so for those who need a starting place for building a custom mini-preset browser in Hise...

        favicon

        Forum (forum.hise.audio)

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

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

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

          @DanH

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

          Much appreciated.... Thank you :)

          Bollywood Music Producer and Trance Producer.

          DanHD 1 Reply Last reply Reply Quote 0
          • DanHD
            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]);
                        
                        
                    }
                    
                }
            

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

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

              @DanH Thank you ... I will give it a try :) (y)

              Bollywood Music Producer and Trance Producer.

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

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

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

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

                13

                Online

                1.7k

                Users

                11.8k

                Topics

                102.4k

                Posts