HISE Logo Forum
    • Categories
    • Register
    • Login

    Base 64 state

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 224 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.
    • MikeBM
      MikeB
      last edited by

      How to create a Base 64 state from an arpeggiator
      and how do you recall it?

      I haven't found anything on this - is it possible at all?

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

      1 Reply Last reply Reply Quote 0
      • MikeBM
        MikeB
        last edited by

        It's done. Found it

        const var Arpeggiator1 = Synth.getMidiProcessor("Arpeggiator1");
        
        const var arp1 = "464.3ocqT1ziZCCDF1tfqzJD6xRqTOzeBUBUtTodj.nREscSWi16l3gf0ZrSSlP27uuSBerfVJJTUeXzj2j44cryHGl5ifrLeJi2XVQBv3sECRSf3XiBI0uNhwu9Pk9rfhDUVFnYbdCdiwZCoJQEBYDi.utPtz+aGkK5ydvjYlagMOH8VeY1GYrgKMVc3NuyXjh2gfCYL9aJSS8V5SwpN5ZgLJ0jfA4H5cLitTZSWrUZsxlSe3UMY6V0fQaw8PFfGiPvOa4RqQCoUkei3G4qjHjrUaOfl0DPKQY0U8vErAN.PmJ.xGMunE307HfH3SwoPwkePd7FIA.8Tme9ysPqSUbmsEOzuZtOv+TU4cER3W4fKB1KWuMxAsPawcQnZMbuxECW9+xqDxk4KVXg+sIoVhwNEMlOy.+sVu4lh6dj2gpnGq.7V5HXkYl2AG7h8jZPfzJTw3uWz+S8nUXuAT7ySovn0TXwG5cAd8.X8QFrndd8y.xqzIinz3PJfACpsWcEeCbw3x54zjRmV+kRmfRmd5HmN2HzshgKUNGXkfEhJu257SPmDx6D2kiI43+AT2J9d3X5NwzcvdFxqpMjaJgL1oeAhN0br70hIdq9Diz+AXH1XhO"
        
        Arpeggiator1.restoreState(arp1);
        

        "One hour of trial and error can save 10 minutes of reading the manual."
        "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
        HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

        1 Reply Last reply Reply Quote 1
        • MikeBM
          MikeB
          last edited by MikeB

          But with every solution there is a new problem

          If I change the Base64state via Combobox - the arb stops.

          How can I make it so that the last played note is called up again with the change?

          const var ComboBox1 = Content.getComponent("ComboBox1");
          const var Arpeggiator1 = Synth.getMidiProcessor("Arpeggiator1");
          
          const var arp =[];
          arp[1] = "464.3ocqT1ziZCCDF1tfqzJD6xRqTOzeBUBUtTodj.nREscSWi16l3gf0ZrSSlP27uuSBerfVJJTUeXzj2j44cryHGl5ifrLeJi2XVQBv3sECRSf3XiBI0uNhwu9Pk9rfhDUVFnYbdCdiwZCoJQEBYDi.utPtz+aGkK5ydvjYlagMOH8VeY1GYrgKMVc3NuyXjh2gfCYL9aJSS8V5SwpN5ZgLJ0jfA4H5cLitTZSWrUZsxlSe3UMY6V0fQaw8PFfGiPvOa4RqQCoUkei3G4qjHjrUaOfl0DPKQY0U8vErAN.PmJ.xGMunE307HfH3SwoPwkePd7FIA.8Tme9ysPqSUbmsEOzuZtOv+TU4cER3W4fKB1KWuMxAsPawcQnZMbuxECW9+xqDxk4KVXg+sIoVhwNEMlOy.+sVu4lh6dj2gpnGq.7V5HXkYl2AG7h8jZPfzJTw3uWz+S8nUXuAT7ySovn0TXwG5cAd8.X8QFrndd8y.xqzIinz3PJfACpsWcEeCbw3x54zjRmV+kRmfRmd5HmN2HzshgKUNGXkfEhJu257SPmDx6D2kiI43+AT2J9d3X5NwzcvdFxqpMjaJgL1oeAhN0br70hIdq9Diz+AXH1XhO";
          arp[2] = "469.3ocqTFrSaDCDF1VAWIDJPHsR8.26wHxkdsraHpAQKrBGwcm0SxZgi8Vauoceq6iPs2jTEBAvjVevZ7+Z88OynYclQmCVq1fvsFWWBHbaRhoDlMSvbd0qtDgOdSk9nz5Rl0BbDF2B2ZHW3UoNlCrdFoZdMsP+SkOlzGcuvJlHgkGnZoNDcNBMnPH4Yq81h7JZkCTNDB+9PnQK8W00jQGSn4FQoKsx4zJjfGjVlEqjVvjU9Kd3An0qHXzlbGXA2aFAUJ3foAwIjaplScP4Jssfz4hXfbDIPnIW1urnSC.5ChmIM98Whoc3onMtqgZ6+RGwWLk.vuVomrMfO8ztQmU.FnmOQmp+UChtDJ7iJPkC+UN9BZiToM41bGaAbGSMC1up4PBsnZ5TIreSXGQFpX9w+wB3kJgCVBn6i7Oik+PCjO3aGyEi0JXiOrhFAi8r3LGCgOiz+y87qQIC76IWFhWzbNAEuW2CRctvUuKuZssWS6mlzqW1W8dMxj4Erow6UWx2.0LWQTN0KO3znq7NMcdvIyib5kFmNkLnfoTfjBRHO7l1qOMsSPejbakqrx8eB2ojumMz+toYMvmLiE4+KmD.MTweFLmeQLipuiLRK46XL+O.QaFnyB";
          
          
          inline function onComboBox1Control(component, value)
          {
              if(value){	
          	Arpeggiator1.restoreState(arp[value]);
          	}
          	Console.print(value);
          };
          Content.getComponent("ComboBox1").setControlCallback(onComboBox1Control);
          

          "One hour of trial and error can save 10 minutes of reading the manual."
          "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
          HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

          1 Reply Last reply Reply Quote 0
          • MikeBM
            MikeB
            last edited by

            Nobody has an idea?

            "One hour of trial and error can save 10 minutes of reading the manual."
            "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
            HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

            UD AUDIOU 1 Reply Last reply Reply Quote 0
            • UD AUDIOU
              UD AUDIO @MikeB
              last edited by

              @MikeB I do! But my idea might not fix your problem the best way.
              Play both arps parallel and "mute" one of them.
              Or just switch connection but not the arp itself?!

              Guess with your method it had to store the last played note in the base64state.
              But you would need to save it again before swapping them.
              And I got no clue how to do that.

              1 Reply Last reply Reply Quote 0
              • GabG Gab referenced this topic on
              • First post
                Last post

              57

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts