HISE Logo Forum
    • Categories
    • Register
    • Login

    Arpeggiator Presets

    Scheduled Pinned Locked Moved General Questions
    61 Posts 10 Posters 4.1k 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.
    • 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 That's a new level of crazy, I wish you luck :p

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

        DanHD 1 Reply Last reply Reply Quote 0
        • 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
                                            • First post
                                              Last post

                                            12

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.6k

                                            Posts