HISE Logo Forum
    • Categories
    • Register
    • Login

    Arpeggiator Presets

    Scheduled Pinned Locked Moved General Questions
    61 Posts 10 Posters 4.2k 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.
    • Christoph HartC
      Christoph Hart
      last edited by

      So you are telling us that the thing you typed there actually works and doesn't deinstall HISE when you try to compile it like it's supposed to do :)

      DanHD 1 Reply Last reply Reply Quote 1
      • DanHD
        DanH @Christoph Hart
        last edited by

        @Christoph-Hart I think I'm into triple figures for crashes today!

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

        1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @d.healey
          last edited by DanH

          @d-healey Thanks, I've smoothed it out a bit. I have no idea how to work with objects. I can sometimes save the sliderpack arrays to the json files, but I can't get them to ever load back in.

          
          const var SaveOk3 = Content.getComponent("SaveOk3");
          
          
          inline function onSaveOk3Control(component, value) {
                  if (value)
                  {
                      local presetName3 = PresetNameToSave3.get("text");
                      PresetHandler3.savePresetFile(presetName3, getControlValues3());
                      SavePreset3.setValue(false);
                      SavePreset3.changed();
                      populatePresetList3();
                      {
                      for (i = 0; i < 16; i++)
                      
                          SliderPack5SAVEData[i] = SliderPack5.getSliderValueAt(i);
                      }
                      
                      
                      {
                      for (i = 0; i < 16; i++)
                      
                          SliderPack4SAVEData[i] = SliderPack4.getSliderValueAt(i);
                      }
                      
                  }
              };
          
              
              inline function onSaveCancel3Control(component, value)
              {
                  SavePreset3.setValue(false);
                  SavePreset3.changed();
              };
          
              inline function getControlValues3() {
                  return {
                      
                      "ARPITCHDATA" : SliderPack4SAVEData,
                      "ARPLENGTHDATA" : SliderPack5SAVEData
                      
                  };
              }
              
              inline function setControlValues3(data)
              {
                  
                  for (i = 0; i < 16; i++)
                  {
                      SliderPack4[i].setSliderAtIndex(i, ARPITCHDATA[i]);
                  }
                  for (i = 0; i < 16; i++)
                  {
                      SliderPack5[i].setSliderAtIndex(i, ARPLENGTHDATA[i]);
                  }
              }
          
          }
          

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

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

            @DanH said in Arpeggiator Presets:

            I have no idea how to work with objects

            Link Preview Image
            W3Schools.com

            Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

            favicon

            (www.w3schools.com)

             {
                        for (i = 0; i < 16; i++)
                        
                            SliderPack5SAVEData[i] = SliderPack5.getSliderValueAt(i);
                        }
                        
                        
                        {
                        for (i = 0; i < 16; i++)
                        
                            SliderPack4SAVEData[i] = SliderPack4.getSliderValueAt(i);
                        }
            

            You have an unhealthy obsession with superfluous curly braces.

            I'm going to make a video for you right now, hang tight.

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

            DanHD 1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @d.healey
              last edited by

              @d-healey okay thanks!

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

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

                @DanH HD version is taking ages to process, hopefully it's done by the time you return.

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

                DanHD 1 Reply Last reply Reply Quote 1
                • DanHD
                  DanH @d.healey
                  last edited by

                  @d-healey Thanks, very helpful :)

                  I can get my knob values saved into objects and restored all ok. Just the sliderpacks that confuse the bollox out of me.

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

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

                    @DanH Make a simple example that takes the value of each of the sliderpacks sliders and puts them in an array. Or a simpler solution might be to use a slider pack data object.

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

                    DanHD 1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @d.healey
                      last edited by

                      @d-healey I can get the values into an array. I then need to get them into an object and then back into the sliderpacks....

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

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

                        I can get the values into an array.

                        Can you get them out of the array and back into the sliderpack (ignoring the object part at the moment)?

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

                        DanHD 1 Reply Last reply Reply Quote 0
                        • DanHD
                          DanH @d.healey
                          last edited by

                          @d-healey yup

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

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

                            @DanH Can you access an array that is inside an object?

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

                            DanHD 1 Reply Last reply Reply Quote 0
                            • DanHD
                              DanH @d.healey
                              last edited by

                              @d-healey yup

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

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

                                @DanH So which part are you missing?

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

                                DanHD 1 Reply Last reply Reply Quote 0
                                • DanHD
                                  DanH @d.healey
                                  last edited by

                                  @d-healey how to fit it into the system I'm using to save the arp presets. Let me have another go

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

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

                                    @DanH Make a simple snippet that saves one slider pack into an array and writes it to a json file and reloads it. That will give us something to work with.

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

                                    DanHD 1 Reply Last reply Reply Quote 0
                                    • DanHD
                                      DanH @d.healey
                                      last edited by

                                      @d-healey Well I think my issue is in the setControlValues callback below. I have all the data correctly stored in the json file now, it's just loading it back into the SliderPacks that's the issue. The knobs all work fine

                                      inline function getControlValues3() {
                                              return {
                                                  "ARPNOTESNUMDATA" : ARPNOTESNUM.getValue(),
                                                  "ARPSPEEDDATA" : ARPSPEED.getValue(),
                                                  "ARPSHUFFLEDATA" : ARPSHUFFLE.getValue(),
                                                  "ARPSHUFFLE1DATA" : ARPSHUFFLE1.getValue(),
                                                  "ComboBox1DATA" : ComboBox1.getValue(),
                                                  "SliderPack4ARPDATA" : SliderPack4SAVEData,
                                                  "SliderPack5ARPDATA" : SliderPack5SAVEData
                                              };
                                          }
                                          
                                          inline function setControlValues3(data)
                                          {
                                              ARPNOTESNUM.setValue(data.ARPNOTESNUMDATA);
                                              ARPNOTESNUM.changed();
                                              ARPSPEED.setValue(data.ARPSPEEDDATA);
                                              ARPSPEED.changed();
                                              ARPSHUFFLE.setValue(data.ARPSHUFFLEDATA);
                                              ARPSHUFFLE.changed();
                                              ARPSHUFFLE1.setValue(data.ARPSHUFFLE1DATA);
                                              ARPSHUFFLE1.changed();
                                              ComboBox1.setValue(data.ComboBox1DATA);
                                              ComboBox1.changed();
                                              for (i = 0; i < data.SliderPack4ARPDATA.length; i++)
                                              {
                                                  SliderPack4[i].setSliderAtIndex(i, data.SliderPack4ARPDATA[i]);
                                                  SliderPack5[i].setSliderAtIndex(i, data.SliderPack5ARPDATA[i]);
                                              }
                                           
                                          }
                                      

                                      I can make a snippet but it's gonna take me a sec.

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

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

                                        @DanH @d-healey Can we have arp Loading and Saving Sliderpack Presets as Snippet? I would love to learn from the project.

                                        Bollywood Music Producer and Trance Producer.

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

                                          @DanH said in Arpeggiator Presets:

                                          I can make a snippet but it's gonna take me a sec.

                                          Yeah make a simple snippet, one slider pack, one object, one array, etc.

                                          I'm going to have dinner now so I'll take a look when I get back.

                                          I think a much simple solution might be to use a sliderpackdata object (although I've never tested writing it to a file I think it should work).

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

                                          DanHD 1 Reply Last reply Reply Quote 0
                                          • DanHD
                                            DanH @d.healey
                                            last edited by

                                            @d-healey @DabDab Ok got it working thanks to @Casey-Kolb (it was a silly error!).

                                            Here's a snippet for those interested, it's a bit messy but you can see how the sliderpack is saved and reloaded (as well as knobs). I figure you can use this as a base for your own user preset system (@ulrik also made a good one too)

                                            HiseSnippet 4059.3oc6b0DaabbEdWIsxhxV1xNIMosAoKHRCnRrY3RJYIVGWQJIJGESIRKJIaWGi3UjCE2nk6Ru6RYKmZ.en8RA5ghhBDfdnAHG5kdH8V6gB3K8TQAJR6wh1jhVfBjFfbo.sGJbm+1cm8OpkxNMNMjFVR6Lu4Mu226Mu48lcjpZnWGXZpavwmXi86.33OlPs80rZsXKYEMtUVhi+3BEWuZshaUp1ZqTsJ2B62Q1zDzfime3KfngOwHbbb23IO+eX9EjUk0pCnMU3Cuy2Y9szU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s+Y3FxRa3dezk96yiZHGq8C0vzrukATCy3xzifa3rtG38cwMLqelNmellm88ws7xaPNRrGwmR7W.7S9xg4mbTgUKVaiRqW5RR8vGYDe9HhC+9mziOh3I9nWyiOhi0qW9HS5wG4cZ7W+Oyy5ibuezkugGeDGdzKeDBSkbD0K+uNEoEG+4ordWRK1B6Gbkm9ugYiT.oUJf3JYKu23iewmkzhs.Kp8C9kjVBHwRADYIOx7+i7qEB0udnGJ+53jGzwotYaUo7lqVJpjg9fS+F+7uYOSFR769D0GjLzfjgFjLzfjg5qBwFSXypRYVZgdUGVgA0gMHzyfPOCB8b3B8Lrc90HcEr7UnqHoZtHQ0+z5Vt7viuLIAFDeG1syOyv2wCq9kIDJtVwxkqb4E2bidUkKuuJXt2vO2W69dpxcpQZ3oBl24Be3e4.qf4Sl+wpBRswuPWvX2YnKXFhZsC0fNLsyGwFTAhAcbghZxp6i9MCfTQp8idWqrP2lM8euceuBUM.n+7hPcMbuj4CrCOhCbk8w1.Wizq.WBOtF35XLAt5i3V2+270R6It0G7QsJ3ItUgO7N+iu3D25vaOGg5lDp8Tf14gJtUtCLt0GDdbqwJLvNbP1g+eMQx1x0MzeC6+r3Aq4aLbKP6qF9l1OpP4kq37aU7SHHIIkNyLyIIkKS94jld5Y3ZqzP4MpWGcsuNCLG7PFdVlgmMS574xjIaNo74xMS9oOngWaiRUcG9zSmNW1bylWZlL4xm4rYOfYeXgq3byBExjNyAQ8U6CpGR3yHhQ+ldTrqkdaRgUvFph+SBCbQOSjUt+qvVzEy
                                            

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

                                            MikeBM DabDabD 2 Replies Last reply Reply Quote 2
                                            • First post
                                              Last post

                                            40

                                            Online

                                            1.8k

                                            Users

                                            12.2k

                                            Topics

                                            106.0k

                                            Posts