More problems with saving data in panels - must be me can someone please define the rules...



  • Isnt there a problem if you want to automate this knob ? Would it automate the value for the Button selected or ?



  • @lalalandsynth - automate the knob? it would just spend some time saving its value into the panel as it moved, so depends on the frequency of your automation and the amount you are doing in the knob call back.

    The knob call back doesnt call any of the button callbacks...



  • Strangely , when I mess with the code a bit , break it 🙂 and then reload the snippet it gives me this error.
    Line 56, column 20: API call with undefined parameter 0

    I have to close and reopen HISE, reload snippet?



  • @Lindon said in More problems with saving data in panels - must be me can someone please define the rules...:

    so I define an object that holds each of the 20 control values and use that in the place of "obj" in the code.

    Can you explain a bit more if you have time ?
    I was trying to just duplicate the code, name it myObj2 , knob 2 to have it work for more then one knob .



  • @lalalandsynth

    so theres an object in there:

    obj = {a:0,b:50,c:100};

    its holding 3 values for knob01,

    you want to hold values for more than one knob...

    obj = {
    a1:0,
    b1:50,
    c1:100,
    a2:25,
    b2:75,
    c2:99
    }

    So all I'm doing in this simple example is increasing the number of values held in obj - in fact what I actually do is declare another object - lets call it VoiceObj - this has attributes for each of the 20 different things I want to record - so I create one for each "snapshot" I want to make (in the example case 3 - one for each button) -

    so

    voice1 = {.....stuff in here};
    voice2 = {.....stuff in here};
    voice3 = {.....stuff in here};

    obj= {
    snap1:voice1,
    snap2:voice2,
    snap3:voice3
    };



  • @Lindon said in More problems with saving data in panels - must be me can someone please define the rules...:

    ributes for each of the 20 different things I want to record - so I create one for each "snapshot" I want to make (in the example case 3 - one for each

    Thanks, looking at that .
    Whenever I try and edit the code , even though I undo I get that error when pushing the knob ,even when I open the snippet again. I guess you dont encounter that problem ? Strange .



  • @lalalandsynth - you need to save the initial state. so open the snippet, move the knob, and save the snippet.



  • So I tried this to control 2 knobs and this way it now only works for the second knob I added , thoughts on where I went wrong ?

    HiseSnippet 1782.3oc6YszbaaCDFz1LIRotMoOtypSRSckIojrSblLQ0OGmDaqF4losWRgHgsPLEfFRH635wy3eB8Zt4+B8ePt2+D9duzi8lKdPJA8zxpwSayTdvh.K186CK1EKMPkP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zNuMnA1G+JOOgq3qc.fAqi6DnSgIPmhSfNkl.cVXBzYwIPmGLRcD2E52zhQanRS3cTYM0dWFqQf7nLYDI3uPIY+oM
    


  • @lalalandsynth - you need just one object saved in the panel - it must hold the values for all three button states for ALL controls....

    HiseSnippet 1866.3oc6Y0sbaiaEFzwLaj151MSaumqtRdppBIzu1Y1IZ8eYb2MIZVkMSa2K1RQBagZJBsjP1q2LdlbeuouAMyzmf9Fj6a6yP2GgdYuy8..JQP8CshZ7La1ozyXIhCNmuuyAGfCDP2HlGINlEgLJ77KGQPF+DydWFxGr+.WZH53CPF2yjSh410P6c4H23XhOxv3NOVH0nvlH4y+9Q64F3F5QRaBgdAi5Q9b5PJOs0tc9LZPvQt9jmSGp065cN1iEtOKfMFXxcLsQib8Ny8TxScEcaCSjwcOzmxYQ83t.cPFatGy+xdCXWDp5+Knwz9ADwKNndfgTMeDKvWvXQqn8GPC76NwiiQfU5l5+2Q4++BymP8oSaOMN7QRAVoZnGOL1HO54nSO6UmdFZzaSE8tuYOuH5HdpDA29PyiC4jnSbgg.cZo5KZi+z8M2mA8HjWcn6YjihfWlpQ4l11UrZXau8C2p3VEgAhXt04tQVccCIANVeh0DcOkv2mMbDKDdobIk3RBsTesZrPdHOhEruaPPeXHrLKTIKo8Yg3yBY8WNBRoR.jeaw1WJJGyiy073olGubyiyXdc.1aLmyBWtGjHWBRx2WLLIB0.ZVPv2.HXMPv4ABNGPpcCfTSCjZ4ARsYBYO3AVPus3CHViDIDwVr9+QhmpkSnQ.K3vRBVjyIQVtg9VgpucJL8qZ0paUjFFPCgtNNziSYgVS.pdBPk8lv0Jf+DLlr8VEe4VEKPOo7jWsfGQShOCXdtABN.N7Kcc10tRemcaXWwyYWGa6qdXR2RSregvHkAEDdjPzUIeB3GyBHUGEQEwodDNmFdZpmpXiEmsaIqekEORLiKwrmNwrausvpWIiU4E9qWZ67B50yDzgPd.y0WiIIgbH5QCo7kDVyLecYQ0G7.3eCu7Yx3mTfHhsv.xWP3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cgB0ifMNK1E+yoPUDA1+xEHHSl1gZ736GLSl98lKS25a5jrBhZ4helohY6EwtHFll1+zIWkSg6Bc++HzgxICSa8uc8e95rshEM+2ey0xlkqSY7ZS4OgujnjWOH.nBfvRx7nwjJSEIuDknkHTTfOdtVEEfUJLuribOmEA7RbiTYD9zwBpNdnTmZvlUPn4uelOx7IL+wAt7rWcj39xRD.6QHyczHtGlvXJ+R873ak6SZUo68M6R4dCVLe2XA7EJobay2jamaKyCO4D3WAlR1MMO52d6eUbnufMVLy4ItvuFDl3XBIC8frVOBvjPwYDHJRugnFs5c6IEs6QB8ku.6k55DgNh2MRD5LQHT2xKh80dph7h6+6dxV.NEJuFzBlOQ7tU5NJLsqZiFR8oesmmHT7qcPnEqCdMzo1ZnS80PmFqgNMWCcZsF5zNWcD2H7mNlyFpll.Mz8P0ZWFGF5BYYxLRz+kIH4MK
    


  • @Lindon ok, having a look , trying to understand the code 🙂
    This configuration does not work properly though , it does not hold the knob values.

    Think I found it , was missing - var myObj = {}; -- at line 20
    At least it works now although I am just hacking about 😉

    Also..I guess the knobs should be set to saveInPreset "False"

    HiseSnippet 1803.3oc6Y0sbaaiEFzwLMRsdayz16Y0UxypUgjRxowc5TU+WFusIQSU1Lc28hVHRXITSAnRBYG2Ldl7HrWuWkWg8MH2uuD8QnW16RO.fTD5OZEswyzzYomwh.m+9v4b.Nf.ch4AjjDdLxpziuXDAY8d1cufIFr+.LkgN9.j0srEjDgaCzdWLBmjPBQVV239RpVk1Dod9kuXObDlEPx6BgdBmFP9Z5PpHu2Ns+JZTzQ3PxioCM3tY6iC3r84Q7w.RtgsKZDN3TbexCwR11vFYcyCCoBdbWAFfCxZy83gWzc.+bll+mPSn8hHxFdntfhzceDOJThXYun8GPiB6jMhSPfV5jO9ugd7+Q1OfFRmzete3CTDbxkvzeXsQQvyyDdtqN7rLf2lZ3ca6tAwzQhbJRr8t1GyDj3SvPHvDVZdQa7uus89bfCln9P7ojihgFSjn5Ntt0bZ45t8msU4sJ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