Base 64 state



  • 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?



  • 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);
    


  • 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+aG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KmD.MTweFLmeQLipuiLRK46XL+O.QaFnyB";
    
    
    inline function onComboBox1Control(component, value)
    {
        if(value){	
    	Arpeggiator1.restoreState(arp[value]);
    	}
    	Console.print(value);
    };
    Content.getComponent("ComboBox1").setControlCallback(onComboBox1Control);
    


  • Nobody has an idea?



  • @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.


Log in to reply
 

10
Online

1.3k
Users

4.3k
Topics

38.6k
Posts